Welcome Guest, Not a member yet? Register   Sign In
HMVC and Layout Template Library
#8

[eluser]kakap[/eluser]
[quote author="wiredesignz" date="1247934809"][quote author="kakap" date="1247931126"]...how to use your library to my template?[/quote]

Tell the library to use a relative path, such as:

Code:
$this->load->view('../../templates/header', $data);
[/quote]

thank you Smile

but,I mean how to use this template library http://maestric.com/wiki/lib/exe/fetch.p...brary3.zip) where my template folder is in outside of system directory ?Smile

"How you usually load a view:

$this->load->view('about', $data);

How you load a view into a template with this library:

$this->template->load('template', 'about', $data);

That loads the view about.php into template.php."
that's I take example from the site http://maestric.com/doc/php/codeigniter_template

Any body, I expect your help,Tq Smile


Messages In This Thread
HMVC and Layout Template Library - by El Forum - 06-29-2009, 05:37 AM
HMVC and Layout Template Library - by El Forum - 06-30-2009, 04:40 PM
HMVC and Layout Template Library - by El Forum - 07-01-2009, 04:28 AM
HMVC and Layout Template Library - by El Forum - 07-11-2009, 10:14 AM
HMVC and Layout Template Library - by El Forum - 07-11-2009, 10:16 AM
HMVC and Layout Template Library - by El Forum - 07-18-2009, 04:32 AM
HMVC and Layout Template Library - by El Forum - 07-18-2009, 05:33 AM
HMVC and Layout Template Library - by El Forum - 07-20-2009, 08:34 PM
HMVC and Layout Template Library - by El Forum - 07-17-2010, 03:12 AM
HMVC and Layout Template Library - by El Forum - 06-10-2012, 02:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB