Re: [PHP] Using templates (Code & User Interface)

2004-01-25 Thread rush
"Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > A common misconception is that templates provide complete separation > from logic, this is untrue. Template frameworks (the best ones) provide > separation of business logic from presentation logic. So using an "if" > s

Re: [PHP] Using templates (Code & User Interface)

2004-01-24 Thread -{ Rene Brehmer }-
I wrote my own template system that works very well... I've got an outer control file that handles the user input, sets the variables for what the template should use of stylesheets and menus and such, and a variable for what body to use. All my body files are either PHP programs in themselves mixe

Re: [PHP] Using templates (Code & User Interface)

2004-01-24 Thread Robert Cummings
On Sat, 2004-01-24 at 01:53, Hamid Hossain wrote: > Hi, > > Always I have a problem that I don't know how to make my code away from the > user interface files. > > I tried to use some template classes, but I did'nt like what I tired because > some if statments are used inside the template. > >

[PHP] Using templates (Code & User Interface)

2004-01-23 Thread Hamid Hossain
Hi, Always I have a problem that I don't know how to make my code away from the user interface files. I tried to use some template classes, but I did'nt like what I tired because some if statments are used inside the template. How can I prepare my code to be working in more that one template?