Rob, Please dont use _ (underscore) for the action. Use .../users/viewlist/
On Thu, Aug 6, 2009 at 8:18 PM, robh <[email protected]> wrote: > > Hi, > > I'm new to CakePHP and I've run into a problem I can't figure out. > > I've created an action called 'viewList()' in UsersController, and a > view called view_list.ctp. When I try and access > ../users/view_list I get the following error: > > Error: The action view_list is not defined in controller > UsersController > > Error: Create UsersController::view_list() in file: app\controllers > \users_controller.php. > > <?php > class UsersController extends AppController { > var $name = 'Users'; > function view_list() { > } > } > ?> > > I thought that the convention was to create camelcased actions and > underscored views? Do I need to configure something? > > Thanks > Rob > > > > -- Thanks & Regards, Vijayk. Co-founder (www.weboniselab.com) "You Bring the Dreams, We'll Bring the Means" --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
