shop.balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

load.php (482B)


      1 <?php
      2 /*
      3  *  location: catalog/model/extension/d_opencart_patch/load.php
      4  *
      5  */
      6 
      7 class ModelExtensionDOpencartPatchLoad extends Model {
      8 
      9     public function view($template, $data){
     10         if (substr($template, -3) == 'tpl') {
     11             $template = substr($template, 0, -4);
     12         }
     13 
     14         if(VERSION <= '2.1.0.0'){
     15             return $this->load->view($template.'.tpl', $data);
     16         }else{
     17             return $this->load->view($template, $data);
     18         }
     19         
     20     }
     21 }