# |
Jul 10th 2018, 11:34 |
neon1024 |
Would route to the`CatsController` and the `index` method |
# |
Jul 10th 2018, 11:34 |
josbeir |
say @sheraliqureshi.mhtech did you read the manual ? |
# |
Jul 10th 2018, 11:34 |
neon1024 |
`$routes->connect('/dogs`, [‘controller’ => ‘Cats’, ‘action’ => ‘index’])` |
# |
Jul 10th 2018, 11:33 |
neon1024 |
But your actual url can be whatever you want |
# |
Jul 10th 2018, 11:33 |
neon1024 |
Routes are defined using tokens, such as `:controller` or `:action`. The usual format for a route, and the default one is `/:controller/:action` |
# |
Jul 10th 2018, 11:32 |
sheraliqureshi.mhtech |
means with route name where controoler or wher is action in route @neon1024 |
# |
Jul 10th 2018, 11:31 |
sheraliqureshi.mhtech |
can u define i route for me |
# |
Jul 10th 2018, 11:31 |
josbeir |
just updated and saw it :) |
# |
Jul 10th 2018, 11:31 |
josbeir |
was not preset in older 3.x version |
# |
Jul 10th 2018, 11:31 |
sheraliqureshi.mhtech |
thanks @neon1024 |
# |
Jul 10th 2018, 11:31 |
josbeir |
thats included in the newer cake shell |
# |
Jul 10th 2018, 11:31 |
josbeir |
ah idd |
# |
Jul 10th 2018, 11:30 |
edgaras.jan |
> # If your CLI PHP is somewhere that this doesn't find, you can define a PHP environment > # variable with the correct path in it. |
# |
Jul 10th 2018, 11:30 |
neon1024 |
@sheraliqureshi.mhtech Well we can certainly help with any questions you have. Cake and Laravel have some similarities :slightly_smiling_face: |
# |
Jul 10th 2018, 11:30 |
neon1024 |
@josbeir Not a clue |
# |
Jul 10th 2018, 11:26 |
josbeir |
i always feel myself fiddling with this |
# |
Jul 10th 2018, 11:26 |
josbeir |
hmm, what is the best way to change the php binary when using the bin/cake command |
# |
Jul 10th 2018, 11:25 |
sheraliqureshi.mhtech |
need help |
# |
Jul 10th 2018, 11:25 |
sheraliqureshi.mhtech |
but i have to right his code and i m facing alot of issue in this project\ |
# |
Jul 10th 2018, 11:24 |
sheraliqureshi.mhtech |
i m laravel developer |
# |
Jul 10th 2018, 11:23 |
sheraliqureshi.mhtech |
i m just tring to right his code |
# |
Jul 10th 2018, 11:23 |
neon1024 |
How are you finding the framework so far? |
# |
Jul 10th 2018, 11:23 |
sheraliqureshi.mhtech |
this is some one else code |
# |
Jul 10th 2018, 11:23 |
neon1024 |
Welcome! |
# |
Jul 10th 2018, 11:23 |
sheraliqureshi.mhtech |
i am new on cakephp |
# |
Jul 10th 2018, 11:23 |
sheraliqureshi.mhtech |
http://localhost/*******************/users/signUp/ |
# |
Jul 10th 2018, 11:20 |
neon1024 |
`UsersController::signUp()` |
# |
Jul 10th 2018, 11:19 |
neon1024 |
`$routes->connect('/users/sign-up', ['controller' => 'Users', 'action' => 'signUp'])` |
# |
Jul 10th 2018, 11:19 |
josbeir |
also, if fallback routing is enabled, your route should already be working |
# |
Jul 10th 2018, 11:18 |
josbeir |
• dont use camelcasing in route names • controller names should be plural |
# |
Jul 10th 2018, 11:18 |
josbeir |
there's so much wrong with that route |
# |
Jul 10th 2018, 11:17 |
sheraliqureshi.mhtech |
my this route is not working |
# |
Jul 10th 2018, 11:17 |
sheraliqureshi.mhtech |
$routes->connect('/users/sigUp', ['controller' => 'User', 'action' => 'signUp']); |
# |
Jul 10th 2018, 10:38 |
james.phillips |
thanks for all your help...now I have to go write some more propsal :( |
# |
Jul 10th 2018, 10:37 |
josbeir |
^^ |
# |
Jul 10th 2018, 10:37 |
james.phillips |
I just need her to take them for a month or two ;) |
# |
Jul 10th 2018, 10:36 |
josbeir |
:) |
# |
Jul 10th 2018, 10:36 |
josbeir |
:S take them to their grandma |
# |
Jul 10th 2018, 10:36 |
james.phillips |
I dont have my own time...the kids own me lol |
# |
Jul 10th 2018, 10:36 |
josbeir |
@james.phillips do it on your onw time ;) |
# |
Jul 10th 2018, 10:35 |
james.phillips |
thanks...It would be easier if i could get to play with it but dont have the time to upgrade etc at the mo.... |