ClassRegistry::init('plugin.modelname'); should work.

On Dec 6, 10:49 pm, Aaron  Shafovaloff <[EMAIL PROTECTED]> wrote:
> Ahhh specifically it works when you manually do an import, but you
> can't yet use dot notation with "uses" at the top of your controller.
>
> On Nov 17, 9:17 pm, Gwoo <[EMAIL PROTECTED]> wrote:
>
> > Several people voiced opinions about plugins and in an effort to make
> > them more flexible we added the functionality to access models across
> > plugins and the main application in the current 1.2 branch. Use the
> > dot notation "Plugin.Model" to access models in thepluginand "Model"
> > to access the models of the main app.
>
> > To allow us this flexibility we changed how classes are loaded and
> > instances created. From the initial tests, these  changes provide some
> > nice performance gains while reducing the amount of code needed in
> > your application. Keep in mind that with greater flexibility, comes
> > greater responsibility to maintain your applications architecture.
>
> > ClassRegistry::init(); will return an instance of the class from the
> > registry or create and add it to the registry if it does not exist.
> > This is particularly useful for models and is used in the current core
> > code to create the model instances.
>
> > App::import(); will load and cache the location of a file found
> > anywhere in the cake install. This is used in place of the load*
> > functions previously found in basics.php. You can see in the current
> > code that the functions use this class method now.
>
> > The api for these methods are currently in alpha state, but will be
> > stabilized for beta. You can check out the doc comments for more info.
> > The online API,http://api.cakephp.orgwillbe updated shortly.
>
> > Bake on.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to