Welcome Guest, Not a member yet? Register   Sign In
Error with Html Helper
#2

[eluser]InsiteFX[/eluser]
anchor is not a method in the html helper it is a method in the url helper!
Code:
anchor(some address,some string);

Wrong!
Code:
class Navbar {
private $CI = "";
var $navbar = 'ITPL';

public function __construct(){  // <-----
$this->CI =& get_instance();
$this->CI->load->helper('html');
$this->CI->load->helper('date');
$this->disp_navbar();  
}

Also read the User Guide to see what now() really does!

public function disp_navbar(){
  $this->gen_navbar();
  $this->CI->template->write('navbar',$this->navbar);
}

public function gen_navbar(){
  $this->navbar = now();
}

}


Messages In This Thread
Error with Html Helper - by El Forum - 03-25-2012, 02:38 AM
Error with Html Helper - by El Forum - 03-25-2012, 07:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB