Sunday, August 19, 2007

Scaffold Customization Path Reminder

Error :

undefine $scaffold variable and you'll get an empty controller.

On Aug 16, 12:56 am, "co...@..."
wrote:
> yeah I know it's in the manual but I can't get it to work.http://manual.cakephp.org/chapter/scaffolding
>
> controller:
>

> class ContactsController extends AppController {
> var $name = 'Contacts';
> var $scaffold;}
>
> ?>
>

>
> Custom scaffold located in
> app/views/contacts/scaffold/index.scaffold.thtml and the file is
> empty.
>
> I was expecting /contacts/index to return an empty page possibly the
> layout and nothing else. Instead I still got the scaffolded view.
>
> Assistance is appreciated.

Solutions :

Hi, I have just indicated that the document about scaffolding was
deprecated yesterday.
The view file should be placed like:
/app/views/contacts/scaffold.index.thtml

No comments: