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 conventions. I'm not sure that it would ever
make a difference, but being new to cakephp I have tried carefully to
follow it's rules.
Thanks again, to both of you, for your responses.
On Oct 5, 7:35 am, dardosordi <[EMAIL PROTECTED]> wrote:
> 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('/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
-~----------~----~----~----~------~----~------~--~---