Undrium - I do not make an instance of this class anywhere
If i call the query_string variable (echo it out) without being in a class, it shows the value, but when i put it in a class, it does not.
Derokorian - does that mean that even if the class has a constructor, i have to call it by creating an object?
Does that then mean that i should put this code
$prop_type = new Property_type_controller;
At the top before the class starts?
I think what confused or misled me is that if you look at Codeigniter controllers
http://codeigniter.com/user_guide/general/controllers.html
<?php
class Blog extends CI_Controller {
public function index()
{
echo 'Hello World!';
}
}
?>
There is no instantiation shown and yet when the controller is executed, it outputs that message.
So i assumed it was the same thing when creating a controller with plain PHP without using an MVC framework like Codeigniter.