Content Modules? How to do that?
Hi all :) I'm currently working on a CMS-Like webapp. You're able to add an arbitary amount of content-elements to a page - which are sortable. Everyhtings workin fine. Now i want these content-elements to be some sort of modules. So that i can have several different content-element- types like Text, Headline, HTML, Image and so on. You get the idea? This of course should be easily extendable to any needs. Every Module needs its own Admin-Form and output-routine. So how to design that? I have the DB-Table 'contents' which as among others the fields "content" and "module_id". And i thought of using vendors which offer functions like: createForm() - for the Input-Form parseContent() - for the output. And the content is then saved serialized in the DB. Are there any better patterns? Were could i get into trouble with this? Thanks in advance, Nils --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Acl::Allow does not work
Hi all, When I try to use $this->Acl->allow($aro['Aro']['id'],$aco['Aco']['id'], $actions); I get this error: Warning (512): DB_ACL::allow() - Invalid node [CORE/ cake/libs/controller/components/acl.php, line 362] But these Aro and Aco DO exist. Well then i thought I have to do it like Acl::check without aliases: $this->Acl->allow( array( 'model '=> $aco['Aro']['model'], 'foreign_key' => $aco['Aro']['foreign_key']), $aco['Aco']['model'], $actions); But now i get an even weirder error: Missing Database Table Error: Database table lms_models for model model was not found. What am i doing wrong here? Greetings, Nils --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Problem with Plugins > Controller Missing?
Yeah it was something like that ... but only worked with current version - my cake folder was more than 1 month old. Thanks anyway :D Nils On 17 Jan., 17:31, MrTufty <[EMAIL PROTECTED]> wrote: > The problem here is the mismatch between the name of the plugin and > the default controller name. > > For this to work, you need to rename contents_controller.php to > content_controller.php (and obviously amend the class name within > that). Additionally the views/contents/ folder needs to be renamed. > > That should fix the problem. > > Steve > > On Jan 17, 11:42 am, NilsR <[EMAIL PROTECTED]> wrote: > > > I can't access the default controller of my plugin. Cake tells me, > > that the controller is missing. > > My Structure looks like the following: > > > app/ > > plugins/ > > content/ > > content_app_controller.php > > content_app_model.php > > controllers/ > > contents_controller.php > > models/ > > content.php > > views/ > > contents/ > > admin_edit.ctp > > admin_new.ctp > > > When i now try to access example.com/contents/index it tells me the > > controller is missing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Problem with Plugins > Controller Missing?
I can't access the default controller of my plugin. Cake tells me, that the controller is missing. My Structure looks like the following: app/ plugins/ content/ content_app_controller.php content_app_model.php controllers/ contents_controller.php models/ content.php views/ contents/ admin_edit.ctp admin_new.ctp When i now try to access example.com/contents/index it tells me the controller is missing. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Problems with Plugins
I can't access the default controller of my plugin. Cake tells me, that the controller is missing. My Structure looks like the following: /plugins /plugins/content /plugins/content/content_app_controller.php /plugins/content/content_app_model.php /plugins/content/model /plugins/content/model/content.php /plugins/content/controller /plugins/content/controller/contents_controller.php /plugins/content/view /plugins/content/view/[...] When i now try to access example.com/contents/index it tells me the controller is missing. What's Wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Aros and users ...
Hi there, I have to create some sort of User-Management with permissions and all that stuff. I think i understood the ACL-System but i can't yet quite work with it. I have a users table. Aros for the User are created automaticaly using the AclBehaviour (requester) and they are assigned to the group 'Users'. Now there are some Subgroups like 'default' and 'premium'. What i need now is creating a Tree of users according to the Aros. How do i connect my Aro with the user table? greetings, Nils --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: Tree and Acl behaviours...
On 7 Jan., 10:29, AD7six <[EMAIL PROTECTED]> wrote: > On Jan 7, 9:51 am, NilsR <[EMAIL PROTECTED]> wrote: > > > > > Hi folks, > > > I have a problem with my Tree and Acl behaviors. I have the model Site > > which acts as a Tree and Acl. Everything works fine, Acos are created > > and the Site is stored inside an MPTT. Yet, what is disturbing me is, > > that the Acos arent stored in a tree. > > > Lets assume I have the Site tree: > > Root > > - Site A > > - - Site B > > - - Site C > > - - - Site E > > - Site D > > > My Acos will be like that: > > - group.Sites > > - - Site A > > - - Site B > > - - Site C > > - - Site D > > - - Site E > > > But i want and certainly need the Acos just like the Site tree ... I > > hope you get my point. > > > Greetings, NilsR > > Have you defined a method named parentNode in your Site model? It > isn't returning the pk value of the parent Site node. > > hth, > > AD > Ref:https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/model/beh... Well I have defined such a method. I worked with an article in the Bakery that told me to define it this way: /** * Returns the parent Alias for current */ function parentNode() { return $this->name; } I can imagine that the solutitions lies within this function but i dont quite know how to define it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Tree and Acl behaviours...
Hi folks, I have a problem with my Tree and Acl behaviors. I have the model Site which acts as a Tree and Acl. Everything works fine, Acos are created and the Site is stored inside an MPTT. Yet, what is disturbing me is, that the Acos arent stored in a tree. Lets assume I have the Site tree: Root - Site A - - Site B - - Site C - - - Site E - Site D My Acos will be like that: - group.Sites - - Site A - - Site B - - Site C - - Site D - - Site E But i want and certainly need the Acos just like the Site tree ... I hope you get my point. Greetings, NilsR --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---