...
This commit is contained in:
parent
72decef6ca
commit
cedf373c03
7 changed files with 29 additions and 0 deletions
|
|
@ -0,0 +1,29 @@
|
||||||
|
https://www.youtube.com/watch?v=4neOZhzn-qI&list=PLT9miexWCpPW6Z_OXNv2d78cqCrZaPrVG&index=12
|
||||||
|
![[Pasted image 20241115082725.png]]
|
||||||
|
|
||||||
|
|
||||||
|
app/Config/Routes.php
|
||||||
|
![[Pasted image 20241115082852.png]]
|
||||||
|
|
||||||
|
http://godotweb.local/product/add
|
||||||
|
http://godotweb.local/product/list
|
||||||
|
http://godotweb.local/category/add
|
||||||
|
http://godotweb.local/category/list
|
||||||
|
|
||||||
|
|
||||||
|
**ROUTE NAMESPACE**
|
||||||
|
Create subfolder in Controllers directory
|
||||||
|
```bash
|
||||||
|
php spark make:controller Admin/Admin --suffix
|
||||||
|
```
|
||||||
|
|
||||||
|
![[Pasted image 20241115084552.png]]
|
||||||
|
|
||||||
|
```bash
|
||||||
|
php spark make:controller Seller/Seller --suffix
|
||||||
|
```
|
||||||
|
|
||||||
|
![[Pasted image 20241115084636.png]]
|
||||||
|
|
||||||
|
Access Controller in subfolder using namespace parameter in routes group method:
|
||||||
|
![[Pasted image 20241115085338.png]]
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 62 KiB |
BIN
MyObsidianVault/_images/Pasted image 20241115082725.png
Normal file
BIN
MyObsidianVault/_images/Pasted image 20241115082725.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 230 KiB |
BIN
MyObsidianVault/_images/Pasted image 20241115082852.png
Normal file
BIN
MyObsidianVault/_images/Pasted image 20241115082852.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 158 KiB |
BIN
MyObsidianVault/_images/Pasted image 20241115084552.png
Normal file
BIN
MyObsidianVault/_images/Pasted image 20241115084552.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 319 KiB |
BIN
MyObsidianVault/_images/Pasted image 20241115084636.png
Normal file
BIN
MyObsidianVault/_images/Pasted image 20241115084636.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 252 KiB |
BIN
MyObsidianVault/_images/Pasted image 20241115085338.png
Normal file
BIN
MyObsidianVault/_images/Pasted image 20241115085338.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 365 KiB |
Loading…
Add table
Add a link
Reference in a new issue