Tuesday, September 30, 2008

Re: app_controller.php causing errors with my app

No problem.

Perhaps you had moment of "crazy"? :-)

On Sep 30, 3:07 pm, Ryan <ryan.mckil...@gmail.com> wrote:
> That did it. What was I thinking?!
>
> Thank you
>
> On Sep 30, 4:47 am, "dr. Hannibal Lecter" <lecter...@gmail.com> wrote:
>
> > This may be a dumb suggestion, but try removing the "var $name =
> > 'AppController';" line and see if that helps.
>
> > It's not correct anyways, or at least seems incorrect to me.
>
> > On Sep 29, 11:57 pm, Ryan <ryan.mckil...@gmail.com> wrote:
>
> > > I am working on a new app and everything was playing nicely until I
> > > added a simple app_controller.php in order to take advantage of the
> > > Firecake helper:
>
> > > <?php
> > > class AppController extends Controller {
> > >         var $name = 'AppController';
> > >         var $helpers = array('Html', 'Form', 'Javascript', 'Firecake');}
>
> > > ?>
>
> > > Now I am getting errors:
>
> > > Notice (8): Undefined property: ItemsController::$Item [APP/
> > > controllers/items_controller.php, line 6]
>
> > > Fatal error: Call to a member function find() on a non-object in /web/
> > > php/balistik_list_app/app/controllers/items_controller.php on line 6
>
> > > When I delete app_controller.php everything works again. Any ideas?
>
>
--~--~---------~--~----~------------~-------~--~----~
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: