Codeigniter Library to construct frontend with integrated support for bootstarp 4.0A, jQuery, Font Awsome 5, Animate CSS, etc
Codeigniter Library to construct frontend with integrated support for
Composer: will be coming soon..
manual:
/application/libraries/
$this->PC->HEAD();
$this->PC->FOOTER();
to the end of your content.implement the CodeIgniterigniter standard library load method in the __construct
or in the function
.
Example:
$this->load->library('PageConstructor' => 'PC');
change in /application/config/autoload.php
around line 61..$autoload['libraries'] = array();
To$autoload['libraries'] = array('PageConstructor' => 'PC');
now you can use PC as an object ready to generate the frontend boring part :)
if the PageConstructor is loaded with AutoLoader
class Home extends CI_Controller {
public function __construct() {
parent::__construct();
$this->PC->HEAD();
}
public function index() {
if($this->uri->segment(1) != NULL && $this->uri->segment(2) != NULL){
$data["loadThisView"] = $this->uri->segment(1)."/".$this->uri->segment(2);
$this->load->view('template.php', $data);
}else{
$this->load->view('main.php');
}
}
}
<?php
if(isset($loadThisView)){
$this->load->view($loadThisView);
}else {
echo '<pre>content not loaded, error</pre>';
}
$this->PC->FOOTER();
?>