================================ use Multiple\Frontend\Models\Users; =
Users model:
namespace Multiple\Frontend\Models;
class Users extends \Phalcon\Mvc\Model {
public $id;
public $firstname;
public $lastname;
public $email;
public $birthday;
public $sex;
public $username;
public $password;
public $logins;
public $last_login;
public $role;
public function getSource()
{
return 'users';
}
}
Trying to get the data on the condition
$users = Users::find(array( array('username' => 'admin' ) ));
$users->username; // empty
------------ so, too, does not work ----- $users = Users::find(array( "conditions" => array("username" => "admin") ));