Tutorials
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOtherTutorials

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old September 3rd, 2004, 02:56 PM
clericvash clericvash is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: plymouth, devon, uk
Posts: 14 clericvash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to clericvash Send a message via AIM to clericvash Send a message via Yahoo to clericvash
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?

Reply With Quote
  #2  
Old September 3rd, 2004, 11:33 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 4
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?

Reply With Quote
  #3  
Old September 4th, 2004, 04:03 PM
clericvash clericvash is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: plymouth, devon, uk
Posts: 14 clericvash User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to clericvash Send a message via AIM to clericvash Send a message via Yahoo to clericvash
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.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOtherTutorials > Writing a Template System in PHP - Using php code?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway