class Frontend_Controller_Backoffice

An abstract controller class, which is used for displaying Layout Designer projects on the website frontend (for displaying administrative modules on the frontend in particular). It requires administrative rights and shows an authorization form (available in version 0.9.2 and higher).

Additional settings are required. Please see the following case study at http://dvelum.ru/cookbook_extjs_frontend.html for an example.

abstract class Frontend_Controller_Backoffice extends Backend_Controller
{
/**
 * Module id assigned to controller;
 * Is to be defined in child class
 * Is used for controlling access permissions
 * @var string
 */
protected $_module;

/**
 * A link to Config object of the backend application
 * @var Config_Abstract
 */
protected $_configBackoffice;

/**
 * A link to Config object of the connected JS files
 * @var Config_Abstract
 */
protected $_configJs;

/**
 * A link to User object (current user)
 * @var User
 */
protected $_user;

/**
 * An indicator signifying whether the current request has
 * been sent using AJAX
 */
protected $_isAjaxRequest;

/**
 * Include required JavaScript files defined in the configuration  file
 */
public function includeScripts()

/**
 * Check user permissions and authentication
 */
public function checkAuth()

/**
 * Show login form
 */
protected function loginAction()

/**
 * Default action, needs to be defined in the child class as per   your application logic
 */
public function indexAction()

/**
 * Run Layout project
 * @param string $project - path to project file
 * @param string $renderTo - optional, identifies the DOM object where the project is to be rendered into.
 */
protected function _runDesignerProject($project, $renderTo = false)

/**
 * Send JSON error message
 * or redirect to index, if this is not an AJAX request
 */
protected function _errorResponse($msg)
}

comments powered by Disqus