Re: Producing nice url

2008-01-30 Thread brian_gaff

As far as I understand, /uploads/index is the same as /upload/, the
index action should be called by default.

But I guess you can always add a route too :)

Brian

On Jan 30, 12:40 am, "Novice Programmer" <[EMAIL PROTECTED]>
wrote:
> Hello guys,
>
> On my website i have given an upload feature to the user, as the user clicks
> on upload content link on my home page, it take him to index action of
> upload controller, like:
>  Upload Content 
>
> But this way the url looks like :http://test.com/uploads/index
>
> but i want url to look likehttp://test.com/uploads
>
> Please help me if there is any way out. Routes is the one way i did this.
> Some other way is what i am looking for.
>
> --
> Thanks & Regards,
> Novice (http://ishuonweb.wordpress.com/).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Producing nice url

2008-01-30 Thread Jan Boonen

Therefore, you'll need to configure the Router in config/routes.php.
In CakePHP 1.2 is id one like this:

Router::connect('/uploads', array('controller' => 'uploads', 'action'
=> 'index', array('var1' => 'value1', 'var2' => 'value2')));

Cheers,

Jan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Producing nice url

2008-01-30 Thread Novice Programmer
Hello guys,

On my website i have given an upload feature to the user, as the user clicks
on upload content link on my home page, it take him to index action of
upload controller, like:
 Upload Content 

But this way the url looks like : http://test.com/uploads/index

but i want url to look like http://test.com/uploads

Please help me if there is any way out. Routes is the one way i did this.
Some other way is what i am looking for.

-- 
Thanks & Regards,
Novice (http://ishuonweb.wordpress.com/).

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---