header location |
[eluser]huangxiao[/eluser]
Hi, can you help me please i am still learning the code igniter,..how can i pass variable using header location like this login_controller Code: function members(){ this is the error in loguser_view Code: A PHP Error was encountered Thank you in advance.
[eluser]Tpojka[/eluser]
Code: header("location:".base_url()."index.php/success/page/home/$data"); controller Success/ method page/ with arguments home/ and $data as provided. [url= http://ellislab.com/codeigniter/user-gui...gniterURLs[/url] If not changed anything in [url= http://ellislab.com/codeigniter/user-gui...]route.php[/url] file. If you want to pass variable to your some_view.php file, you don't need to use redirect function, but just loading [url= http://ellislab.com/codeigniter/user-gui....html]view[/url]. Pay attention of 'Adding dynamic data to view' section of the page. That would be needed part. Code: public function members(){
|
Welcome Guest, Not a member yet? Register Sign In |