Auth Component; Strange behavior

2013-03-11 Thread Ed Propsner
Using Cake 2.2.5 My app is exhibiting a strange behavior in one of my controller/views. I have $this-Auth-allowedActions = array('view', 'index'); defined in the beforeFilter of one of my controllers. When an authenticated user navigates to the index view, Auth Component does not work on that

Re: Using the Global Event Manager

2013-03-11 Thread Борислав Събев
Hey, Jerry. You could use bootstrap.php for such event attachments. What I usually do is to create another file, in the Config folder, called evenmanagement.php for example, and include it at the end of bootstrap.php. This way all my events-subscribers etc. logic is in one file. You could also

Many to many relations and Froms

2013-03-11 Thread kaiszy
Hi! I have a problem understanding n-to-m relations and how to integrate it in a view (inputform and showing content). Following situation: table zoos fields: id, name table animals fields: id, name table zootoanimalmappings fields: id, zoo_id, animal_id Now i wan't top create a view

Re: Many to many relations and Froms

2013-03-11 Thread Marcus James
This article with help you http://blog.endpoint.com/2009/11/test-fixtures-for-cakephp-has-and.html -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups CakePHP

Re: Many to many relations and Froms

2013-03-11 Thread kaiszy
Hi Marco, no, it dont help in any way because i don't ask for fixtures on n2n-Models. I ask how i can use it in a Controller and how i use it in a view for viewing, creating and editing a new records for the above example. Best regards, Kai. -- Like Us on FaceBook

component and helper to access model, good practice?

2013-03-11 Thread Mohammad Naghavi
Hi All, I know that this question has possibly been asked multiple times, I have been searching for a right answer during the last days and did not find a proper one. in addition to that most of the answers I found were related to older versions of the CakePHP and now I want what does the new Cake

Memcached Pool

2013-03-11 Thread michaelf
Hi, I noticed that Cakephp gives an error message if one of the servers in a memcached pool is missing: For example, two server in a pool. One is up, the other down, gives this error, even though the one server in the pool is available. *Notice* (8): MemcachePool::get()

Re: Memcached Pool

2013-03-11 Thread michaelf
ok, solved it myself. The error was actually being generated on a PHP level in from php-pecl-memcache. Turns out this library is less capable than php-pecl-memcache*d*, so using that rather. And now pooling is handled correctly. sorry for the noise, Michael -- Like Us on FaceBook

Need help with $this-paginate() in controller

2013-03-11 Thread sjbhowmick
I need some help on implementing the below query for $this-paginate() SELECT * FROM `table1` WHERE name like '%n3%' AND code NOT IN ( SELECT code FROM table2 ) UNION SELECT * FROM table2 where name like '%n3%' I want to get the paged resultset and count value also. -- Like Us on FaceBook

Re: Auth Component; Strange behavior

2013-03-11 Thread Pablito Pablito
Still learning Cake but maybe you have some code conflicting with auth on your AppController beforeFilter? Happened to me when trying out the Auth component. Pablo. On Monday, March 11, 2013 6:15:02 AM UTC-3, CrotchFrog wrote: Using Cake 2.2.5 My app is exhibiting a strange behavior in

Need a help for cakephp controller,

2013-03-11 Thread Ganapathi Raman
hi all i am a new to the cake php...can anyone help me for how to learn controller method's.please please, -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are

Re: how to get the array value in view

2013-03-11 Thread Ganapathi Raman
Hi, once again to check your foreach method On Mon, Mar 11, 2013 at 4:31 AM, Joseph zhu zhubujun...@gmail.com wrote: Hi there: It didn't show either, do you have more ideas about it? Thank you. Have a good weekend. On Sat, Mar 9, 2013 at 3:01 PM, lowpass

Re: how to get the array value in view

2013-03-11 Thread Joseph zhu
Ok, I have figured it out. Thank you so much. On Mon, Mar 11, 2013 at 10:03 AM, Ganapathi Raman ganapath...@gmail.comwrote: Hi, once again to check your foreach method On Mon, Mar 11, 2013 at 4:31 AM, Joseph zhu zhubujun...@gmail.com wrote: Hi there: It didn't show

Re: Using the Global Event Manager

2013-03-11 Thread Jerry Kita
Boris, Thank you for your reply. Very helpful. I'll give it a try. Jerry On Monday, March 11, 2013 5:39:01 AM UTC-4, Борислав Събев wrote: Hey, Jerry. You could use bootstrap.php for such event attachments. What I usually do is to create another file, in the Config folder, called

CakeDC User Plugin Facebook Plugin (webtechnick)

2013-03-11 Thread Michael Spreu
Hi all. I use two Plugins ( CakeDC User and the webtechnick Facebook Plugin) and try to get them working together. My Problem is when I login via the Facebook Plugin the User from the Users Plugin (Table field facebook_id) is not updated and I have no permission to get into various pages...

Paginate with drag / drop

2013-03-11 Thread Advantage+
I have a site where the paginated results need to have the ability to sort / re-order as the admin likes. Problem is how do you get something from page 2 back to page 1 since you can't drag / drop it in a list that you cannot see. I was hoping there was a way to offset the pagination so for

Re: component and helper to access model, good practice?

2013-03-11 Thread lowpass
The built-in ACL functionality would be the best approach. See here: http://mark-story.com/posts/view/auth-and-acl-an-end-to-end-tutorial-pt-1 That tutorial is for an older version of Cake but the differences are moderate. And see this one for some ideas for being able to check access from

Re: Auth Component; Strange behavior

2013-03-11 Thread lowpass
Define Auth Component does not work. If Auth is allowing access then what else do you need? Could this be a routing issue? Are you using admin prefixes? (It's been a long day so I may well be missing something obvious here.) On Mon, Mar 11, 2013 at 5:15 AM, Ed Propsner crotchf...@gmail.com

Re: Need a help for cakephp controller,

2013-03-11 Thread lowpass
That's quite a vague request. Have you read the documentation? On Mon, Mar 11, 2013 at 12:55 PM, Ganapathi Raman ganapath...@gmail.com wrote: hi all i am a new to the cake php...can anyone help me for how to learn controller method's.please please, -- Like Us

Re: Paginate with drag / drop

2013-03-11 Thread lowpass
On Mon, Mar 11, 2013 at 6:54 PM, Advantage+ movepix...@gmail.com wrote: I have a site where the paginated results need to have the ability to sort / re-order as the admin likes. Problem is how do you get something from page 2 back to page 1 since you can't drag / drop it in a list that you

Re: Auth Component; Strange behavior

2013-03-11 Thread CrotchFrog
Pablito was correct, there was a conflict in my code. I had a custom helper to handle ckeditor and it was causing the conflict. On Monday, March 11, 2013 7:56:19 PM UTC-4, cricket wrote: Define Auth Component does not work. If Auth is allowing access then what else do you need? Could this