php - OpenCart Call Different Controller -
i have custom module, , want call add()
function checkout/cart
. how call controller , function?
i have tried $this->load->controller('checkout/cart');
returns fatal exception.
i using opencart v 1.5.6.4
to solve same issue, use $this->load->controller("checkout/cart/add").
if use getchild, exception thrown : "call undefined method loader::getchild()".
what difference between 2 methods? getchild better?
Comments
Post a Comment