it should be:
class HelpCategoriesController extends AppController
{
public $name = "HelpCategories";
var $scaffold;
var $useDbConfig = "wwa";
}
where $name doesnt have 'Controller' in the string.
it should be named: app/controllers/help_categories_controller.php
Syl wrote:
> G'day -
>
> I am having trouble getting the scaffolding to work with my cake
> installation. Here is my code :
>
> class HelpCategoriesController extends AppController
> {
> public $name = "HelpCategoriesController";
> var $scaffold;
> var $useDbConfig = "wwa";
>
> }
>
> Pretty basic, nothing fancy - But here is the result I am getting :
>
> ======================================================
> Notice: Undefined property: HelpPagesController::$table in
> C:\wamp\www\WebWantAds\cake\libs\controller\controller.php on line 599
>
> Notice: Undefined property: HelpPagesController::$alias in
> C:\wamp\www\WebWantAds\cake\libs\controller\controller.php on line 600
>
> Warning: array_search() [function.array-search]: Wrong datatype for
> second argument in
> C:\wamp\www\WebWantAds\cake\libs\controller\controller.php on line 600
>
> Warning: Invalid argument supplied for foreach() in
> C:\wamp\www\WebWantAds\cake\libs\controller\controller.php on line 603
>
> Fatal error: Call to undefined method HelpPagesController::findAll() in
> C:\wamp\www\WebWantAds\cake\libs\controller\scaffold.php on line 148
> ======================================================
>
> Doesn't scaffolding take care of all of this ?
>
> Syl
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---