Kód: Vybrať všetko
http://themeforest.net/item/pav-dress-store-responsive-opencart-theme/5641319
súbor modul.php sa na zadanej ceste bohužial nenachádza a tam bude asi chyba. Len neviem ci to je nejaky univerzalny subor alebo kazda tema ma svoj vlastny. Ďakujem za hocijaku pomocNotice: Error: Could not load model /home/ot011700/_sub/upload/catalog/model/extension/module.php! in /home/ot011700/_sub/upload/system/modification/system/engine/loader.php on line 24
súbor loader.php
Kód: Vybrať všetko
<?php
final class Loader {
private $registry;
public function __construct($registry) {
$this->registry = $registry;
}
public function controller($route, $args = array()) {
$action = new Action($route, $args);
return $action->execute($this->registry);
}
public function model($model) {
$file = DIR_APPLICATION . 'model/' . $model . '.php';
$class = 'Model' . preg_replace('/[^a-zA-Z0-9]/', '', $model);
if (file_exists($file)) {
include_once(modification($file));
$this->registry->set('model_' . str_replace('/', '_', $model), new $class($this->registry));
} else {
trigger_error('Error: Could not load model ' . $file . '!');
exit();
}
}
public function view($template, $data = array()) {
$file = DIR_TEMPLATE . $template;
if (file_exists($file)) {
extract($data);
ob_start();
require(modification($file));
$output = ob_get_contents();
ob_end_clean();
return $output;
} else {
trigger_error('Error: Could not load template ' . $file . '!');
exit();
}
}
public function library($library) {
$file = DIR_SYSTEM . 'library/' . $library . '.php';
if (file_exists($file)) {
include_once(modification($file));
} else {
trigger_error('Error: Could not load library ' . $file . '!');
exit();
}
}
public function helper($helper) {
$file = DIR_SYSTEM . 'helper/' . $helper . '.php';
if (file_exists($file)) {
include_once(modification($file));
} else {
trigger_error('Error: Could not load helper ' . $file . '!');
exit();
}
}
public function config($config) {
$this->registry->get('config')->load($config);
}
public function language($language) {
return $this->registry->get('language')->load($language);
}
}