public function modifyAction() { $app = App::getInstance(); $id = (int) $app->getUrlParam('id'); $item = Options::load($id); $app->render(['title' => _('Edit Setting'), 'item' => $item]); }
*/ if (!defined('LANGDIR')) { define('LANGDIR', '/content/locales'); } //Settings that use other settings variables if (!defined('LILINA_CONTENT_DIR')) { define('LILINA_CONTENT_DIR', LILINA_PATH . '/content'); } if (!defined('LILINA_CACHE_DIR')) { define('LILINA_CACHE_DIR', LILINA_CONTENT_DIR . '/system/cache/'); } if (!defined('LILINA_DATA_DIR')) { define('LILINA_DATA_DIR', LILINA_CONTENT_DIR . '/system/data/'); } } /** * Attempt to load the class before PHP fails with an error. * * This method is called automatically in case you are trying to use a class which hasn't been defined yet. * @param string $class_name Class called by the user */ function __autoload($class_name) { $class_file = strtolower($class_name) . '.php'; if (file_exists(LILINA_INCPATH . '/core/class-' . $class_file)) { require_once LILINA_INCPATH . '/core/class-' . $class_file; } } spl_autoload_register('__autoload'); Options::load();