I'm moving my app from codeigniter to cakephp. I have my first issue and I am not able to fix it...
In my controller FeedController, I'm calling this: Login::isLoggedInUser()
I have in model folder, the file login.php with this code:
<?php
App::uses('Login', 'AppModel');
class Login extends AppModel {
public function __construct() {
session_start();
parent::__construct();
}
public static function authenticateUser() {
$_SESSION['username'] = 'feeds.123';
return $_SESSION['username'];
}
public static function isLoggedInUser() {
if (isset($_SESSION['username']) && $_SESSION['username'] == 'feeds.123') {
return true;
}
return false;
}
}
I don't see what's wrong, my error is:
Error: Class 'Login' not found
File: D:\wamp\www\app\Controller\FeedController.php
Line: 12
Thanks for your help.