VistaBoy
27-07-2008, 02:31 AM
Okay i have been trying to make a template system that works for well over 3 month and i can not get it to do what i want so i want to know if any one knows of any tuts and can post a tut here for me.
what i am trying to do is make it so you can call them template blah.tpl like
echo eval( $template->load('blah')); or some thing and in the blah.tpl i can have {$lang_hello} and that will be the word lang from my lang.php file $lang = array blah blah.. and also have {$str_login_open} that that would be like if($user >= 1) { and have {$str_close} as }
some thing along them lines so can some one help me..
thank you ;)
Moved by Invent (Forum Moderator) from Designing & Development: Please post in the correct forum next time, thanks :).
what i am trying to do is make it so you can call them template blah.tpl like
echo eval( $template->load('blah')); or some thing and in the blah.tpl i can have {$lang_hello} and that will be the word lang from my lang.php file $lang = array blah blah.. and also have {$str_login_open} that that would be like if($user >= 1) { and have {$str_close} as }
some thing along them lines so can some one help me..
thank you ;)
Moved by Invent (Forum Moderator) from Designing & Development: Please post in the correct forum next time, thanks :).