Re: Undefined property: EventsController::$modelClass

2006-05-03 Thread Michael Yevdokimov
Does not anybody know what can cause the problem?? By the way, I am using Cake 1.0.x... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com

Re: Undefined property: EventsController::$modelClass

2006-05-03 Thread hydra12
It's hard to say without seeing more of your code, but I think your view needs to be events/index.thtml, not event/index. If you can post some code for your model/view/controller, that would help with finding the problem. --~--~-~--~~~---~--~~ You received this

Re: Undefined property: EventsController::$modelClass

2006-05-03 Thread Michael Yevdokimov
Controller events_controller.php looks like: class EventsController extends AppController { var $name = 'Events'; var $uses = array('event'); function __construct() { $this-pageTitle = Events; $this-viewPath = 'events'; }

Re: Undefined property: EventsController::$modelClass

2006-05-03 Thread Larry E. Masters aka PhpNut
First error I notice in your code is you have function __construct() in your classes, where did you get that from? I do not think any of the code examples show creating these empty methods.If you use the function __construct() in your classes you must call parent::__construct(); Fix those errors

Re: Undefined property: EventsController::$modelClass

2006-05-03 Thread Michael Yevdokimov
Thank you, Larry, very much for pointing to the problem! It's gone. Where should I read about that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Undefined property: EventsController::$modelClass

2006-05-02 Thread Michael Yevdokimov
Hello everybody I am holy novice with Cake. :) I am trying to make some example to digg into Cake.. I've created controller EventsController, model Event and view event/index. They are working seems fine except for one thing, which is shown below. Notice: Undefined property: EventsController