I have index.php where i keep my __autoload() function that loads classes from a lib folder.
function __autoload($class) {
if(file_exists(LIBS . $class .".php")){
require LIBS . $class .".php";
}
}
I have a Dashboard class
class Dashboard extends Controller {
public function __construct(){
Auth::handleLogin();
}
}
Using sudo apt-get install php5 and apache2 on Ubuntu 12.04 i am not able to autoload that Auth, what could possibly go wrong? It works on my other computer which uses a Bitnami XAMPP server.
This is the error i get:
Fatal error: Class 'Auth' not found in /var/www/app/controllers/dashboard.php on line 6
Where the Auth::handleLogin(); is being called.