Skip to content

Commit b853516

Browse files
committed
updated
1 parent c0fbd90 commit b853516

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

cjax/integration/codeigniter/ajax.php

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@
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
*
@@ -23,15 +24,6 @@
2324
if(!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
/**

0 commit comments

Comments
 (0)