--- a/busui/owa/modules/hello/exampleSettings.php +++ b/busui/owa/modules/hello/exampleSettings.php @@ -1,1 +1,87 @@ + + * @copyright Copyright © 2006 Peter Adams + * @license http://www.gnu.org/copyleft/gpl.html GPL v2.0 + * @category owa + * @package owa + * @version $Revision$ + * @since owa 1.3.0 + */ + +class owa_exampleSettingsController extends owa_adminController { + + function __construct($params) { + + parent::__construct($params); + $this->type = 'options'; + $this->setRequiredCapability('edit_settings'); + } + + function action() { + + // add data to container + $this->setView('base.options'); + $this->setSubview('base.exampleSettings'); + } + +} + +/** + * Options View + * + * @author Peter Adams + * @copyright Copyright © 2006 Peter Adams + * @license http://www.gnu.org/copyleft/gpl.html GPL v2.0 + * @category owa + * @package owa + * @version $Revision$ + * @since owa 1.0.0 + */ + +class owa_exampleSettingsView extends owa_view { + + function __construct($params) { + //set page type + $this->_setPageType('Administration Page'); + return parent::__construct($params); + } + + function render($data) { + + // load template + $this->body->setTemplateFile('hello', 'example_settings.php'); + // assign headline + $this->body->set('headline', 'Example Settings Page'); + } + + +} + + + + +?>