<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* This class provides Siet Configuration Setup
*
* @package OSB
* @category Controllers/Admin
* @author Deon George
* @copyright (c) 2009-2013 Open Source Billing
* @license http://dev.osbill.net/license.html
*/
class Controller_Admin_Setup extends Controller_TemplateDefault {
protected $secure_actions = array(
'edit'=>TRUE,
);
* View/Update the site configuration
public function action_edit() {
$o = Company::instance()->so();
if ($this->request->post() AND $o->values($this->request->post())->changed() AND (! $this->save($o)))
$o->reload();
Block::factory()
->title('Update Site Configuration')
->title_icon('fa fa-wrench')
->type('form-horizontal')
->body(View::factory('setup/admin/edit')->set('o',$o));
->title('Update Module Configuration')
->body(View::factory('setup/admin/module')->set('o',$o)->set('mid',NULL));
}
?>