Set value doesn,t return the value CI 2.0 |
[eluser]JuanitoDelCielo[/eluser]
I have one form to search Code: <?php echo form_open($search); ?> And it works, and using the profiler I know the value POST DATA $_POST['q'] Search String So the input field should have the search String but it always show Search Any ideas?
[eluser]InsiteFX[/eluser]
Thats because you have to post to controller/method! Code: echo form_open('email/send'); InsiteFX
[eluser]JuanitoDelCielo[/eluser]
This is the value of $search Code: $data->search = 'classified/index';
[eluser]bEz[/eluser]
Are you sending $data as an object instead of as an array? Code: $data['search'] = 'classified/index';
[eluser]JuanitoDelCielo[/eluser]
Yes but its the same. If you read the Loader.php code you will find this: Code: function view($view, $vars = array(), $return = FALSE) get_object_vars
[eluser]JuanitoDelCielo[/eluser]
It was really easy. Just add a simple rule to via the form validataion class. |
Welcome Guest, Not a member yet? Register Sign In |