This commit is contained in:
Torsten 2024-11-17 12:05:52 +01:00
parent cedf373c03
commit e225e05c52
21 changed files with 121 additions and 0 deletions

View file

@ -0,0 +1,27 @@
https://www.youtube.com/watch?v=QaNGT-hj0so&list=PLT9miexWCpPW6Z_OXNv2d78cqCrZaPrVG&index=8
![[Pasted image 20241112083749.png]]
![[Pasted image 20241112084116.png]]
Add route to Controller+method in Config/Routes.php:
![[Pasted image 20241112084252.png]]
Example for using where clause ( second parameter in update method ):
![[Pasted image 20241112084920.png]]
Delete:
![[Pasted image 20241112085347.png]]
Select all:
![[Pasted image 20241112090019.png]]
![[Pasted image 20241112090048.png]]
Select with where clause
![[Pasted image 20241112090400.png]]
For single row result, we directly load into Array ( instead of Array of Array)
![[Pasted image 20241112090526.png]]