Here's my problem... Is there a way to not have the name of controllers explicitly linked to models?
For instance I have a model, called "Post", Now for whatever reasons, I need to have the following controllers that have access to the "Post" model: * post_controller.php * article_controller.php * some_weird_controller.php So, you might at the outset say, why not put article in posts? Yes I know that I could have more methods in post, and I do. However I want article to be outside of posts. Now I also know that by using var $name = "Post" in my "some_weird_controller.php", I can override that behavior, but then I still am forced to put my views in a directory called "views/post". What's i'm missing I think, is divorcing completely controller names from model names, and the freedom to use any and multiple models in controllers of any random name. Any help would be greatly appreciated. X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.11.88.14 with SMTP id l14mr26644cwb; Sat, 20 May 2006 05:21:47 -0700 (PDT) X-Google-Token: sBXuiQwAAADn_D_6yGJxq1rzAXnWiPZv Received: from 68.202.158.37 by j33g2000cwa.googlegroups.com with HTTP; Sat, 20 May 2006 12:21:47 +0000 (UTC) From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: "Cake PHP" <cake-php@googlegroups.com> Subject: Controllers Linked to model names? Date: Sat, 20 May 2006 12:21:47 -0000 Message-ID: <[EMAIL PROTECTED]> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/418 (KHTML, like Gecko) Safari/417.9.3,gzip(gfe),gzip(gfe) Mime-Version: 1.0 Content-Type: text/plain Here's my problem... Is there a way to not have the name of controllers explicitly linked to models? For instance I have a model, called "Post", Now for whatever reasons, I need to have the following controllers that have access to the "Post" model: * post_controller.php * article_controller.php * some_weird_controller.php So, you might at the outset say, why not put article in posts? Yes I know that I could have more methods in post, and I do. However I want article to be outside of posts. Now I also know that by using var $name = "Post" in my "some_weird_controller.php", I can override that behavior, but then I still am forced to put my views in a directory called "views/post". What's i'm missing I think, is divorcing completely controller names from model names, and the freedom to use any and multiple models in controllers of any random name. Any help would be greatly appreciated. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---