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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -