Welcome Guest, Not a member yet? Register   Sign In
how to call my model function in view page?
#1

[eluser]suba[/eluser]
HI All,
hopefully CI is very useful for PHP programmer.
I created one function in my model class.
i want to call this function into my view page.
Example code:
class Newmodel extends Model
{
function Newmodel()
{
parent::Model();
}
function getName()
{
echo "suba";
....
}
}//end class
My view page.
<html>
...
i loaded model class in my controller using $this->load->model('newmodel').
here i want to call getName function. How to call? please help to me.

</html>


Messages In This Thread
how to call my model function in view page? - by El Forum - 10-03-2009, 12:22 AM
how to call my model function in view page? - by El Forum - 10-03-2009, 12:34 AM
how to call my model function in view page? - by El Forum - 10-03-2009, 12:59 AM
how to call my model function in view page? - by El Forum - 10-03-2009, 02:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB