mirror of
https://github.com/bcit-ci/CodeIgniter.git
synced 2025-02-20 11:13:29 +08:00
...
parent
f4c577cfad
commit
a918751fd6
@ -26,7 +26,7 @@ class Test extends MY_Controller{
|
||||
}
|
||||
|
||||
function test( $param1 ){
|
||||
echo '$param1';
|
||||
echo 'You passed in: ' $param1;
|
||||
}
|
||||
|
||||
function redirect()
|
||||
@ -37,4 +37,10 @@ class Test extends MY_Controller{
|
||||
|
||||
}
|
||||
?>
|
||||
[/code]
|
||||
- create a route for the test function
|
||||
[code]
|
||||
...
|
||||
$route['test/(:any)'] = 'test/test/$1'
|
||||
...
|
||||
[/code]
|
Loading…
x
Reference in New Issue
Block a user