That's generally the right way.
Except in CakePHP 2.x (as opposed to CakePHP 1.3), you might want to use
$this->Session->read('Auth.User.username') instead. Perhaps also try
empty() instead of is_null().
On Thursday, 25 April 2013 07:50:47 UTC+10, Anderson Moraes wrote:
>
> Pessoal, boa noite.
The HABTM generally doesn't do a join. You would only use a straight find
when you have conditions for only one of the models.
Alternatives are to use contains, or use join to explicitly define the join
and the join conditions. Whilst contains is handy, I usually end up going
with the join
I get a digest of this forum. Most questions are answered by the time the
digest gets sent.
However, if you feel your question is not getting answered here, I would
also recommend stackoverflow.com in addition to posting here.
Regards
Reuben Helms
On Thursday, 25 April 2013 05:39:23 UTC+10, c
try
cake acl help
You can delete either and aro or an aco using
cake acl delete aco
or
cake acl delete aro
I am using CakePHP 1.3 so I don't know if this has changed in the 2.x series
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---