Welcome Guest, Not a member yet? Register   Sign In
Calling library methods from a view
#3

[eluser]thody[/eluser]
Actually, to be more specific, the situation I have in mind is for a global UI element, so the library would be loaded in autoload.php, and the only code in the view would be the fucntion call.

For example:
Code:
<ul>
&lt;? foreach ($this->sidebar->get_categories() as $cat) : ?&gt;
<li><$=cat->title; ?&gt;</li>
&lt;? endforeach; ?&gt;
</ul>


Messages In This Thread
Calling library methods from a view - by El Forum - 12-18-2008, 10:08 AM
Calling library methods from a view - by El Forum - 12-18-2008, 10:36 AM
Calling library methods from a view - by El Forum - 12-18-2008, 10:46 AM
Calling library methods from a view - by El Forum - 12-18-2008, 11:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB