CakePHP Common functionality with models? -
i have 2 controllers (1 admin, 1 user) have common functionality. know you're supposed use components common controller functions/code i've read don't support models.
my functions (for example edit function gathers data 3 models , allows editing of entries) use data several models can't move logic/functionality in model.
what way go?
you should not have "admin" controller. instead, use admin routing , use admin actions.
for example
//userscontroller index() view() admin_index() admin_edit() admin_delete()
Comments
Post a Comment