Welcome Guest, Not a member yet? Register   Sign In
Extending Models
#1

[eluser]edhrx[/eluser]
Hi,

Should this work as I am getting
Fatal error: Class 'General_model' not found in etc..
General_model does exist. Is this 'legal' in CI terms..

class Application_model extends General_model {

function application_model() {
//model constructor
parent::General_model();


}

best wishes ed
#2

[eluser]wiredesignz[/eluser]
Try this thread:
http://ellislab.com/forums/viewreply/374985/
#3

[eluser]m4rw3r[/eluser]
You have to include/require the General_model before you define the Application model.
You can use a normal require_once:
Code:
require_once './general_model.php';
class App_model extends General_model{
    // code ...




Theme © iAndrew 2016 - Forum software by © MyBB