Zikula: A Flexible Open Source Content Management System
home | forum | international support | contact us

Docs for page function.pngethost.php

Procedural File: function.pngethost.php

Source Location: /pnRender/plugins/function.pngethost.php

Classes:



Page Details:

Zikula Application Framework



Tags:

version:  $Id: function.pngethost.php 24383 2008-06-12 14:15:02Z markwest $
copyright:  (c) 2004, Zikula Development Team
link:  http://www.zikula.org
license:  GNU/GPL








smarty_function_pngethost [line 35]

string smarty_function_pngethost( array $params, object &$smarty)

Smarty function to obtain base URL for this site

This function obtains the base URL for the site. The base url is defined as the full URL for the site minus any file information i.e. everything before the 'index.php' from your start page. Unlike the API function pngethost, the results of this function are already sanitized to display, so it should not be passed to the pnvarprepfordisplay modifier.

Available parameters:

  • assign: If set, the results are assigned to the corresponding variable instead of printed out
Example <!--[pngethost]-->




Tags:

return:  the base URL of the site
author:  Mark West
since:  20/01/2005


Parameters

array   $params   All attributes passed to this function from the template
object   &$smarty   Reference to the Smarty object
[ Top ]


Packages:

Files:

Classes: