Welcome Guest, Not a member yet? Register   Sign In
Can i pass params into a controllers __construct() function?
#1

[eluser]coldscooter[/eluser]
Example:

public function __construct($id=null){
parent::__construct($id);

die($id);
}

The param that i pass in the uri is never picked up by the __construct function.


Messages In This Thread
Can i pass params into a controllers __construct() function? - by El Forum - 05-24-2012, 03:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB