File tree Expand file tree Collapse file tree 1 file changed +9
-17
lines changed
cjax/integration/codeigniter Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Original file line number Diff line number Diff line change 44 * CJAX CI Integration
55 */
66
7- /*if( isset( $_SERVER['SCRIPT_NAME'] ) )
8- {
9- $url = str_replace( $_SERVER['SCRIPT_NAME'] ,'', $_SERVER['REQUEST_URI'] );
10- if( substr( $url ,0 ,1 ) != '?' ) {
11- $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
12- }
13- }*/
7+ /**
8+ * Controllers Directory.
9+ * Directory where ajax controllers are located.
10+ * @constant AJAX_CD
11+ */
12+ if (!defined ('AJAX_CD ' )) {
13+ define ('AJAX_CD ' , 'application/response ' );
14+ }
1415
1516/**
1617 * Optional
17- * Force ajax controler to only be served if requested from this file.
18+ * Force ajax controller to only be served if requested from this file.
1819 * This is only needed when calling controllers from files other than 'ajax.php';
1920 * in case of conflict with other controllers.
2021 *
2324if (!defined ('AJAX_FILE ' )) {
2425 define ('AJAX_FILE ' , 'ajax.php ' );
2526}
26- /**
27- * Controllers Directory.
28- * Directory where ajax controllers are located.
29- * @constant AJAX_CD
30- */
31- if (!defined ('AJAX_CD ' )) {
32- define ('AJAX_CD ' , 'application/response ' );
33- }
34-
3527
3628
3729/**
You can’t perform that action at this time.
0 commit comments