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

Docs for page function.pagerendertime.php

Procedural File: function.pagerendertime.php

Source Location: /Theme/plugins/function.pagerendertime.php

Classes:



Page Details:

Zikula Application Framework



Tags:

version:  $Id: function.pagerendertime.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_pagerendertime [line 33]

string smarty_function_pagerendertime( array $params, &$smarty, object $smarty, string $round)

Smarty function to get the site's page render time

available parameters:

  • assign if set, the message will be assigned to this variable
  • round if the, the time will be rounded to this number of decimal places (optional: default 2)
Example <!--[pagerendertime]--> outputs 'Page created in 0.18122792243958 seconds.'

<!--[pagerendertime round=2]--> outputs 'Page created in 0.18 seconds.'




Tags:

return:  the page render time in seconds
author:  Mark West
since:  08/02/04


Parameters

array   $params   All attributes passed to this function from the template
object   $smarty   Reference to the Smarty object
string   $round   format to apply to the number (based on the round php function)
   &$smarty  
[ Top ]


Packages:

Files:

Classes: