/** * Constructor * * Sets controller's app, and the default action if none given. * Creates the view */ function __construct() { $this->app = "admin"; parent::__construct(); $action = param('action'); if ($action) { $this->action = $action; } else { $this->action = "index"; } $this->setView(); }
/** * Constructor * * Sets controller's app, and the default action if none given. * Creates the view */ function __construct() { $this->app = "front"; parent::__construct(); $this->setView(); }