mvc/cms/controllers/PagesController.php
# url is the page to load from database
url is the page to load from database
url is the page to load from database
public function index($url="")
	{
		$data = $this->database->pages->getByUrl($url);
		if ($data !== false) {
			$this->title = $data["title"];
			$this->loadView("page", $data);
		}
		else {
			$this->title = "Page Not Found";
			$this->loadView("404", array(), "blank");
		}
	}
public function index ( $ url = " " ) { $ data = $ this -> database -> pages -> getByUrl ( $ url ) ; if ( $ data !== false ) { $ this -> title = $ data [ " title " ] ; $ this -> loadView ( " page " , $ data ) ; } else { $ this -> title = " Page Not Found " ; $ this -> loadView ( " 404 " , array ( ) , " blank " ) ; } }
url is the page to load from database
url is the page to load from database