Wednesday, January 18, 2012

Re: Problems with URL

Hi Thad

I will answer to your question without knowing the error you receive, so it might not be the solution to your problem.
The link you provided in your mail, shows that you don't use the correct name for your controller. You should name your controller with the plural of the world you use.
In consequence, you should do the following changes:

- rename the controller file to "PaymentsController.php"
- rename the class defined in the controller to class PaymentsController

As a good practice, please also send in the future the error you receive.

Best regards

On Wed, Jan 18, 2012 at 3:23 PM, Thad <oithad@gmail.com> wrote:
Hey guys,

i'm trying to workout in an app code here but i'm getting the message:
URL should be set in array format (i.e., array('controller' =>
'controller', 'action' => 'action') for other than "/". Fix your
helper usage.

Everything seems to be ok and I don't know what to do anymore. The URL
is like:

http://website.com/payment/express/160 where payment = controller,
express = action and 160 = params.

Do you have any idea of what i can do?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: