If you want to override the scaffold actions you can see the following file:
/cake/libs/scaffold.php I would strongly advise *against* doing this, you should never have to edit cake's core files and it will break your app if you ever need to update, I think the best thing to do is to use bake and if need be customise bake See: http://bakery.cakephp.org/articles/rascoop/2010/06/02/custom-baking-with-cakephp-1-3 $scaffold is intended to be used as scaffolding, this is why you cannot override the actions from the controller. Hope this helps On 1 December 2010 12:41, psybear83 <psybea...@gmail.com> wrote: > Hey everybody > > I'm developing a small application that is only used in-house of a > small company which should be able to be extended as fast as possible > and everything should be dynamically magically handled as far as > possible. > > All in all the app is needed for data manipulating, so it is a typical > CRUD application - most of it could have been implemented easily using > Microsoft Access or something like this, I guess. But now it's a > CakePHP app, and I have to make it more dynamical. > > So far, every controller has its own view.ctp, though they all look > the same and have the same features. So I want to replace them using a > scaffold view. (I know that $scaffold isn't usually the way to go, but > in the specific application I guess it is a very useful solution.) > > So I removed the old view.ctp of my ContractsController and added > $scaffold to the ContractsController, but then CakePHP tells me, that > the view could not be found! When I remove the view() method, then it > works. Is there a way to override the index() method and still having > $scaffold work? > > Thanks a lot > Josh > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To post to this group, send email to cake-php@googlegroups.com > To unsubscribe from this group, send email to > cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > -- Kind Regards Stephen @ NinjaCoderMonkey www.ninjacodermonkey.co.uk Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en