cvs: smarty /docs/en/programmers/api-functions api-template-exists.xml
"Peter 'Mash' Morgan" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvspete_morgan1117994199@cvsserver> |
pete_morgan Sun Jun 5 13:56:39 2005 EDT
Modified files:
/smarty/docs/en/programmers/api-functions api-template-exists.xml
Log:
Correction to example
http://cvs.php.net/diff.php/smarty/docs/en/programmers/api-functions/api-template-exists.xml?r1=1.5&r2=1.6&ty=u
Index: smarty/docs/en/programmers/api-functions/api-template-exists.xml
diff -u smarty/docs/en/programmers/api-functions/api-template-exists.xml:1.5 smarty/docs/en/programmers/api-functions/api-template-exists.xml:1.6
--- smarty/docs/en/programmers/api-functions/api-template-exists.xml:1.5 Sun Jun 5 11:47:25 2005
+++ smarty/docs/en/programmers/api-functions/api-template-exists.xml Sun Jun 5 13:56:39 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<refentry id="api.template.exists">
<refnamediv>
<refname>template_exists()</refname>
@@ -47,12 +47,12 @@
<?php
// set the filename eg index.inc.tpl
-$template_name = $_GET['page'].'inc.tpl';
+$mid_template = $_GET['page'].'inc.tpl';
if( !smarty->template_exists($template_name) ){
- $filename= 'page_not_found.inc.tpl';
- }
-$smarty->assign('page_mid', $template_name);
+ $mid_template = 'page_not_found.inc.tpl';
+}
+$smarty->assign('page_mid', $mid_template);
$smarty->display('page_container.tpl');
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php