Thanks for the tip... I did that because the isset() did not work...(now I understand why) thank you!
The $obj is being created at the begining of the code...
@OVZ
I really understand what you mean... and, I am aware of that problem... that is why I am looking for a good auth method... I am usig dx_auth with some modifications of my own. It does the job well... ( I think ). I will post my results so you can give me your feedback.
This code is to insert data from people into the app. Like clients, customers or just contacts.
Whe the person is a client the user will want to add his full info, like Documents, addrees.
When the person is just a contact the user will only want to add its Name, email and phone.
That is why I am using the
Code:
if($this->input->post('stRG'))
because it is OK if the user dont submit the value for RG... and if he doesnt, the system wont create a Document object for the RG.
My question is that if the user doesnt submit a RG value a $xxx->Document() object wont be created. If I save it $obj->save($xxx) the system wont return me a error ? Because I am trying to save an object that has not being created !