public function render_foo_single_post($content) { //include our view require_once 'views/foo-single-post-html.php'; //render the view $content = fooSinglePostHtmlView::render($message) . $content; //return the result return $content; }
public function render_foo_single_post($content) { //require_once our model require_once 'models/foo-model.php'; //instantiate the model $fooModel = new fooModel(); //get the message $message = $fooModel->get_message(); //require_once our view require_once 'views/foo-single-post-html.php'; //render the view $content = fooSinglePostHtmlView::render($message) . $content; //return the result return $content; }