udhaya
udhaya

Reputation: 1

cakephp function calling

whats the use of calling a cakephp function http://localhost/project/controller/method.hello

so whats hello? but it requires views/method/hello/method.ctp...

Upvotes: 0

Views: 288

Answers (2)

Young
Young

Reputation: 8366

It seems there are some errors in your description.A typical CAKEPHP url should something like:

webroot/controller/method/argument

and a method must have a view file.See typical request of cakephp

Upvotes: 3

Enrico Carlesso
Enrico Carlesso

Reputation: 6934

As SpawnCxy noticed, maybe you did not understand well the request "philosophy".

Anyway, using routes you can define your own, but the default is

/:controller:/:function:[/:arguments:]

remember that you can also use Named Parameters

Upvotes: 2

Related Questions