Sometimes you need to override default controller behavior in cs-cart. But you can't use override modifier like in hooks.
What are approaches we can use to override default controllers?
Sometimes you need to override default controller behavior in cs-cart. But you can't use override modifier like in hooks.
What are approaches we can use to override default controllers?
Copyright © 2021 Jogjafile Inc.
The simplest approach I found is to use
dispatch_assign_templatehook fromfn.control.phpfile.define hook in your addon's
init.phpfile.add next function in your addon's
func.phpfileWe passed
&$controllers_cascadeparameter by reference.We excluded default controller from
$controllers_cascadearray.categories.post.phpand add