Part of the EllisLab Network
   
2 of 2
2
Template Library Version 1.3
Posted: 19 September 2008 08:11 AM   [ Ignore ]   [ # 11 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  272
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 

Portfolio: Portfolio
Twitter: @gunkdesign

Profile
 
 
Posted: 19 September 2008 09:23 AM   [ Ignore ]   [ # 12 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1101
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 

peeker email (imap/pop) | site_migrate | OOCalendar | PhotoBox2 | word_limiter

Profile
 
 
Posted: 02 October 2008 02:08 AM   [ Ignore ]   [ # 13 ]  
Grad Student
Rank
Total Posts:  47
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 09:42 AM   [ Ignore ]   [ # 14 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1101
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 

peeker email (imap/pop) | site_migrate | OOCalendar | PhotoBox2 | word_limiter

Profile
 
 
Posted: 01 November 2008 01:55 AM   [ Ignore ]   [ # 15 ]  
Summer Student
Avatar
Total Posts:  10
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 02:15 AM   [ Ignore ]   [ # 16 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  2774
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