Welcome Guest, Not a member yet? Register   Sign In
I have extended Controller, how to use a function in view files?
#1

[eluser]loathsome[/eluser]
Hi there.

I have extended the Controller class (with BaseController), and I have a custom _load function in that.

When I do this:
Code:
class Dummy extends BaseController {

function index(){
parent::_load('blabla', false);
}

}

Everything works as it should Smile The loader loads up a "load file" which then loads up a normal view file. The problem is, how can i use the _load function WITHIN one of my view files? Say I wanted to do this

Code:
<h2>Hello</h2>
&lt;?php parent::_load('blabla', false);

Though, that doesnt work.

Thanks!


Messages In This Thread
I have extended Controller, how to use a function in view files? - by El Forum - 07-18-2008, 08:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB