Part of the EllisLab Network
   
2 of 2
2
Template Library Version 1.3
Posted: 19 September 2008 07:11 AM   [ Ignore ]   [ # 11 ]  
Lab Assistant
RankRank
Total Posts:  175
Joined  08-07-2007

I read through the docs (well skimmed on my lunch break) and this looks just what I was looking for coming from being familar with Zend Layout.

I have installed and set up Matchbox on my CI Demo and wondering if there is anything I need to change or be aware of when setting up a master template to use with module views?

Thanks

 Signature 

http://www.twitter.com/gunkdesign

Profile
 
 
Posted: 19 September 2008 08:23 AM   [ Ignore ]   [ # 12 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1156
Joined  08-06-2006

hey, well, the first thing you’ll want to do is get off this old thread and get on to the new one:

http://codeigniter.com/forums/viewthread/88452/

 Signature 

imap_pop get email | site_migrate port sites | OOCalendar | PhotoBox2 gallery | CI/EE 2 word_limiter, yep, wrote it

Profile
 
 
Posted: 02 October 2008 01:08 AM   [ Ignore ]   [ # 13 ]  
Grad Student
Rank
Total Posts:  48
Joined  11-25-2007

@Colin Cool…..Great stuff!

Q) With this lib, is it possible to call controllers from view? ex; If I want to call list_latest_post() on side bar of my template for every page?

Also, it would be grate if you could compile documentations into a download package.

Profile
 
 
Posted: 02 October 2008 08:42 AM   [ Ignore ]   [ # 14 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1156
Joined  08-06-2006

hi tony… it would be better for you to post your message to the template library version 1.4 thread. wink this thread has been dead since August 17th, 2008 - see previous posts for link to new thread.

 Signature 

imap_pop get email | site_migrate port sites | OOCalendar | PhotoBox2 gallery | CI/EE 2 word_limiter, yep, wrote it

Profile
 
 
Posted: 01 November 2008 12:55 AM   [ Ignore ]   [ # 15 ]  
Summer Student
Avatar
Total Posts:  11
Joined  10-28-2008

Hi, I have been reading the users guide given in

http://williamsconcepts.com/ci/codeigniter/libraries/template/reference.html

It is very good, however I am unable to test them due to the following reasons, I would request Colin Williams to look into this issue,

I have 2 issues,

My reference is with respect to the following code in the user manul.

1) Issue 1

class Page extends Controller {
 
  function Page()
  {
    parent::Controller();
  }
 
  function index()
  {
    // Write to $title
    $this->template->write(‘title’, ‘Welcome to the Template Library Docs!’);
   
    // Write to $content
    $this->template->write_view(‘content’, ‘post’);
   
    // Write to $sidebar
    $this->template->write_view(‘sidebar’, ‘common/sidebar’);
   
    // Render the template
    $this->template->render();
  }

Take a look at the bold items in Blue color, this command is expecting me to have a post.php in the views folder, however this file is neither present in the template download nor described in the user manual. The same case is with respect to common/sidebar.php.

2) Issue 2

My output does not have colors / borders as given in the user guide, is there any css file I need to keep? or is there anything else I am missing?

I would appreciate if some one can help me to address the above.

Regards
Narayanan

Profile
 
 
Posted: 01 November 2008 01:15 AM   [ Ignore ]   [ # 16 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  2916
Joined  07-27-2006

Narayanan

1) Before using Template, please familiarize yourself with CodeIgniter Views (see the CodeIgniter User Guide). This will answer your questions about what post.php and common/sidebar.php should contain and where to create them.

2) Please download Template 1.4 and move discussion to the Template 1.4 thread at http://codeigniter.com/forums/viewthread/88452/

 Signature 

Check out the Template Library
Oh yeah, I tweet, too (regarding CodeIgniter on occassion).

Profile
 
 
   
2 of 2
2
 
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 819, on March 11, 2010 11:15 AM
Total Registered Members: 119813 Total Logged-in Users: 40
Total Topics: 125952 Total Anonymous Users: 2
Total Replies: 662645 Total Guests: 461
Total Posts: 788597    
Members ( View Memberlist )