Authentication with Roles
I've gotten a working login script but now I'm trying to restrict pages based on the role the user has. I did some research and I saw that it said that I needed ACL but I've gotten through it but it's not working. -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Debugging a SQL query that is causing the page to timeout
Hi, I have the following query that is causing the page to timeout: $this-QuestionnaireQuestionnaire-contain(array( 'QuestionnaireAssignment' = array( 'QuestionnaireAssignmentName' = array( 'QuestionnaireAnswer' ) ) )); It generates the following error: Fatal error: Maximum execution time of 120 seconds exceeded in D:\inetpub\CakePHP\app\cake\libs\model\datasources\dbo_source.php on line 1092 To try and debug this, I've set the *debug line in config.php to have a value of 2*, and then added *?php echo $this-element('sql_dump');?* to the bottom of the ctp view file... but since the page is timing out I have no way of seeing what is being generated Any ideas please? Many thanks -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Tree helper, with ajax select boxes
Hi, I am trying to find out how I can use the Tree structure, to create multilevel dropdown boxes using ajax. User starts by selecting a child which is a directchild from root, when selected if there are children to that node, a new select box for those direct children shows up, then when selected another one for those children shows up, until they reach the bottom node which has no children. Or click submit before selecting the last child. Can someone show me the code which is needed or point me in the right direction? Greets, Thomas -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: Authentication with Roles
You don't need ACL, usually that is overhead - especially if you just want some basic action/role-based authentication. See if http://www.dereuromark.de/2011/12/18/tinyauth-the-fastest-and-easiest-authorization-for-cake2/ works for you It is a lightweight approach for this. Am Freitag, 8. November 2013 03:07:10 UTC+1 schrieb MaddTechWF: I've gotten a working login script but now I'm trying to restrict pages based on the role the user has. I did some research and I saw that it said that I needed ACL but I've gotten through it but it's not working. -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
RE: Tree helper, with ajax select boxes
I have done it. Took a while but I have it created. Contact me directly and I will show you. I have a nested menu in a tree and selects based on the parent and displays the children with drop downs which are selects and save on changing via ajax. Dave Maharaj Freelance Designer | Developer Description: header_logo www.movepixels.com | mailto:d...@movepixels.com d...@movepixels.com | 709.800.0852 From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Thomas Goeminne Sent: Friday, November 08, 2013 3:54 AM To: cake-php@googlegroups.com Subject: Tree helper, with ajax select boxes Hi, I am trying to find out how I can use the Tree structure, to create multilevel dropdown boxes using ajax. User starts by selecting a child which is a directchild from root, when selected if there are children to that node, a new select box for those direct children shows up, then when selected another one for those children shows up, until they reach the bottom node which has no children. Or click submit before selecting the last child. Can someone show me the code which is needed or point me in the right direction? Greets, Thomas -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out. -- 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 group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out. image001.jpg