[eluser]ak-83[/eluser]
Hi every1!
Got a noob question.. It is said in CI documentation one can define scaffolding right in controller constructor and the get it with "controller/secret-word" request. If i code my constructor in PHP4 way -> it works well. But when I use PHP5 style -> it fails, showing 404 error. What's the deal?
The code that works below...
Code:
class Blog extends Controller {
function Blog(){
parent::Controller();
$this->load->database('default');
$this->load->scaffolding('posts');
}
// IT WORKS!
Not work..
Code:
class Blog extends Controller {
function __construct(){
parent::Controller();
$this->load->database('default');
$this->load->scaffolding('posts');
}
//DON'T WORK!