To control the view section of the MVC framework in PHP (Part 1 of 5)

class View
{
    function showGrid($data)
    {
        include_once ('components/product_category/views/grid.php');
    }
   
    function showForm($obj_,$cdata)
    {
        include_once ('components/product_category/views/form.php');
    }
}
?>

Comments

Popular posts from this blog

Opencart error: Notice: Trying to access array offset on value of type null in ..../vendor/scss.inc.php on line 1753

Creating Class Templates

Fixed: Opencart installation error linux: warning: fopen(system/storage) failed to open stream: Permission denied