|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
Writing a Template System in PHP - Using php code?
Hi there i followed the Writing a Template System in PHP written by tim and its great.
Although theres one thing bothering me, how exactly can you use php in it?, like if i had {left_menu} i would want that to include the left_menu.php file. Is there any way to do this? |
|
#2
|
|||
|
|||
|
RE: Writing a Template System in PHP - Using php code?
I got around it by calling $page->output(); before I did the include. After that, if need be, I would just build another object. Just out of cutiosity, what kept you from templating the left menu?
|
|
#3
|
|||
|
|||
|
RE: Writing a Template System in PHP - Using php code?
Well it calls what modules are available from a database...and you cant use php in the template so i had to just call it from a file.
And i found out you can just do this; 'left_block' => './lib/left_block.php', And it includes it, no editing needed. |
![]() |
| Viewing: Codewalkers Forums > Other > Tutorials > Writing a Template System in PHP - Using php code? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|