Wednesday, December 1, 2010

$scaffold: When overriding the index() method, I get "view for index not found"! --psybear

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: