/** * include_file Used by view to include sub-views * * Example: * * view.php * <code> * <html> * <body> * body content * <?php $this->include_file('footer.php') ?> * </body> * </html> * </code> * * @param string $file * @return void */ protected function include_file($file) { $v = new View($file); $v->render($this->data); $this->data = $v->get_data(); }