Skip to content

Modular Extensions Notices and errors

World Wide Web Server edited this page Jul 4, 2012 · 12 revisions

Category:Library::HMVC

[h2]Modular Extensions - Notices and errors[/h2]

When you are new to the Modular Extensions Library you might get some error-messages or notices that you don't understand. This page is ment to help you out.

[b]A session had already been started - ignoring session_start()[/b] If you are using a base_controller and have a session_start() in it, PHP will try to start a session twice. That causes this notice. You can either suppress this notice by adding a @ before session_start(), or you might want to replace that line to the index.php file of CodeIgniter.

[b]Only variable references should be returned by reference[/b] If you load a controller from within a view, make sure the controller sends its output back to the view. Mark the third parameter of view in your controller must be set TRUE in order to realize this. [code]return $this->load->view('template',$data, TRUE);[/code]

[b]Fatal error: Call to undefined method Modules::method() in (...)modules_helper.php on line 210[/b] Modules is a reserved word in ME, the Modules class is inside modules_helper.php begining at line 191, so you cannot define your own Modules class also.

Clone this wiki locally