Part of the EllisLab Network
   
 
Multiple Template
Posted: 18 July 2007 03:03 AM   [ Ignore ]  
Summer Student
Avatar
Total Posts:  2
Joined  07-17-2007

Hi,

I’ve just started learning CI. Can anyone guide me that how can i use the multiple template handling in CI.

Profile
 
 
Posted: 18 July 2007 03:17 AM   [ Ignore ]   [ # 1 ]  
Grad Student
Avatar
Rank
Total Posts:  71
Joined  10-03-2006

do a search on the forum topics first :D

 Signature 

Stupid people do stupid things, smart people outsmart each otherSOAD

Profile
 
 
Posted: 04 August 2007 06:54 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
RankRankRank
Total Posts:  915
Joined  07-10-2006
faraz - 18 July 2007 03:03 AM

Hi,

I’ve just started learning CI. Can anyone guide me that how can i use the multiple template handling in CI.

There are a lot of different master view and template parsing solutions that you can use to create a master view or a template. Generally, you need to open a session with something like a $cur_template variable set to a default template value, then update $cur_template in the session as the user switches templates. This should be covered in multiple threads, but a good understanding of how sessions work should point you in the right direction.

In fact, I believe that there are a few session tutorials on the web that use this as an example. You might check something like webmonkey.com for some example code.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 62653 Total Logged-in Users: 33
Total Topics: 77188 Total Anonymous Users: 0
Total Replies: 416685 Total Guests: 229
Total Posts: 493873    
Members ( View Memberlist )