This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

sfDoctrineGuard plugin does not work to me

Discussion around this tutorial for symfony 1.2-1.4

sfDoctrineGuard plugin does not work to me

by ereallstaff » Wed Jul 20, 2011 12:20 pm

Hi using the sfGuardDoctrine with symfony 1.4 and Doctrine 1.2 brings me to an error

on day 16 all gone good, but in backend it shows me login form.

I put inside admin - admin ( I verified on DB that is correctly registered as super_administrator )

and on guard/login route, it says

Cannot redeclare class Doctrine_Core in /var/www/doctrine/1.2/Doctrine/Core.php

This error I already had when calling Doctrine Methods from a Doctrine object like Doctrine::getTable('tableName')

could be something to fix?

Thanks
ereallstaff
Junior Member
 
Posts: 6
Joined: Wed Jul 20, 2011 12:11 pm

Re: sfDoctrineGuard plugin does not work to me

by ereallstaff » Wed Jul 20, 2011 12:45 pm

Update:

with functional unit test:

$browser->
info('1 - Authentication')->
get('/affiliate')->
click('Signin', array(
'signin' => array('username' => 'admin', 'password' => 'admin'),
array('_with_csrf' => true)
))->
with('response')->isRedirected()->
followRedirect()->

It goes all ok


> 1 - Authentication
# get /affiliate
# post /guard/login
ok 1 - page redirected to http://localhost/index.php/affiliate
ereallstaff
Junior Member
 
Posts: 6
Joined: Wed Jul 20, 2011 12:11 pm