How do I extend a custom JView class? - Joomla! Forum - community, help and support
hi,
i find myself using lot of duplicate functions in each of jview classes, example, making dropdown menus of lists database , keeping jsubmenu on page. i'd make 1 master jview class holds these functions, have individual view extend myparentjview class. (obviously not called that.)
is doable, , if so, create it?
i know it's doable custom controllers - have main controller.php, sub-classes in controllers/ folder. store parent jview class other views still conform mvc , know find it?
i've looked @ code of other component i've installed , don't see using custom jview class, maybe it's not done, seems should possible!
thanks.
i find myself using lot of duplicate functions in each of jview classes, example, making dropdown menus of lists database , keeping jsubmenu on page. i'd make 1 master jview class holds these functions, have individual view extend myparentjview class. (obviously not called that.)
is doable, , if so, create it?
i know it's doable custom controllers - have main controller.php, sub-classes in controllers/ folder. store parent jview class other views still conform mvc , know find it?
i've looked @ code of other component i've installed , don't see using custom jview class, maybe it's not done, seems should possible!
thanks.
jenstechs wrote:hi,
i find myself using lot of duplicate functions in each of jview classes, example, making dropdown menus of lists database , keeping jsubmenu on page. i'd make 1 master jview class holds these functions, have individual view extend myparentjview class. (obviously not called that.)
is doable, , if so, create it?
i know it's doable custom controllers - have main controller.php, sub-classes in controllers/ folder. store parent jview class other views still conform mvc , know find it?
i've looked @ code of other component i've installed , don't see using custom jview class, maybe it's not done, seems should possible!
thanks.
you can jview child class anywhere want. have make sure require_once file before reference it.
ian
Comments
Post a Comment