You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to set the controllers location from the default /controllers to /controller/viewcontroller. But it will not work, I used this code: define('AJAX_CD', 'controller/viewcontroller'), but CJAX stops functioning. I thought it should be possible to change controller locations, or is this feature removed in recent releases? Or am I doing something wrong?
The text was updated successfully, but these errors were encountered:
Fixed this myself, the issue is that I need to edit this line from ajax.php:
if(!defined('AJAX_CD')) {
//if you experience a file not found error, and AJAX_CD hasn't been defined anywhere
//enter a relateive path to the base directory where the controllers are.
define('AJAX_CD', 'controllers');
}
just to define AJAX_CD in the controller or view page does not suffice, since when an AJAX call is made, this value will not be available, and then CJAX will default to /controllers directory. I have to manually change the line above at ajax.php, I am not sure if this is mentioned in the documentation though.
I tried to set the controllers location from the default /controllers to /controller/viewcontroller. But it will not work, I used this code: define('AJAX_CD', 'controller/viewcontroller'), but CJAX stops functioning. I thought it should be possible to change controller locations, or is this feature removed in recent releases? Or am I doing something wrong?
The text was updated successfully, but these errors were encountered: