Friday, December 16, 2011

Problem referring to two Models in Plugin

Hi there,

I've got the following problem programming a plugin with Cakephp 1.3:

One of my plugin controllers uses two plugin models - the header is
like this:

class RssArticlesController extends RssFeedAppController {

public $uses = array('RssFeed.RssFeed','RssFeed.RssArticle');

Anyway, when I want to work with the second model, it will be built
dynamically - so I can not use the model's behaviors or custom
methods.
I thought it might be a naming problem (RssFeed.RssFeed) - but since I
moved that model on first array position it is constructed through my
'plugins/rss_feed/models/rss_feed.php' - on second position just
dynamically.

Is this a bug in 1.3?
Or do I do something wrong with it?

--
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