CakePHP
Online Meetup 2
Yes, we did it again
Hosted by: Mark Story, Mark Scherer, Jorge González
Slide 2
Slide 2 text
CakePHP Meetup 2
- 'Baking a new plugin and TDD for it' by Mark Scherer ~1h
- 'Authorization plugin' by Jorge González ~1h
- 'Pro-Debug with Xdebug + stepping through in IDE' by Jorge González ~20m
- Mark Story will be around too and might be talking about common-table-expressions...
Slide 3
Slide 3 text
Baking a new plugin
And TDD for it
@dereuromark, I choose you!
Slide 4
Slide 4 text
About
Jorge González @steinkelz
• CakePHP Developer at CakeDC [email protected] https:/
/www.cakedc.com
• Trainer at Cake Software Foundation https:/
/training.cakephp.org
Code example
- Add authorization for admin/tournaments
- You can add new tournaments
- You can browse tournaments you are in
- You can view/edit tournaments you are in
- Superadmin can only delete tournaments
9
Slide 10
Slide 10 text
What if you only need RBAC
- You don't want/care about fine grained permissions
- You need endpoint RBAC decorated with some rules
- THEN, consider some RBAC alternative
- Like cakedc/auth
- Like dereuromark/cakephp-tinyauth
10
Slide 11
Slide 11 text
Step by step debugging
• Using your IDE to debug issues
11