Sharing a feature in more than one controller |
I have 3 controllers for different pages of product types.
In all this pages only the header area looks similar (images and text form a database, some price calculations). I don't want to create this area in all 3 controllers over and over again. How can i share this feature in all 3 controllers? In the MY_Controller it is always loaded (not only on product pages) and i think this is not so good. Is there another solution or best practise? |
Messages In This Thread |
Sharing a feature in more than one controller - by groovebird - 08-26-2015, 11:14 AM
RE: Sharing a feature in more than one controller - by orionstar - 08-26-2015, 11:41 AM
RE: Sharing a feature in more than one controller - by groovebird - 08-26-2015, 01:10 PM
RE: Sharing a feature in more than one controller - by albertleao - 08-26-2015, 01:42 PM
|