Post sheet |
Hello guys,
I have an webapp which the user insert a specific sheet. Those sheets are predefined by the admin. So... some sheets have 15 lines, other ones have 50. On submit, the user can to choose to SAVE or to SEND or to EXPORT or to PRINT the sheet. But, if the user choice be SEND or EXPORT or PRINT, the sheet need to save itself first. I am using something like that: PHP Code: Class Sheet { Of course I have a redundance in validating and saving the data into DB. I tried to do something like that PHP Code: public function send() { and also tried changing save to a static method PHP Code: public function send() { None work. Some suggestion?
If your using a class library then you need to access external methods using the CI Super Object.
Code: class yourClass What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(12-13-2014, 06:59 AM)InsiteFX Wrote: If your using a class library then you need to access external methods using the CI Super Object. This code will trigger a fatal error. There's no 'parent' to call when you don't extend anything. |
Welcome Guest, Not a member yet? Register Sign In |