What's the error message?
Eric
On 2/23/07, crazed_climber <[EMAIL PROTECTED]> wrote:
>
>
> I have double checked all my naming conventions numerous times and for
> some reason my controller (Menus) is looking for a Model looking Menus
> instead of Menu. Any help will be greatly appreciated.
>
> Here are the filenames and file contents.
>
> Controller:
> filename: menus_controller.php
>
> <?php
> class MenusController extends AppController
> {
> var $name = "Menus";
>
> function index(){
>
> }
> function getMenu($id){
> $this->set('menu_data', $this->Menu->findAll('
> Menus.page_id='.
> $id,'Pages.page_name,Pages.page_url,Pages.page_level'));
> }
> }
> ?>
>
> Model:
> filename: menu.php
>
> <?php
> class Menu extends AppModel
> {
> var $name = "Menu";
> }
> ?>
>
> View:
> directory: /views/menus
> filename: get_menu.thtml
>
> Test Menu
> <?php echo print_r($menu_data); ?>
>
> directory: /views/menus
> filename: index.thtml
>
> <p>Testing Menu Index</p>
>
> Thanks,
> Scott
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---