Connecting Tech Pros Worldwide Help | Site Map

libraries and templates

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 04:56 AM
Martman
Guest
 
Posts: n/a
Default libraries and templates

Can someone point me to a good resource explaining how and why to use
templates in php. I am new to php and wondering if these so called templates
are just include files or what. And I have read several things about
libraries in php but some of the applications I see are using includeonce
files. Please don't tell me these are the same as libraries. I would
consider libraries an application global resource that does not need to be
referenced on every page to be utilized. Maybe included in something like a
global.asa (from windows world) to make available to entire application.

Can someone shed some light on these subjects and/or point me to a good
resource?

Thanks
Marty



  #2  
Old July 17th, 2005, 04:56 AM
nospam@geniegate.com
Guest
 
Posts: n/a
Default Re: libraries and templates

Martman <martman100@nospam.insightbb.com> wrote:[color=blue]
> Can someone point me to a good resource explaining how and why to use
> templates in php. I am new to php and wondering if these so called templates
> are just include files or what. And I have read several things about
> libraries in php but some of the applications I see are using includeonce
> files. Please don't tell me these are the same as libraries. I would
> consider libraries an application global resource that does not need to be
> referenced on every page to be utilized. Maybe included in something like a
> global.asa (from windows world) to make available to entire application.
>
> Can someone shed some light on these subjects and/or point me to a good
> resource?[/color]

I've never really understood why there are separate PHP template libraries
either, seems kind of like overhead since PHP itself is a template
engine of sorts.

A good reason for using "views" (or similiar) is that the application
logic is separate from the presentation logic. As far as I'm concerned, those
"views" could just as well be PHP files with some facility to get data
(from the application) into them prior to display. (this is the way I
like to do it)

Jamie

--
http://www.geniegate.com Custom web programming
User Management Solutions Perl / PHP / Java / UNIX

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.