OK, its being ignored again. Haven't changed the code in the plugin and have deleted the cache 18 times & even rebooted the machine.
Does anybody have any clues whats going on here? w On Oct 18, 6:13 pm, "#2Will" <willjbar...@gmail.com> wrote: > Oh. Now it works. But no idea why, so not so much a self rescue as a > drift to the river bank. > > I cleared some caches for about the millionth time and hay presto, the > hasOne data shows up too. must have accidentally lined everything up > at last. > > ah well, on with the code. > > On Oct 18, 6:05 pm, "#2Will" <willjbar...@gmail.com> wrote: > > > > > > > > > I upgraded to 2.0 today, which went quite smoothly, but i still have > > this problem > > > the book says: "You should get a “Missing Model” error" but i don't > > at all. > > > Looking in the included file list in debugkit - it is including the > > controller files for the plugin, but not the model. I think its just > > using the automagic model creation on the fly. (at least i think cake > > does that) > > > On Oct 17, 4:53 pm, "#2Will" <willjbar...@gmail.com> wrote: > > > > 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php