EllisLab text mark
Advanced Search
     
calling control construct and output
Posted: 18 November 2012 11:00 AM   [ Ignore ]
Joined: 2012-11-18
2 posts

Hello,I’m new to CodeIgniter
in the General Topics section
i have some questions about

__construct
_output

i want to call both

<?php

 
class Aboutme extends CI_Controller
 {
  
public function __construct()
  
{
  }
//end of function construct

  
public function index($firstName="1",$LastName="2")
  
{
   
echo "Hello,I'm ".$firstName."-".$LastName;
   
  
}//end of function index
  
  
public function _output($output)
  
{
   
echo "<hr/>code by Huei";
  
}//end of function output
 
}//end of class Aboutme
?> 

but at the end it only call construct() and index() when i type index.php/index
but the tutorial said

CodeIgniter has an output class that takes care of sending your final rendered data to the web browser automatically

i want both construct and _output works

 
Posted: 18 November 2012 03:35 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2009-06-19
6267 posts

CodeIgniter Users Guide - Output Class

 Signature 

Ceritfied State of CT Computer Programming Teacher.
Custom Designed Icons, eBook Covers Software Boxes. CD, DVD Etc. New iPhone® Tab Bar Icons and iPhone® Applications Icons.

STOP! Before posting your questions, remember the WWW Golden rule:
What did you try? What did you get? What did you expect to get?

Input -> Controller | Processing -> Model | Output -> View