I think you can do

Router::connect('/newproduct/:action', array('controller' =>
'new_product' ));



On Oct 4, 4:56 pm, "Wayne Fay" <[EMAIL PROTECTED]> wrote:
> You should be able to do this in your routes.php file...
>
> Router::connect('/newproduct/[action1]', array('controller' =>
> 'new_product', 'action' => '[action1]'));
>
> Substitute view, add, delete etc as appropriate for [action1]. You
> will need 1 row in the file for each action in your controller.
>
> Wayne
>
> On 10/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
>
> > Not sure how to explain this best, so I'll try my best to break down
> > what is probably a simple issue.
>
> > database is 'new_products'
> > controller is 'new_products_controller'
> > model is 'new_product'
>
> > Everything works fine atwww.domain.com/new_product, but I wish to
> > access this by visitinghttp://www.domain.com/newproduct.
>
> > I can use .htaccess to do this, but it seems there will be a solution
> > in cakephp other than cheating on file names (naming everything
> > 'newproducts')
>
> > Thanks for any help,
> > Chris


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to