My bet is that you don't have a plugin defined somewhere. I had the same
problem in a couple of places after the upgrade because I had forgotten to
name which plugin the model could be found in.
belongsTo = array(
className = [PLUGIN].[MODEL]
instead of...
belongsTo = array(
classN
Maybe if you paste your AppController, models and controllers code related
to Event model and associated models? You can remove irrelevant methods etc.
http://bin.cakephp.org
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questio
hmm, its broken again this morning. Cache fully switched off.
issue unresolved.
here are the paths its looking in (App::path('Model', 'Calendar')):
[0] => /Users/willbarker/Dropbox/tractor2/app/Plugin/Calendar/
Model/
[1] => /Users/willbarker/Dropbox/tractor2/app/Plugin/Calendar/
models/
Well, it happens because in certain pages you visit some classes are loaded
and in other pages it could load different ones. The cache will be written
(appending new classes) every time, but in debug mode it gets cleaned after
a short period, hence the erratic behavior of sometimes being able to
Thanks Jose, that cleared it out and everything was working again last
night, but this morning it had forgotten again and wasn't using the
model. I cleared out the cake cache and it used the model. No doubt
it will forget again soon.
What could be causing this? Its like it sometimes writes somet
App::uses('CalendarAppModel', 'Calendar.Model') in each model in your plugin
should do the trick :)
--
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 qu
this is looking super buggy. if i click around my site, one moment it
can find the model the next it can't.
eg: "Fatal error: Class 'CalendarAppModel' not found in /Users/
willbarker/Dropbox/tractor2/Tractor/Plugin/Calendar/Model/Event.php on
line 2"
on a page that 5 mins ago worked fine.
is th
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" wrote:
> Oh. Now it works. But no idea why, so not so much a self rescue as a
>
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, "#2
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
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
11 matches
Mail list logo