List Info

Thread: Suggest: documentation update




Suggest: documentation update
user name
2006-06-27 08:59:48
The page :
	http://smarty.php.net/manual/en/language.modifier.d
efault.php
This is the one that talks about |default:

I was doing a web page & wanted to normally use one
variable but occasionally another,
I found that it is possible for the default to be a
variable, this might make a nice
extra example:

	To sometimes have a different title in the browser toolbar:

	<HEAD><TITLE>{$tooltitle|default:$title|escape:
"html"}</TITLE></HEAD>
	<BODY>
	 <H1>{$title|escape:"html"}</H1>
	 ...

-- 
Alain Williams
Parliament Hill Computers Ltd.
Linux Consultant - Mail systems, Web sites, Networking,
Programmer, IT Lecturer.
+44 (0) 787 668 0256  http://www.phcomp.co.uk/

#include <std_disclaimer.h>

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )