Exemple #1
0
 public function other($arg = false)
 {
     echo 'We are inside other function <br/>';
     require 'models/help_model.php';
     $model = new Help_Model();
     $this->view->blah = $model->blah();
     if ($arg == true) {
         echo 'Optional: ' . $arg;
     }
 }
 public function other($arg = false)
 {
     echo 'We are in Help\'s other()<br/>';
     echo 'Optional param:' . $arg . '</br>';
     //the CSS design is lost when the http header becomes, http://localhost:7770/mvc/help/other
     //In order to solve it, we defined a constant(URL) in 'paths.php' and echo the constant in header.php
     $this->view->msg = 'This is the help page\'s other()  Welcome';
     //First the message has to be set, then view has to be rendered.
     $this->view->render('help/index');
     //CSS view for http://localhost:7770/mvc/help/other was missing without this
     require 'models/help_model.php';
     $model = new Help_Model();
     $this->view->blah = $model->blah();
     //not sure what this does
 }
Exemple #3
0
 public function orther()
 {
     require 'application/models/help_model.php';
     $model = new Help_Model();
     $this->view->blah = $model->blah();
 }
Exemple #4
0
 public function other($arg = false)
 {
     require "models/help_model.php";
     $model = new Help_Model();
     $this->view->blah = $model->blah();
 }
 public function other($arg = false)
 {
     require 'models/tutorial_model.php';
     $model = new Help_Model();
     $this->view->blah = $model->blah();
 }
 public function other($arg = false)
 {
     require 'models/help_model.php';
     $model = new Help_Model();
     $this->view->qTime = $model->quitTime();
 }