[Solved] Model Function Not Working With Array Post |
I am trying to update my $this->input->post('page'); array. But for some reason when It updates It updates blank.
I have var_dumped the post and is correct. PHP Code: array(3) { ["page"]=> array(3) { [1]=> array(1) { ["page_name"]=> string(20) "Controller Example 1" } [2]=> array(1) { ["page_description"]=> string(4) "Test" } [3]=> array(1) { ["page_status"]=> string(1) "1" } } ["page_content"]=> array(1) { [0]=> array(2) { ["content_name"]=> string(9) "Example 1" ["content_text"]=> string(18) "Example 1 Textarea" } } ["popup_image"]=> array(1) { [0]=> array(2) { ["image"]=> string(10) "family.png" ["popup_image_id"]=> string(4) "2407" } } } I am not sure why is updating with blank data. Its something to do with model function I think PHP Code: <?php View PHP Code: <?php $data = array('class' => 'form-horizontal'); Model Function PHP Code: public function page_update($page_id, $data) { Any Suggestion
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Messages In This Thread |
[Solved] Model Function Not Working With Array Post - by wolfgang1983 - 05-23-2015, 08:42 PM
RE: Model Function Not WOrking - by klassev - 05-23-2015, 10:33 PM
RE: [Solved] Model Function Not Working With Array Post - by wolfgang1983 - 05-24-2015, 05:50 AM
RE: Model Function Not Working With Array Post - by wolfgang1983 - 05-24-2015, 01:17 AM
|