Changeset 409 for branches/devel/application/controllers/welcome.php
- Timestamp:
- 08/26/2007 01:44:14 PM (16 months ago)
- Files:
-
- 1 modified
-
branches/devel/application/controllers/welcome.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/devel/application/controllers/welcome.php
r405 r409 1 1 <?php 2 2 3 class Welcome extends Controller {3 class Welcome_Controller extends Controller { 4 4 5 5 function index() 6 6 { 7 $this->load->view('welcome')->set('message', 'testing')->render(TRUE); 8 print "hi"; 7 print new View('welcome', array('message' => 'testing calls back to the controller')); 8 9 // $db = new Database(); 10 // print_r ($db); 9 11 } 10 12 11 function _index()13 function say_hello() 12 14 { 13 $this->load->helper('url'); 14 print "<p>Welcome to ".url::site('welcome')."!</p>\n"; 15 16 $this->load->model('users'); 17 print "<p>Model test: ".$this->users->hi()."!</p>\n"; 18 19 print "<p>Rendered in {execution_time} seconds</p>\n"; 15 return '<strong>OMG HI!!!!1</strong>'; 20 16 } 21 17 22 18 } 23 24 ?>
