Hey all, so I’m fairly new to Yii and have recently run into a bit of an issue with my code. I used Gii to generate my controllers, models, views etc. and then made changes to them. Anyway, in the Update function of my controller this if test keeps failing when I hit “Save” on the update form.
if(isset($_POST['Tasks']))
It’s currently failing for all of my controllers that use forms and I don’t have any idea what’s happening to it. If anyone has any tips that’d be greatly appreciated.
PHP Version 5.3.2
Apache 2.2
If you need to see more of my code to be able to help, I’ll be checking this thread pretty frequently.
Thanks a bunch guys. I actually accidentally did the var_dump from Contacts and not Tasks, but the ContactParent makes sense for what I wrote. Thanks so much!