php - CakePHP: where to keep a list of all admin actions? -


i can admin_edit, admin_delete, admin_print , admin_manage_tags actions on articlescontroller, actions require $id passed. can admin_create or admin_sort without $id. finally, admin_delete require post, others should use get.

how , store rules in cakephp in way can access or update them , have corresponding action links renderd on items list page, edit page, or anywhere else automatically?

for example, have list page of articles (admin_index), , render direct links editing or printing pages. know can hardcode them, if add new functionality, such admin_render_pdf, i'd have go through views , put there manually. same if rename or remove action.

furthermore, having common source of admin actions allow me render admin navigation automatically.

do define array somewhere manually, or cakephp have magic that'd retrieve me? commonly used / best practice in case?

the closest find list-all-controllers-actions-in-cakephp-3 looks it's acl-related.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -