You should really consider using Auth and ACL, once you get both of those components working they really help you a lot. Everything you mentioned there is easily done with ACL and Auth, seriously, what you're proposing is going to be a lot more difficult than just reading up on Auth and ACL. Basically, you're going to have to modify quite a lot of CakePHP code to be able to use the "manager" option. Not to mention that it is not very flexible, you're basically going to be hard-coding your user structure into your website, what happens if you decide to create a new group called "salesperson" later on, you would have to go and create functions for that group, whereas with Auth and ACL you simply define the group and give it permissions and you're done. Either that, or you would need to specify a route for each manager function. In the end, you'll end up with dodgy code that works only part of the time, and you would have used more of your budget on sifting through core cake code than you would have if you had read up on Auth and ACL.
As for MooTools, you should be able to use it just fine, you won't however be able to use the CakePHP AJAX helper since it's made for Prototype. So if you're happy with manually constructing the required calls for MooTools in JavaScript, you'll be fine. On Mar 29, 3:59 am, Zorancho <[email protected]> wrote: > Hi to all > I am building a multilevel users application, but i don't want to use > the Auth or ACL components, cause they give me so much troubles, i > want to manage to create the whole thing with using my own functions > so i can have different groups of users like Administrators, Managers > and the common Users. So i was wondering if i could use in the > core.php: > Configure::write('Routing.admin', 'admin'); > Configure::write('Routing.manager', 'manager'); > > and then in the controllers to have actions like admin_add, > manager_add, admin_delete, manager_delete etc... > Is this possible to do in cake? How safe would be to place this kind > of made application in production? > Also, another question is about javascript, i personally prefer to > work with MooTools (which i find much easier to understand than > Prototype or Jquery) and could i use that one with CakePHP? Has anyone > ever used them together? I have never found any real world example of > using MooTools and CakePHP together, so i was having doubts. Thanks in > advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
