How do I list all the controllers/actions on my site? Configure::listObjects('model') doesnt seem to exist anymore. I am trying to write a function to generate/add to the ACO's in my ACL setup. Thanks.
相关问题
- How to restrict VOB read access in ClearCase (Wind
- Change input value based on another input's va
- How to implement og:tag in each post?
- How to validate single field of a model in cakephp
- CakePHP: add/substract with save()?
相关文章
- How to force refresh of images & css files in Cake
- Cookie vs. Session based flash message
- CakePHP and GROUP BY
- CakePHP: Cannot modify header information - header
- CakePHP 3.0 Flash Message
- cakephp login redirect
- Conditional Component Loading in CakePHP
- how to get Video id from iframe of youtube in php
I am using CakePHP 3.x and had problems with the function "getActions"
The correct syntax for "ReflectionClass" and "ReflectionMethod" is:
Warning for "\" before ReflectionClass and ReflectionMethod.
It doesn't look like anything similar to this is still available in Cake3, nor is it still needed because of the namespaces I think.
So in short you can try to do this:
So here is what I did. In my Resource Controller:
Include the reflection class/method libraries
To get the controllers:
And now for the actions:
Finally, to tie them boths together:
I hope that helps some people.