Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin namin conventions #4

Open
okwme opened this issue Dec 23, 2011 · 1 comment
Open

plugin namin conventions #4

okwme opened this issue Dec 23, 2011 · 1 comment

Comments

@okwme
Copy link

okwme commented Dec 23, 2011

i don't know why but my model doesn't recognize that this behavior is part of a plugin.
i have it listed as described in the readme:

var $actsAs = array('HabtmCounterCache.HabtmCounterCache');

but it will only work if i list it as:

var $actsAs = array('HabtmCounterCache');

and put a behavior in my app/model/behavior director called:

habtm_counter_cache.php

as was demanded by me of my error report.

am i missing something very simple in this?

@djonatanb
Copy link

I also had to use it as a behavior. Plus, as this topic title fits in the context:
I had to use the field of the input I wanted to count as HABTMAlias.HABTMAlias it took me some time trying to figure it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants