php - Call to undefined method CI_Loader::load() -


i following codeigniter tutorial when try load

$this->load($subview); 

i got error: call undefined method ci_loader::load()

here code subview:

public function login() {     $this->data['subview'] = 'admin/user/login';     $this->load->view('admin/_layout_modal', $this->data); } 

anyone know how fix ?

this naming problem. classes in ci should starting capital letter, view seems start underscore.

see here: php codeigniter: call undefined method ci_loader::model()


Comments

Popular posts from this blog

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Create a stacked percentage column -