Ok, Im a new employee with a development office. Anyway, the boss has gotten me to look highly into php and this new system, Smarty. im sure u've heard of it. It uses 2 directories, templates, and templates_c. In the root/ u have the .php's which will load a template from /templates/ to output the html code. The actual load on enduser screen seems to be the writen compiled file in the /templates_c/ which is the combination of the template and the php script. So. I am supposed to be able to change what the html comes out to be by editing the template. But everytime i do edit it in /templates/ it gives me an error, and it does not compile correctly to /templates_c/. In ordeer to have a working page with no error, i have to write to the /templates_c/ files and do most of my code on that, which is supposed to be writen from Smarty, not the admin. Any help? PELASE
Help: Smarty Templates/Boss needs answer tommorow :/
Moderator: General Moderators
- NewfieBilko
- Forum Contributor
- Posts: 189
- Joined: Sun Jun 06, 2004 6:45 pm
- Location: Newfoundland
- Contact:
Help: Smarty Templates/Boss needs answer tommorow :/
Hi
Ok, Im a new employee with a development office. Anyway, the boss has gotten me to look highly into php and this new system, Smarty. im sure u've heard of it. It uses 2 directories, templates, and templates_c. In the root/ u have the .php's which will load a template from /templates/ to output the html code. The actual load on enduser screen seems to be the writen compiled file in the /templates_c/ which is the combination of the template and the php script. So. I am supposed to be able to change what the html comes out to be by editing the template. But everytime i do edit it in /templates/ it gives me an error, and it does not compile correctly to /templates_c/. In ordeer to have a working page with no error, i have to write to the /templates_c/ files and do most of my code on that, which is supposed to be writen from Smarty, not the admin. Any help? PELASE
My boss was like , ok research why this is happeneing and figure out if Smarty is a good system to use or too much work..
Ok, Im a new employee with a development office. Anyway, the boss has gotten me to look highly into php and this new system, Smarty. im sure u've heard of it. It uses 2 directories, templates, and templates_c. In the root/ u have the .php's which will load a template from /templates/ to output the html code. The actual load on enduser screen seems to be the writen compiled file in the /templates_c/ which is the combination of the template and the php script. So. I am supposed to be able to change what the html comes out to be by editing the template. But everytime i do edit it in /templates/ it gives me an error, and it does not compile correctly to /templates_c/. In ordeer to have a working page with no error, i have to write to the /templates_c/ files and do most of my code on that, which is supposed to be writen from Smarty, not the admin. Any help? PELASE
- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact:
- NewfieBilko
- Forum Contributor
- Posts: 189
- Joined: Sun Jun 06, 2004 6:45 pm
- Location: Newfoundland
- Contact:
- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact:
- NewfieBilko
- Forum Contributor
- Posts: 189
- Joined: Sun Jun 06, 2004 6:45 pm
- Location: Newfoundland
- Contact:
- NewfieBilko
- Forum Contributor
- Posts: 189
- Joined: Sun Jun 06, 2004 6:45 pm
- Location: Newfoundland
- Contact:
And so now that error is there.
The only way i can clear that error is if i go in a manually re-save the compiled file in the /templates_c/, that "compiled" file is supposed to be writen from the template, but it seems my system does even look at the /templates/ and just takes whatevers in the already writen compiled directory and puts that out, ignoring my /templates/ unless the originaol have changed.
The only way i can clear that error is if i go in a manually re-save the compiled file in the /templates_c/, that "compiled" file is supposed to be writen from the template, but it seems my system does even look at the /templates/ and just takes whatevers in the already writen compiled directory and puts that out, ignoring my /templates/ unless the originaol have changed.
- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact:
- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact:
- NewfieBilko
- Forum Contributor
- Posts: 189
- Joined: Sun Jun 06, 2004 6:45 pm
- Location: Newfoundland
- Contact:
- NewfieBilko
- Forum Contributor
- Posts: 189
- Joined: Sun Jun 06, 2004 6:45 pm
- Location: Newfoundland
- Contact:
- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact:
- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact:
- NewfieBilko
- Forum Contributor
- Posts: 189
- Joined: Sun Jun 06, 2004 6:45 pm
- Location: Newfoundland
- Contact:
well what kinda permission do you suggest i give to the directory, it is already on modify for everyone...
how do i give smarty the write permissions?
also.. thanks by the way, and
uhh so smarty can't write a new compilation, but it will pick up/accept me changing the files in /templates_c/ and display those fine!?!?!
how do i give smarty the write permissions?
also.. thanks by the way, and
uhh so smarty can't write a new compilation, but it will pick up/accept me changing the files in /templates_c/ and display those fine!?!?!
Last edited by NewfieBilko on Sun Jun 06, 2004 8:52 pm, edited 1 time in total.
- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact:
- NewfieBilko
- Forum Contributor
- Posts: 189
- Joined: Sun Jun 06, 2004 6:45 pm
- Location: Newfoundland
- Contact:


