Welcome Guest, Not a member yet? Register   Sign In
Using a library within a view
#4

[eluser]wortell[/eluser]
[quote author="Colin Williams" date="1254271933"]I do what kurucu does when necessary

Code:
$data['pagination'] =& $this->pagination;
$this->load->view('results', $data);

In view:

Code:
<div>&lt;?php print $pagination->create_links() ?&gt;</div>
[/quote]


Hmmm will this work with modules? I assume it should...

sidenote:
i use (ahem! sorry William), Phil's Template Library, only cuz it works seemlessly with HMVC and the updated MS/ME combined platform, etc, yadda yadda... but it should work irregardless of the templating system used....

furthermore:
tossing the =& reference of the object is quite ingenious... as this isn't discussed in a lot of places.

i'm just hoping it'll work on CI2.0+ME/MS5.3+, etc...

that's the ult. question.


Messages In This Thread
Using a library within a view - by El Forum - 09-29-2009, 09:38 AM
Using a library within a view - by El Forum - 09-29-2009, 01:22 PM
Using a library within a view - by El Forum - 09-29-2009, 01:52 PM
Using a library within a view - by El Forum - 09-24-2010, 11:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB