public function makeContent($viewName, $inputData = array()) { $themePath = System::getThemePath() . 'view/'; $inputData['themePath'] = $themePath; View::makeWithPath('head', array(), $themePath); View::makeWithPath($viewName, $inputData, $themePath); View::makeWithPath('footer', array(), $themePath); }
</div> <!-- items --> '; } } echo $li; ?> <!-- page --> <div class="row"> <div class="col-lg-12 text-right"> <?php echo $listPage; ?> </div> </div> <!-- page --> </div> <!-- left --> <!-- right --> <?php View::makeWithPath('right', array(), $themePath); ?> <!-- right --> </div> </div> <!-- body -->
public static function view($pageName, $inputData = array(), $otherPath = '') { $themePath = System::getThemePath() . 'view/'; if (isset($otherPath[1])) { $themePath = $otherPath; } View::makeWithPath($pageName, $inputData, $themePath); }
<div class="row"> <div class="col-lg-12"><h2>Page not found</h2></div> </div> <!-- title --> <!-- content --> <div class="row"> <div class="col-lg-12"> <span>This content not found in our database.</span> </div> </div> <!-- content --> </div> </div> </div> <!-- items --> </div> <!-- left --> <!-- right --> <?php View::makeWithPath('right', array(), System::getThemePath() . 'view/'); ?> <!-- right --> </div> </div> <!-- body -->