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 - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -