[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
?>
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