Maybe yes, the Model in the init function should be prefix with plugin
name.
I think you only need this :
if (!is_object($this->MenuModel)) {
$this->MenuModel =& ClassRegistry::init('cms.MenuModel',
'Model');
Also what in your plugin, if you have relation between model integrate
the plugin name into the relation declarations
hth
On Jan 10, 6:21 pm, lordG <[EMAIL PROTECTED]> wrote:
> nope, if I remove the code, i dont get the error. The error only
> appears to be occuring when either running $MenuModel =&
> ClassRegistry::init('MenuModel'); or $menuModel =& new MenuModel();
>
> Some further notes, this model is within a plugin call Cms. Could the
> error be related to how Cake is hanlding the classes in plugins?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---