Welcome Guest, Not a member yet? Register   Sign In
How can I use the function in view of using segments?
#5

[eluser]toopay[/eluser]
As TWP Marketing mention, you should process that in your controller rather than in view. After switch and set the variable, you can send it to your view. It will generates same result with what you have been try!
Code:
// In Controller
$data['init_msg'] = $str;
$this->load->view('some_view',$data);
// Then you can echo it on your 'some_view' with...
<?php echo $init_msg ?>


Messages In This Thread
How can I use the function in view of using segments? - by El Forum - 04-28-2011, 04:42 PM
How can I use the function in view of using segments? - by El Forum - 04-29-2011, 01:00 PM
How can I use the function in view of using segments? - by El Forum - 04-29-2011, 09:31 PM
How can I use the function in view of using segments? - by El Forum - 04-30-2011, 01:46 PM
How can I use the function in view of using segments? - by El Forum - 04-30-2011, 01:54 PM



Theme © iAndrew 2016 - Forum software by © MyBB