Re: <% init

From: Date: Sun, 22 Oct 2000 13:04:43 +0000
Subject: Re: <% init
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-21634@lists.php.net to get a copy of this message
Hi Tim! On Sat, 21 Oct 2000, Tim Sawyer wrote: > HTML::Mason has an init construct <% init /%> that allows you to put > initialization code anywhere in your program, usually at the bottom. > That way non programmer content creation type people don't have to see a > bunch of initialization at the top of the file. Is there an equivalent > way to do that in PHP? yap. <%init()%> <html> <% // // page stuff // %> </html> <%function init() { // init stuff;} %> simple, isn't it ;) -- teodor

« previous php.general (#21634) next »