Template Design for Dynamic Applications

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
NoReason
Forum Commoner
Posts: 51
Joined: Tue Sep 10, 2002 6:19 pm

Template Design for Dynamic Applications

Post by NoReason »

The topic says it all .. I have been trying to think of a way to design an engine that would allow for dynamic input/output.

As it is right now, most of my code is done at the top of the page, stored in a variable then dropped into main page via <=? $variable ?>.

Now it works works just fine... However it does tend to get a little cluttered. Some of my biggest problems stem from the needing to control what people have access to, and what people see.. All can be taken care of by a simple if statement for each element (granular security).

What are you thoughts on this?? All of the template engines I have seen do NOT deal with extensive dynamic content very well, not at all, or make it more cumbersome.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: Template Design for Dynamic Applications

Post by alex.barylski »

What are you thoughts on this?? All of the template engines I have seen do NOT deal with extensive dynamic content very well, not at all, or make it more cumbersome.
Most professional developers eventually end up using PHP alternative syntax and PHP itself as a template engine.

Google bTemplate it's a very simple template engine...fast and as flexible as your going to get
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Template Design for Dynamic Applications

Post by josh »

MVC
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Template Design for Dynamic Applications

Post by Christopher »

I am not clear what "dynamic input/output" is? It sounds like the problem is using Access Control to control what content is generated. That sounds like RBAC style control is needed ... maybe controlling access to partials.
(#10850)
Post Reply