Skip to content
Justin Campo edited this page Oct 24, 2015 · 1 revision

#Overview If page exists it gets loaded directly, XESM does not even have to get loaded. The majority of pages should not be loaded directly and should be loaded using XESM which flows as follows:

1) .htaccess → sends all traffic to /public_html/index.php

2) /public_html/index.php includes the initialization script and calls the page rendering method

include("./xesm/core/init.php");
$xesm = new init();
$xesm->page();

3) The Init class upon initialization loads the following (in the listed sequence)

4) The XESM framework is pretty much fully loaded at this point. The main object that remains is the Page Class which is not required to use the rest of the system. Here it the code from $init->page();

//loads in the page class file
include($this->dir_root.$this->c->config->dir_core."page.php");
//adds the page class to the container
$this->c->assign("page",function ($c) { return new \xesm\core\page($c); });
//run the init method which handles all the page logic for the XESM system
$this->c->page->init($render);

Learn more about the Page Class

Clone this wiki locally