RestFull API using CodeIgniter & Doctrine 2 with a working example of a Login