Re: accessing view using an alias

2007-10-09 Thread [EMAIL PROTECTED]
I have combined the two words in the controller file name, because time is of the essence. However, I do plan to investigate the routes.php solution you both have provided (thank you very much!). My concern with combining the two, although it works just fine, is that it is not proper use of conv

Re: accessing view using an alias

2007-10-05 Thread dardosordi
Thinking more on it, you can rename your controller: Newproducts_Controller extends App_Controller { var $name = 'Newproducts'; var $uses = array('New_product'); // your stuff } On Oct 4, 11:28 pm, dardosordi <[EMAIL PROTECTED]> wrote: > I think you can do > > Router::connect('/newpr

Re: accessing view using an alias

2007-10-04 Thread dardosordi
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_produ

Re: accessing view using an alias

2007-10-04 Thread Wayne Fay
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. Wa

accessing view using an alias

2007-10-04 Thread [EMAIL PROTECTED]
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 at www.domain.com/new_product, but I wish to access this by visiting http: