December 4, 2016

default object issue

I’m getting this error on my index, Using angularJS and php (no framework)

Warning: Creating default object from empty value in

This is the whereabouts im getting the error.

PHP Code:
public function getModel($model) {
        include_once 
APP "model/{$model}.model.php";
        
$modelc $model.'_Model';
        
$this->model->$model = new $modelc();
        
    }

Category : Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *

Proudly powered by Bolkya Resha and Software Testing Theme