Are you going to the URL "/users/viewList" or "/users/view_list"?

Basically, given these conditions:

- controller action is 'Users::ViewList()'
- view file is 'view_list.ctp'

the URL will be: users/viewList

The code engine will look for the view file in underscored form, but
the resulting URL will still follow the form of the action name.

- Jamie

On Aug 7, 5:36 am, robh <[email protected]> wrote:
> Hi Vijay,
>
> Thanks for your reply. Are you suggesting I use "function viewlist()"
> in my controller?
>
> I was following the convention 
> at:http://book.cakephp.org/view/26/View-Conventions
>
> or more specifically:
> "View template files are named after the controller functions they
> display, in an underscored form. The getReady() function of the
> PeopleController class will look for a view template in /app/views/
> people/get_ready.ctp."
>
> This is not working, as described in my original post.
>
> I have reverted to naming my actions "function get_ready()" which
> works for me, but was wondering if there could be a reason why cake is
> not picking up the views as described in conventions.
>
> Cheers
> Rob
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to