mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
fixed some typos, thank to mehdi
This commit is contained in:
@@ -370,7 +370,7 @@ OUTPUT: (same for both examples)
|
|||||||
{* display value of page from URL (GET) http://www.domain.com/index.php?page=foo *}
|
{* display value of page from URL (GET) http://www.domain.com/index.php?page=foo *}
|
||||||
{$smarty.get.page}
|
{$smarty.get.page}
|
||||||
|
|
||||||
{* display the variable "page" from a form a form (POST) *}
|
{* display the variable "page" from a form (POST) *}
|
||||||
{$smarty.post.page}
|
{$smarty.post.page}
|
||||||
|
|
||||||
{* display the value of the cookie "username" *}
|
{* display the value of the cookie "username" *}
|
||||||
@@ -579,7 +579,7 @@ Cold Wave Linked to Temperatures.
|
|||||||
index.php:
|
index.php:
|
||||||
|
|
||||||
$smarty = new Smarty;
|
$smarty = new Smarty;
|
||||||
$smarty->assign('articleTitle', 'Psychics predict world didn't end');
|
$smarty->assign('articleTitle', "Psychics predict world didn't end");
|
||||||
$smarty->display('index.tpl');
|
$smarty->display('index.tpl');
|
||||||
|
|
||||||
index.tpl:
|
index.tpl:
|
||||||
|
@@ -211,7 +211,7 @@ $smarty->autoload_filters = array('pre' => array('trim', 'stamp'),
|
|||||||
<para>
|
<para>
|
||||||
This tells Smarty whether or not to cache the output of the templates.
|
This tells Smarty whether or not to cache the output of the templates.
|
||||||
By default this is set to 0, or disabled. If your templates generate
|
By default this is set to 0, or disabled. If your templates generate
|
||||||
redundant redundant content, it is advisable to turn on caching. This
|
redundant content, it is advisable to turn on caching. This
|
||||||
will result in significant performance gains. You can also have multiple
|
will result in significant performance gains. You can also have multiple
|
||||||
caches for the same template. A value of 1 or 2 enables caching. 1 tells
|
caches for the same template. A value of 1 or 2 enables caching. 1 tells
|
||||||
Smarty to use the current $cache_lifetime variable to determine if the
|
Smarty to use the current $cache_lifetime variable to determine if the
|
||||||
|
Reference in New Issue
Block a user