Welcome Guest, Not a member yet? Register   Sign In
Is this right for a controller?
#3

[eluser]Rolly1971[/eluser]
if your looking to create a model class you need to extend CI_Model, not CI_Controller

Code:
class Agents extends CI_Model
{

function __construct()
{
   parent::__construct()
}

function myFunction()
{
   // ... do something
}

}


Messages In This Thread
Is this right for a controller? - by El Forum - 05-25-2012, 07:02 AM
Is this right for a controller? - by El Forum - 05-25-2012, 07:17 AM
Is this right for a controller? - by El Forum - 05-25-2012, 07:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB