Sunday, October 16, 2011

Can't get Plugin model to work / be noticed at all

Hello

I'm trying to make a calendar plugin for 1.3. Its sort of working,
but the Event model definition is being ignored and so its
relationship to other models (in the main app) are not working.

I guess im putting it in the wrong place, but ive gone round and round
and round in circles and its not getting better.

/app/plugins/calendar/models/event.php
<?php
class Event extends CalendarAppModel {
var $name = 'Event';
etc

/app/plugins/calendar/controllers/events_controller.php

<?php
class EventsController extends CalendarAppController {
var $uses = array('Calendar.Event');

etc.


As far as i can see that should work. Any suggestions why it isn't or
how to work out why it isn't working very much appreciated. Stumped.

will

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate