Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*********************************************\
- |****************** OPENCMS ******************|
- |*********************************************|
- |* @author Yannici *|
- |* @copyright Yannici *|
- |*********************************************|
- |* @since 04.11.2013 *|
- \*********************************************/
- abstract class Abstract_plugin {
- public abstract function action();
- public function view($data) {
- $data['PATH'] = $this->config->item('path');
- if(!file_exists(APPPATH . '/views/plugins/' . strtolower($this->_get_plugin_name()) . '/' . strtolower($this->_get_plugin_name()) . '.php')) {
- show_404();
- }
- $data['title'] = ucfirst($this->_get_plugin_name());
- $this->load->view('templates/header', $data);
- $this->load->view('plugins/' . strtolower($this->_get_plugin_name()) . '/' . strtolower($this->_get_plugin_name()), $data);
- $this->load->view('templates/footer');
- }
- public function __get($key) {
- if(property_exists($this, $key)) {
- return $this->$key;
- }
- $CI =& get_instance();
- return $CI->$key;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement