Zikula_Template_Plugins
[ class tree: Zikula_Template_Plugins ] [ index: Zikula_Template_Plugins ] [ all elements ]

Procedural File: function.pngetbaseurl.php

Source Location: /system/pnRender/plugins/function.pngetbaseurl.php



Page Details:

Zikula Application Framework



Tags:

version:  $Id: function.pngetbaseurl.php 24342 2008-06-06 12:03:14Z markwest $
copyright:  (c) 2004, Zikula Development Team
link:  http://www.zikula.org
filesource:  Source Code for this file
license:  GNU/GPL








smarty_function_pngetbaseurl [line 35]

string smarty_function_pngetbaseurl( 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 pnGetBaseURL, 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 <!--[pngetbaseurl]-->




Tags:

return:  the base URL of the site
author:  Mark West
since:  08/08/2003


Parameters

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



Documentation generated on Fri, 18 Jul 2008 21:46:02 +0200 by phpDocumentor 1.4.1