Hello everyone. I'm studing cake for a couple of days.
I am new to MVC design pattern, so i done 1-2 workarround for what i meaning to, but not sure im following the right way. 1) I need access control objects with types, every firm might have multiple module users, if i use ACL, seems i must add every single module row.. So i start writing the component fits me. Is there a quick way to extend the component? tb_firm: (its aco type, i mean) firm_id | firm_name 25812 | Demo tb_module --------------------- module_id | module_name | module_std_params 1 | Products | limit:15, 2 | RealEstates | limit: 50, etc tb_firm_module ---------------------- firm_id | module_id 25812 | 1 25812 | 2 3000 | 1 tb_user ----------- user_id Gokce tb_aroaco: Aro_id | firm_id | module_id | item_id | update, delete, view, etc Micheal, 25812 | 1 | null | 1 0 1 0 1 (..) Gokce, 25812 | 2 | 22 | .. 2) Cannot use overload class defitinitions in AppControllers like __call. my admin control panel logic is /admin/ -> select firm to manage, select 25812 /admin/<firm_id>/ -> select module view /admin/25812/<module>/ or /<module>/index -> list item /admin/25812/Products/<item_id>/edit/3 -> edit item #3 To do that, i should create 25812 method on the fly with __call( ) and return associated controller with firm id ( like return RequestAction(Products/index/25812, or $Products->edit(25812,3), etc OR i think configuring route.php with right regex is better solution. But i dont know and couldnt find how to define something like / admin/:firstparam/:action/* Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
