Welcome Guest, Not a member yet? Register   Sign In
Model function references not recognized
#6

[eluser]Frank Cole[/eluser]
PHP 4 doesnt use __construct() for class constructors, its a PHP 5 only thing, so youll have to go in and adjust any classes that do it this way to work with PHP 4. Basically you'll have to go in and undo any other PHP5isms as well.

So it should be something like:

Code:
class Site_model extends Model
{
     function Site_model()
     {
          parent::Model();
     }

     function listNav()
     {
          // Do whatever
     }

}

Hope it helps.

Frank


Messages In This Thread
Model function references not recognized - by El Forum - 01-01-2008, 04:24 PM
Model function references not recognized - by El Forum - 01-01-2008, 04:53 PM
Model function references not recognized - by El Forum - 01-01-2008, 07:48 PM
Model function references not recognized - by El Forum - 01-01-2008, 10:28 PM
Model function references not recognized - by El Forum - 01-17-2008, 09:09 AM
Model function references not recognized - by El Forum - 01-17-2008, 09:26 AM
Model function references not recognized - by El Forum - 01-17-2008, 09:34 AM
Model function references not recognized - by El Forum - 01-17-2008, 09:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB