# |
Jul 10th 2018, 11:43 |
neon1024 |
As CakePHP is a RAD framework it is opinionated |
# |
Jul 10th 2018, 11:42 |
neon1024 |
You might also find this a helpful read, https://book.cakephp.org/3.0/en/intro/conventions.html |
# |
Jul 10th 2018, 11:42 |
sheraliqureshi.mhtech |
:$ |
# |
Jul 10th 2018, 11:42 |
lorenzo |
no problem :slightly_smiling_face: |
# |
Jul 10th 2018, 11:42 |
sheraliqureshi.mhtech |
typing mistake |
# |
Jul 10th 2018, 11:42 |
lorenzo |
there are a couple here: https://book.cakephp.org/3.0/en/tutorials-and-examples.html |
# |
Jul 10th 2018, 11:42 |
sheraliqureshi.mhtech |
sorry |
# |
Jul 10th 2018, 11:41 |
lorenzo |
tutorial? |
# |
Jul 10th 2018, 11:41 |
lorenzo |
what do you mean with titular? |
# |
Jul 10th 2018, 11:41 |
sheraliqureshi.mhtech |
can is there any titular for learning cake php? |
# |
Jul 10th 2018, 11:41 |
josbeir |
i don't know him but i've seen him yesterday |
# |
Jul 10th 2018, 11:41 |
lorenzo |
oh, that’s good to know. Seems like I never check the chat when he’s around |
# |
Jul 10th 2018, 11:40 |
neon1024 |
@lorenzo He’s been around the last few days :slightly_smiling_face: |
# |
Jul 10th 2018, 11:40 |
sheraliqureshi.mhtech |
i really heplp full for me |
# |
Jul 10th 2018, 11:40 |
lorenzo |
aside…. what happened to hmic? It’s beena long time I don’t see him around |
# |
Jul 10th 2018, 11:40 |
neon1024 |
https://github.com/cakephp/cakephp/blob/master/src/Routing/RouteBuilder.php#L646-L724 |
# |
Jul 10th 2018, 11:40 |
sheraliqureshi.mhtech |
thank you @neon1024 |
# |
Jul 10th 2018, 11:40 |
sheraliqureshi.mhtech |
oaky |
# |
Jul 10th 2018, 11:40 |
neon1024 |
I’ve already told you that. |
# |
Jul 10th 2018, 11:39 |
sheraliqureshi.mhtech |
its is url? |
# |
Jul 10th 2018, 11:39 |
neon1024 |
What is show? |
# |
Jul 10th 2018, 11:39 |
sheraliqureshi.mhtech |
$routes->connect('/users/signUp', can u tell me what is show ma "('/users/signUp'," \ |
# |
Jul 10th 2018, 11:39 |
neon1024 |
If you create a template in `src/Template/Users/index.ctp` by convention it would be loaded in the UsersController index method |
# |
Jul 10th 2018, 11:38 |
neon1024 |
That just shows a lack of understanding of MVC as a whole |
# |
Jul 10th 2018, 11:38 |
sheraliqureshi.mhtech |
okay |
# |
Jul 10th 2018, 11:38 |
neon1024 |
Not in the routing |
# |
Jul 10th 2018, 11:38 |
neon1024 |
Yeah, but you define your template in your controllers response |
# |
Jul 10th 2018, 11:38 |
neon1024 |
So I’m confused why you’d get that from anywhere |
# |
Jul 10th 2018, 11:38 |
sheraliqureshi.mhtech |
in laravel if you have folder and your view file u give . mean like pages.user |
# |
Jul 10th 2018, 11:38 |
neon1024 |
I mean, you can’t even do that in Laravel |
# |
Jul 10th 2018, 11:37 |
neon1024 |
The routes do not define the templates |
# |
Jul 10th 2018, 11:37 |
neon1024 |
The first param of the method is the url |
# |
Jul 10th 2018, 11:37 |
neon1024 |
Not sure where you’d get that idea from |
# |
Jul 10th 2018, 11:37 |
neon1024 |
Why would you throw a dot in there/ |
# |
Jul 10th 2018, 11:37 |
sheraliqureshi.mhtech |
if i make folder user and then i create ctp view file in it then how write it in route means like this $routes->connect('/users/signUp', ['controller' => 'Users', 'action' => 'signUp']); or like $routes->connect('/users.signUp', ['controller' => 'Users', 'action' => 'signUp']); |
# |
Jul 10th 2018, 11:35 |
sheraliqureshi.mhtech |
i more qurestion |
# |
Jul 10th 2018, 11:35 |
josbeir |
alright |
# |
Jul 10th 2018, 11:35 |
sheraliqureshi.mhtech |
thank you |
# |
Jul 10th 2018, 11:35 |
sheraliqureshi.mhtech |
not completely but i read |
# |
Jul 10th 2018, 11:34 |
josbeir |
https://book.cakephp.org/3.0/en/development/routing.html |
# |
Jul 10th 2018, 11:34 |
neon1024 |
Would route to the`CatsController` and the `index` method |