PhpRiot

Listing 1729

Followup to listing-1620.php, submitted by anonymous user.

Submitted by anonymous user, 8 November 2008
<?php
 
         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/');
        }
?>
Submit a Follow Up