Re: Best practice for pending/approved flag for comments in a blog
Have you tried using disqus plugin? It works rather smoothly. On Oct 6, 2011 10:13 AM, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: You might want to consider a field for the id of the reviewer, something to indicate their decision (they might decline it) and the time/date of that decision. Jeremy Burns Class Outfit Tel: +44 (0) 208 123 3822 Mob: +44 (0) 7973 481949 Skype: jeremy_burns http://www.classoutfit.com On 6 Oct 2011, at 15:08, Boyan Penev wrote: Thank you both for the useful help. Regards, Boyan On Thu, Oct 6, 2011 at 3:36 PM, euromark dereurom...@googlemail.com wrote: it seems a simply boolean (tinyint 1) is enough in your case On 6 Okt., 15:14, Zaky Katalan-Ezra procsh...@gmail.com wrote: You can review CakeDC comments pluginhttps://github.com/CakeDC/comments On Wed, Oct 5, 2011 at 11:02 AM, Boyan boyan...@googlemail.com wrote: Hello, I am trying to develop a blog- like application with Cakephp and have a rather general question. The comments for each post should be first reviewed by the author of the post, before becoming visible (Comment belongsTo Article, Comment belongsTo User, Post belongsTo User) So my question is- what would be the best way to go about it? Would a boolean flag in the sql table for the comments suffice? And if so- is it secure enough? Or should I rather use ACL? Or maybe a completely different approach? Thank you, Boyan -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: [Noob!] Acl Tutorial Question
Got it all figured, went through the tutorial again seemed I must have missed up along the path of initdb. On Sat, Oct 1, 2011 at 10:03 AM, badben ba.dav...@gmail.com wrote: Do you have a record in your aro table with a value of Group in the model field and 1 in the foreign key field? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- - Austin Pickett -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
[Noob!] Acl Tutorial Question
I just finished the blog tutorial, and moved on to the Acl tutorial using the blog -- I walked through the whole ordeal but still seems that when I log in as user with permission 1 (admin) I still receive the Auth message of: You are not authorized to access that location. // app_controller.php ?php class AppController extends Controller { var $components = array('Acl', 'Auth', 'Session'); var $helpers = array('Html', 'Form', 'Session'); function beforeFilter() { // configure authcomponent $this-Auth-loginAction = array('controller' = 'users', 'action' = 'login'); $this-Auth-logoutRedirect = array('controller' = 'users', 'action' = 'logout'); $this-Auth-loginRedirect = array('controller' = 'posts', 'action' = 'add'); $this-Auth-actionPath = 'controllers/'; $this-Auth-allow('display'); $this-Auth-authorize = 'controller'; $this-Auth-userScope = array('User.active = 1'); $this-set('Auth',$this-Auth-user()); } function beforeRender(){ $this-set('currentUser', $this-Auth-user()); } function afterFilter() { # Update User last_access datetime if ($this-Auth-user()) { $this-loadModel('User'); $this-User-id = $this-Auth-user('id'); $this-User-saveField('last_access', date('Y-m-d H:i:s')); } } } ? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: [Noob!] Acl Tutorial Question
Ah, that moved me forward as to showing me a new message hopefully someone would be able to help me decipher. The error on the page: http://pastebin.com/PKUwaRBq Also note that when the console cake acl view aro is executed: http://pastebin.com/bYgy034H i have my groups set up the way the acl tutorial shows and my groups are: admins, managers, users. Thanks in advance. On Fri, Sep 30, 2011 at 10:02 AM, Sam Sherlock sam.sherl...@gmail.comwrote: $this-Auth-authorize = 'controller'; change to $this-Auth-authorize = 'actions'; or crud if your mapping actions http://book.cakephp.org/view/1275/authorize On 29 September 2011 03:34, Austin Pickett phr...@gmail.com wrote: $this-Auth-authorize = 'controller'; -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- - Austin Pickett -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php