954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Templates in PHP

Hi,

Can anybody provide me some examples of using templates in php

vicky_rawat
Junior Poster
137 posts since Jun 2008
Reputation Points: 28
Solved Threads: 19
 

PHP templates? what do you mean? like frameworks?

it2051229
Junior Poster in Training
82 posts since May 2007
Reputation Points: 7
Solved Threads: 1
 
PHP templates? what do you mean? like frameworks?


Yes, if I want to create one according to my requirement.

vicky_rawat
Junior Poster
137 posts since Jun 2008
Reputation Points: 28
Solved Threads: 19
 

There are functions for including in a script, a script held in another file. Is this what you mean? i.e. you can define the functions that you will use (and constants, variables, etc) and then include them.

Syntax:

include 'functions.php';
include "variables.inc";


See also, include_once , require and require_once .

humbug
Junior Poster in Training
93 posts since Oct 2005
Reputation Points: 20
Solved Threads: 13
 

No,
I actually mean to seperate presentation layer from business logic.

vicky_rawat
Junior Poster
137 posts since Jun 2008
Reputation Points: 28
Solved Threads: 19
 

a template

almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
 

he isn't asking for a css or any html/xhtml template...

the delhi guy was asking for something like the Zend, CakePHP, PRADO, seagull, and etc. framework.

it2051229
Junior Poster in Training
82 posts since May 2007
Reputation Points: 7
Solved Threads: 1
 

he isn't asking for a css or any html/xhtml template...

the delhi guy was asking for something like the Zend, CakePHP, PRADO, seagull, and etc. framework.


Yes, you are right.

vicky_rawat
Junior Poster
137 posts since Jun 2008
Reputation Points: 28
Solved Threads: 19
 

you know when you use a template like them, they have a manual or documentation provided at there website.... on there manual, examples are provided.. so its going to cost some reading and testing.

it2051229
Junior Poster in Training
82 posts since May 2007
Reputation Points: 7
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You