Welcome Guest, Not a member yet? Register   Sign In
how i can call helper var inside controller
#1

[eluser]Fahad Alrahbi[/eluser]
hello ,


if i want any value of helper inside controller like this

Code:
$this->load->helper('form');
$data['form']= $this->form->form_open('email/send');

how ??
#2

[eluser]LuckyFella73[/eluser]
The form helper is suppost to be used in your view file.
Code:
echo form_open('email/send');

See userguide for more information:
http://ellislab.com/codeigniter/user-gui...elper.html
#3

[eluser]Fahad Alrahbi[/eluser]
yes but is there anyway to use it in controller coz im using smarty i want convert helper data to array in the controller
#4

[eluser]ojcarga[/eluser]
Yes you can do that. You can call a helper function into a controller.




Theme © iAndrew 2016 - Forum software by © MyBB