Re: acl and admin routing?

2010-09-26 Thread calzone
Thanks for that link. That is essentially what I seek, but I am using ACL as well and was hoping ACL could take care of it somehow. I guess I have to cobble something together that does a bit of both. On Sep 26, 10:47 am, McBuck DGAF wrote: > If you are using prefixes to define admin controller

Re: CakeDC Ratings Plugin

2010-09-26 Thread Eric Anderson
Alright, so I got it to work by including the html helper as well as the ratings helper in my controller. However, I now receive the following error: Undefined variable: item [APP/views/posts/home.ctp, line 23] I'm calling the helper in my view in this way: echo $this->Rating->display(array(

CakeDC Ratings Plugin

2010-09-26 Thread Eric Anderson
Hi there, I'm currently trying to use CakeDC's ratings plugin, found here: http://github.com/CakeDC/ratings/tree/ However, after following the instructions I get the following error: Fatal error: Class 'HtmlHelper' not found in /Applications/XAMPP/ xamppfiles/htdocs/photorious/app/plugins/ratin

Re: Strange behavior on shared hosting

2010-09-26 Thread Thomas
Thanks Cricket - For (1) - I removed the 'containable' part completely - falling back to only pure HABTM on Item into Tag. On my dev environments, a find('all) on Item retrieved all Items and all the tags for the items. On the hosting, though, looking at the SQL debug output and log - only the one

habtm saving: is my really simple solution fragile? using a model for habtm-table

2010-09-26 Thread Tomfox Wiranata
hi everyone, I found this habtm saving tutorial on the net and it wont work for me: http://bakery.cakephp.org/articles/view/add-delete-habtm-behavior it uses both models in the relation and combines them to save or delete data in the habtm-relation. now I had Problems with habtmAdd and habtmDelet

Re: Auth logs user out when clicking new link before page load

2010-09-26 Thread paulinthought
Thats great. I will look into that. Thanks Jonathan for the help. Regards, Paul On Sep 26, 3:10 pm, Jonathan wrote: > On 25 Sep., 23:39, paulinthought wrote: > > > If I click a link to load a page and then click another link for a > > different page on a different model then before the page has

Re: acl and admin routing?

2010-09-26 Thread McBuck DGAF
If you are using prefixes to define admin controllers, this article describes a method for defining permissions using the prefix routing parameters: http://bakery.cakephp.org/articles/view/user-permissions-based-on-a-routing-prefix On Sep 24, 4:35 pm, calzone wrote: > I don't think people are ge

Re: How can I populate data belonging to TWO NON-RELATED TABLES in ONE Controller

2010-09-26 Thread emmexx
On 26 Set, 15:22, Divya Banik wrote: > Or you can use ClassRegistry::init('ServerInfo')->find('all'); For the record the manual lists the cake way to load a model: http://book.cakephp.org/view/67/Understanding-Models http://book.cakephp.org/view/529/Using-App-import bye maxx Check out the

Re: Auth logs user out when clicking new link before page load

2010-09-26 Thread Jonathan
On 25 Sep., 23:39, paulinthought wrote: > If I click a link to load a page and then click another link for a > different page on a different model then before the page has changed > to the initially requested page the application instead redirects me > to the login screen. With the default secur

Re: How can I populate data belonging to TWO NON-RELATED TABLES in ONE Controller

2010-09-26 Thread Divya Banik
Or you can use ClassRegistry::init('ServerInfo')->find('all'); Thanks and Regards, Divya Banik On Sun, Sep 26, 2010 at 12:57 AM, emmexx wrote: > > > On 25 Set, 03:24, Ancy DSouza wrote: > > > Now I want to populate the data of both the tables in my Members > controller. > > > > Now Members ta

Paginate and Order

2010-09-26 Thread Sanza
Hi at all, sorry for my english but I think that this probably can to be useful for everybody, maybe this little update can to be committed but I don't know how and where to make this... I use Mysql and Cake 1.3.x I has a problem to order some field using o normal paginate on views. With simply qu

Re: set cook error

2010-09-26 Thread ritsy
Exactly the following error is generated while custom query for search is used for large number of data to fetch.Set-Cookie: CAKEPHP=6490b49377b3039c92284a5b554d274c; expires=Sun, 03 Oct 2010 08:53:01 GMT; path=/in_progress/adb On Sep 26, 11:55 am, ritsy wrote: > I have a custom search with diffe