Jump to content

PHP Templates or HTML With a Template System?


Demonic

Recommended Posts

For some reason I feel a template system takes to many files, and like wordpress they include php files for templates so they can embed php right in the file.

 

Which is better?  I want to make a quick and easy manageable script, The thing about me asking this is because no one needs to customize the admin panel so not really a need for a template system.

Link to comment
Share on other sites

sometimes it's not about others customising it, but about you customising it. spending each and every day using the same website/back end, it's only a matter of time before you get bored of it and want to give it a new coat of paint.

 

there isn't really a "definitive" way of doing templates, though I tend to stick to PHP ones but keep as much non-display logic out of my templates, just so it doesn't become an absolute mess. Anything more PHP-intensive that's needed in my template goes inside a helper, leaving just basic if/else/foreach, etc in my templates - nothing more.

 

either way, whatever floats your boat - but a bit of discipline didn't hurt anyone, even if it is a system for your eyes only.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.