[eluser]davidino86[/eluser]
Hi to everybody,
can i and how use a function (method) of a model class in anoter method of the same model?
ex:
Code:
class mymodel extends Model
function mymodel()
{
parent::Model();
}
fucntion firtMethod()
{
//Call the second method
$this->secondMethod($realVar);
}
function secondMethod($var)
{
fetch something;
retutn result;
}