# |
Sep 11th 2009, 19:49 |
Hiall |
its as if its not finding the behavior |
# |
Sep 11th 2009, 19:49 |
Hiall |
snook gave me the same error though |
# |
Sep 11th 2009, 19:49 |
Hiall |
http://bakery.cakephp.org/articles/view/multivalidatablebehavior-using-many-validation-rulesets-per-model <-- |
# |
Sep 11th 2009, 19:49 |
Hiall |
ah no I'm using |
# |
Sep 11th 2009, 19:48 |
ADmad |
from the article "var $actsAs = array('Snook.MultipleValidatable');" assuming you are just using the behavior and not a plugin what should the statement be? |
# |
Sep 11th 2009, 19:47 |
Hiall |
sorry what's wrong with that? :S |
# |
Sep 11th 2009, 19:47 |
ADmad |
yes |
# |
Sep 11th 2009, 19:47 |
Hiall |
var $actsAs = array('Multivalidatable'); ? |
# |
Sep 11th 2009, 19:46 |
ADmad |
error on line 5 |
# |
Sep 11th 2009, 19:46 |
Hiall |
http://davesherratt.com/register <-- shows the full error |
# |
Sep 11th 2009, 19:46 |
Hiall |
Is the model |
# |
Sep 11th 2009, 19:45 |
Hiall |
http://bin.cakephp.org/view/192998817 |
# |
Sep 11th 2009, 19:45 |
markstory |
var $actsAs = array('Foo'); |
# |
Sep 11th 2009, 19:45 |
ADmad |
show your model |
# |
Sep 11th 2009, 19:44 |
ADmad |
~tell Hiall about bin |
# |
Sep 11th 2009, 19:44 |
Hiall |
it's as though its querying the table for that function |
# |
Sep 11th 2009, 19:44 |
Hiall |
hmmn :S |
# |
Sep 11th 2009, 19:43 |
markstory |
app/models/behaviors/foo.php -> FooBehavior extends ModelBehavior |
# |
Sep 11th 2009, 19:43 |
markstory |
no they should just work. |
# |
Sep 11th 2009, 19:40 |
Hiall |
When using behaviors in cake, is there any setup I need to have. Currently my cake doesn't seem to be finding any instances of the behavior and throwing sql errors. |
# |
Sep 11th 2009, 19:36 |
dhodgkin |
ADmad: I figured it out, something got left out during the copy of 1.2.5. I fixed my issue. Thanks! |
# |
Sep 11th 2009, 19:35 |
Seguer |
but the problem is - what if their app is using normal Auth/Acl already? |
# |
Sep 11th 2009, 19:34 |
Seguer |
i suppose you could modify core.php as part of the install? |
# |
Sep 11th 2009, 19:34 |
Seguer |
cos the plugin should just drop in and work (after an "install" maybe) |
# |
Sep 11th 2009, 19:34 |
markstory |
why? |
# |
Sep 11th 2009, 19:34 |
Seguer |
which is not acceptable unfortunately :/ |
# |
Sep 11th 2009, 19:33 |
Seguer |
no one on here at the time seemed interested |
# |
Sep 11th 2009, 19:33 |
markstory |
but any way you cut it you need to modify core.php |
# |
Sep 11th 2009, 19:33 |
Seguer |
i thought of that last night too |
# |
Sep 11th 2009, 19:33 |
markstory |
You could always subclass all of DbAcl |
# |
Sep 11th 2009, 19:33 |
Seguer |
that's the issue :P |
# |
Sep 11th 2009, 19:33 |
Seguer |
yeah exactly |
# |
Sep 11th 2009, 19:33 |
markstory |
and you can't easily prefix the table name.s |
# |
Sep 11th 2009, 19:33 |
markstory |
its Auth + plugin that isn't so great |
# |
Sep 11th 2009, 19:33 |
markstory |
you can use Acl fine |
# |
Sep 11th 2009, 19:32 |
Seguer |
cos you can't use acl from a plugin |
# |
Sep 11th 2009, 19:32 |
Seguer |
yeah, but not using cake acl :P |
# |
Sep 11th 2009, 19:31 |
ifunk |
as in acl? |
# |
Sep 11th 2009, 19:31 |
Seguer |
anyone implemented object based permissions (eg. check to see if an object can CRUD another object?) |
# |
Sep 11th 2009, 19:22 |
ifunk |
jjwdesign: if you need any help with drag and drop tree, let me know (i wrote that article) |
# |
Sep 11th 2009, 19:11 |
ADmad |
*changed |