Stab at Smarty Template Class (PHP)
I took a stab at smarty template class, its pretty simple and easy.
in tpl file must have {$variable} have to have $ seems quite weird. So far all I got is the template somewhat working; CSS Styles don't work at all and can't have it in the tpl file or it will go nuts and will say, unable to read var from "filename.php". I haven't yet intergrated MySQL, and I don't think css would work because of mysql. http://www.cfe-clan.com/smarty-temp/ is what I got so far. http://server3.cfe-clan.com/smarty-temp.zip 1 MB (extracted) Maybe someone can help me with the CSS Styles to work in Templates? I am not that experienced in PHP and hopefully someone will help rescue me from this disaster. I'm currently working on a CS Site for some selected maps and waypoints, and stuff. :) it's been hell so far. |
Re: Stab at Smarty Template Class (PHP)
You're probably forget add
PHP Code:
[edit] Not dl this stuff, since i can't now :), but style.css is in templates directory, so you probably must change "style.css", to "templates/style.css" [/edit] |
Re: Stab at Smarty Template Class (PHP)
Code:
<link rel="stylesheet" type="text/css" href="style.css"> |
Re: Stab at Smarty Template Class (PHP)
[edit]
Not dl this stuff, since i can't now , but style.css is in templates directory, so you probably must change "style.css", to "templates/style.css" [/edit] :D |
Re: Stab at Smarty Template Class (PHP)
Nice :) Damn I should've thought of that.
Hmm styles workin now. :) |
All times are GMT +2. The time now is 10:35. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.