|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
About Template System in PHP
Hi all,
I'm newbie in PHP (#1 language) and new user in Forum Codewalkers. I'm studying through scripts commented, all information in web and Codewalkers too. After read the tutorial I had a doubt, but I did not find a solution in messages the forum. My site will be very small. It will have only one glossary, a form for contact and a small news system. The Script templating engine (by Timothy Boronczyk. Url: http://codewalkers.com/tutorials/58/1.html) works fine with my layout in HTML, but I'dont know where I use the my scripts (Glossary, Form FeedBack and News) with the template engine. Example: For test I created 2 files (get IP and Agent browser of the user): user_info/ip.php ------- user_info/agent.php ------- How use the templating engine for theses files, for example? And my scripts? |
|
#2
|
|||||
|
|||||
|
RE: About Template System in PHP
The templating script is written so that you are not limited to including just html or text files. You can use it to include other PHP files, also.
For example: php Code:
... and then be sure to define your include macros in your template file ({ip} and {agent}). |
|
#3
|
|||
|
|||
|
RE: About Template System in PHP
humm! Thank you very much, bluephoenix!
|
|
#4
|
||||
|
||||
|
RE: About Template System in PHP
You're welcome ;)
|
![]() |
| Viewing: Codewalkers Forums > Other > Tutorials > About Template System in PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|