Listing 1620
Followup to listing-1619.php, submitted by PHPRO.ORG.
Submitted by anonymous user, 9 October 2008
public function __construct() { // parent::__construct(); $this->template = new template; $this->template->setTemplateDir("templates/blog"); $this->xajax = new xajax; // $this->xajax->configure('requestURI', 'http://localhost/mvcLite/blog/addBlog'); $this->xajax->setFlag( 'debug', true ); /*** modal window ***/ include_once __SITE_PATH.'/xajax/xajax_core/xajaxPlugin.inc.php'; include_once __SITE_PATH.'/xajax/xajax_core/xajaxPluginManager.inc.php'; include_once __SITE_PATH.'/xajax/xajax_plugins/response/modalWindow/modalWindow.inc.php'; $this->xajax->register(XAJAX_FUNCTION, array('addBlog', $this, 'addBlog') ); $this->xajax->register(XAJAX_FUNCTION, array('checkLogin', $this, 'checkLogin') ); $this->xajax->register(XAJAX_FUNCTION, array('submitBlog', $this, 'submitBlog') ); $objResponse = new xajaxResponse(); $this->xajax->processRequest(); $this->xajax->processRequest(); $this->template->xajax_js = $this->xajax->getJavascript(__DOC_ROOT.'/xajax/'); }
