critique this code please

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

 



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') . '");');

unfortunaly my site has grown since and im not sure if this is causing an
extra overhead on the site..
is there a way to 'improve' this small function?

thanks for any help.

-- 
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