Skip to content
World Wide Web Server edited this page Jul 4, 2012 · 29 revisions

Hi It seems that this code doesn't work on CI 1.5.1 because the init folder is now deprecated

So , here is the solution I use : no mater the /init/init_tinyajax .php file

instead , edit the TinyAjax.php file and

1 - add the folowwing line in the class constructor $this->setScriptPath('../../js'); $this->setRequestType('post');

2 - replace the first lines used to detect the TINYAJAX_PATH constatnt by : define('TINYAJAX_PATH', BASEPATH . 'application/libraries/');

so the begining of this files will look like :

/* ... comments ... */ define('TINYAJAX_VERSION', '0.9.5'); define('TINYAJAX_PATH', BASEPATH . 'application/libraries/'); require_once (TINYAJAX_PATH . '/TinyAjaxBehavior.php'); .....

You also have to change the name of the default action in the controleur because the "index" method is not present and you will get an error for that , just replace the name of the "multiply" function by "index" in the controler file

Clone this wiki locally