mirror of
https://github.com/bcit-ci/CodeIgniter.git
synced 2025-02-20 11:13:29 +08:00
...
parent
4d1fcdc208
commit
f4c577cfad
@ -17,5 +17,24 @@ DrF Reverse Routing is an extension of the URL Helper that overrides the site_ur
|
||||
[h2]Example[/h2]
|
||||
- setup a Test Controller
|
||||
[code]
|
||||
<?php
|
||||
class Test extends MY_Controller{
|
||||
|
||||
function Test()
|
||||
{
|
||||
parent::MY_Controller();
|
||||
}
|
||||
|
||||
function test( $param1 ){
|
||||
echo '$param1';
|
||||
}
|
||||
|
||||
function redirect()
|
||||
{
|
||||
$this->load->helper( 'url' );
|
||||
redirect( 'test/test/from_redirect' )
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
[/code]
|
Loading…
x
Reference in New Issue
Block a user