Re: critique this code please

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I personally don't see anything wrong with it.  It's actually better
than any of my attempts to do templating.

BTW Curt: Check your clock/s, it seems to be a day out.


On Sun, 2 Jan 2005 02:46:40 +0000, Curt Zirzow
<php-general@xxxxxxxxxxxxxxxxx> wrote:
> * Thus wrote Sebastian:
> > i have this small function for a template system (if you want to call it
> > that ;)
> >
> > my idea was having something simple to separate html code from php and i
> > think using something like smarty is too big for me and i really dont have
> > time to learn to use it. so i have this code here:
> >
> > http://www.cstrike-planet.com/function.phps
> >
> > i call this function which reads .tpl files which contain html and some
> > $vars, then in my pages use something like:
> >
> > eval('echo("' . template('home_index') . '");');
> 
> I don't quite understand the purpose of this when either an
> include() or readfile() will do the job, and not to mention much
> faster and less memory intensive.
> 
> Curt
> --
> Quoth the Raven, "Nevermore."
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
N Jones
#newzealand @ irc.freenode.net
The future of IRC is coming,

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux