Re: Change all delete() of scaffolding
Thanx for you answer... Very useful. I have tried this in my own app_model.php for testing : class AppController extends Controller { function delete($id){ $this-modelKey-del($id); $this-redirect (strtolower($this-name).'/',204); } } But i get an error with the line $this-modelKey-del($id); and i think the next line won't work. How to get the model name to use it in my global controller ? I don't know how to get the value here... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Change all delete() of scaffolding
Sorry, i was talking about my app_controller.php, of course ! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Change all delete() of scaffolding
Still having error Fatal error: Call to a member function on a non-object in d:\easyphp1-7\www\desvoys\admin\app\app_controller.php on line 6 with : class AppController extends Controller { function delete($id){ $this-modelClass-del($id); $this-redirect (strtolower($this-modelClass).'/',204); } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Change all delete() of scaffolding
Try this. class AppController extends Controller { function delete($id){ $this-{$this-modelClass}-del($id); $this-redirect ($this-viewPath.'/',204); } } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Change all delete() of scaffolding
just a tip, atkati: easyphp uses PHP 4.3.1 CakePHP minimum is 4.3.2 , I suggest you upgrade that. I ran in a few troubles until realized that :) spark On 6/21/06, Atkati [EMAIL PROTECTED] wrote: WONDERFUL ! 1TeraThanx x 1000 ! Yabadabadouu ! -- [web] http://synapsisdi.com.br [livesets] http://djspark.com.br --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Change all delete() of scaffolding
Thank you for you notice.I am thinking of using a real web server to create my apps.I would like to use Apache2, PHP5, MySQL 4 or 5...2006/6/21, DJ Spark [EMAIL PROTECTED]: just a tip, atkati: easyphp uses PHP 4.3.1 CakePHP minimum is 4.3.2 , I suggest you upgrade that. I ran in a fewtroubles until realized that :) sparkOn 6/21/06, Atkati [EMAIL PROTECTED] wrote: WONDERFUL ! 1TeraThanx x 1000 ! Yabadabadouu ! --[web] http://synapsisdi.com.br[livesets] http://djspark.com.br --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Change all delete() of scaffolding
easyphp is a 'real' one. quite simple, easily configurable.. it's just a standard PHP/APACHE/MySQL box, with some shortcuts ... and a VERY simple install :) btw, most hosts are still using apache1.3 , much more stable and less resource intensive... so.. spark On 6/21/06, Pascal PORTIER [EMAIL PROTECTED] wrote: Thank you for you notice. I am thinking of using a real web server to create my apps. I would like to use Apache2, PHP5, MySQL 4 or 5... 2006/6/21, DJ Spark [EMAIL PROTECTED]: just a tip, atkati: easyphp uses PHP 4.3.1 CakePHP minimum is 4.3.2 , I suggest you upgrade that. I ran in a few troubles until realized that :) spark On 6/21/06, Atkati [EMAIL PROTECTED] wrote: WONDERFUL ! 1TeraThanx x 1000 ! Yabadabadouu ! -- [web] http://synapsisdi.com.br [livesets] http://djspark.com.br -- [web] http://synapsisdi.com.br [livesets] http://djspark.com.br --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---