Problems moving from old CI 2.0 (BETA?) to CI 2.0 reactor |
[eluser]Juris Malinens[/eluser]
site url: http://wap4.org (nobody uses it so I enabled displaying errors) this is my controller Code: class Welcome extends CI_Controller { Error doesn't help me to find mistake...
[eluser]MVUG[/eluser]
Can you explain what isn't working? Do you use htaccess rewrites? What php version do you use? And ion-auth is not loaded?
[eluser]Juris Malinens[/eluser]
ion_auth is loaded by autoload.php Code: $autoload['libraries'] = array('ion_auth','session','database'); phpinfo (php 5.2.10): http://wap4.org/phpinfo.php my .htaccess (for multi-language): Code: RewriteEngine On EDIT: even I get this error on basic controller like: http://wap4.org/en/about/index class About extends CI_Controller { Code: function index()
[eluser]Twisted1919[/eluser]
Go old fashion way: After you load a library put var_dump($this->lib_name) then exit() the script, if you have a valid object, move forward and do it for the models or for the next library. Somewhere on the way it has to show you what object is not instantiated but you still call it .
[eluser]Juris Malinens[/eluser]
I simply gave up debugging and started from fresh Codeigniter 2.0 reactor download and aded files one by one and I changed for some controllers there were problems construct function __construct() { parent::__construct(); } in I have some extended file in application/core and it seems CI 2.0 reactor also asks for onstruct to work properly (in the 2.0 beta I used it did not require me to do so): function __construct() { parent::__construct(); } http://test.wap4.org- here is more or less working example (only language switching doesn't seem to work yet...)... EDIT: fixed also MY_Lang.php ![]() EDIT2: but I have little problems with input so I extended it and disabled by adding My_Input.php because COdeIgniter don't like jquery ajax requests with parameters...: Code: function _clean_input_keys($str) |
Welcome Guest, Not a member yet? Register Sign In |