Welcome Guest, Not a member yet? Register   Sign In
calling control construct and output
#1

[eluser]Unknown[/eluser]
Hello,I'm new to CodeIgniter
in the General Topics section
i have some questions about

__construct
_output

i want to call both

Code:
<?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
?&gt;

but at the end it only call construct() and index() when i type index.php/index
but the tutorial said
Quote: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
#2

[eluser]InsiteFX[/eluser]
CodeIgniter Users Guide - Output Class




Theme © iAndrew 2016 - Forum software by © MyBB