[symfony-users] Re: Validation don´t work

2010-02-15 Thread Tom Ptacnik
You need to add the validation part or the form to your action

if ($form-isValid())
{
 process...
}
else
{
$this-getUser()-setFlash('error', 'The item has not been saved
due to some errors.', false);
}

(look into some autogenerated processForm action)


On 13 ún, 20:24, Rodrigo Prado roy...@gmail.com wrote:
 Good afternoon!

 I have a problem with validation in symfony.

 archive: C:\xampplite\htdocs\portalcepai\lib\form\LoginForm.class

 ?php
 class LoginForm extends sfForm
 {
   public function configure()
   {
     $this-setWidgets(array(
       'username' = new sfWidgetFormInput(),
       'password' = new sfWidgetFormInputPassword()
     ));

     $this-widgetSchema-setLabels(array(
       'username'    = 'Usuário',
       'password'   = 'Senha',
     ));

      $this-setValidators(array(
       'username' = new sfValidatorString(array('required' = true)),
       'password' = new sfValidatorString(array('required' = true)),
     ));
   }

 }

 template:- loginSucess.php

 form action=?php echo url_for('login/login') ? method=POST
     ?php echo $form ?
     input type=submit value=Logar/
 /form

 My action method responsable for login

   public function executeLogin(sfWebRequest $request)
   {
     if ($this-getRequest()-getMethod() != sfRequest::POST)
     {
       // display the form
       $this-getRequest()-setAttribute('referer', 
 $this-getRequest()-getReferer());

       $this-form = new LoginForm();
     }
     else
     {
       // handle the form submission
       $username = $this-getRequestParameter('username');
       $password = md5($this-getRequestParameter('password'));

       $this-forward404Unless($usuario = 
 Doctrine::getTable('Usuario')-findOneByUsername($username), sprintf('O 
 usuário (%s) não existe .',

 $username));

       //$usuario = Doctrine::getTable('Usuario')-

 findOneByUsername($username);

       // password is OK?
       if ($usuario-password == $password)
       {

         //Inclui na sessão os dados do usuário

         $this-getUser()-setAuthenticated(true);
         $this-getUser()-addCredential($usuario-perfil);

         //nome atributo, valor, valor padrão caso esteja nulo
         $this-getUser()-setAttribute('id', $usuario-id);
         $this-getUser()-setAttribute('username', $usuario-username);

         $this-getUser()-setAttribute('password', $usuario-password);

         $this-getUser()-setAttribute('perfil', $usuario-perfil);
         $this-getUser()-setAttribute('email', $usuario-email);

         $this-redirect('home/index');
         //return $this-redirect($this-getRequestParameter('referer',
 '@homepage'));

       }
       else
       {
         //password incorreto
         $this-forward404( Senha inválida. );
       }
     }
   }

 So, when I put blank the fields username or password, nothing be, the
 form is processed normally, without validation.

 What the problem??

 Thanks.

 Rodrigo

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] CSRF attack detected when using sfGuardDoctrinePlugin

2010-02-15 Thread jean-christophe zulian
Hi Michal,

You actually may be right, this problem might be related to the browser or 
session information. For some reason we haven't be able to reproduce this 
problem since this morning and we are doing exactly the same thing as before 
(login, logout and login again).

Cheers,
Jean-christophe


kOn Fri, 12 Feb 2010 19:48:19 +0100
Michał Piotrowski mkkp...@gmail.com wrote:

 Hi,
 
 2010/2/11 jean-christophe zulian jean-christophe.zul...@liip.ch:
  Hi list,
 
  After setting up the sfGuardDoctrine plugin for our project we
  created a login page in the same fashion as it is done on the
  jobeet tutorial.
 
  When coming on the login page for the first time and entering
  username/password the login procedure works fine. If we logout and
  enter the username/password again we get a 'CSRF attack' message
  displayed above the form. This message will be displayed until we
  refresh the page.
 
  We have tried to investigate a bit on why this was happening but
  couldn't figure it out.
 
  Would anybody have any idea about why this is happening?
 
  Many thanks,
  Jean-christophe
 
 
 I have seen a similar problem with Opera browser. In my case it seems
 to be browser related.
 
 Path is very simple - login, browse some pages, logout, login. No
 problems on Firefox, Chrome, IE8. Warning about CSRF attack shows only
 in Opera.
 
 Sigh.
 
 Regards,
 Michal
 


-- 


signature.asc
Description: PGP signature


Re: [symfony-users] CSRF attack detected when using sfGuardDoctrinePlugin

2010-02-15 Thread Sid Bachtiar
You might want to try this

1. Login
2. Logout
3. Open login page
4. Leave the browser alone until the session expired (e.g.: default is
30 minutes I think, so leave it for an hour to be sure)
5. Try to login

I think this is a problem with CSRF and session. I actually disable
CSRF protection on login form because of this.

On Tue, Feb 16, 2010 at 12:57 AM, jean-christophe zulian
jean-christophe.zul...@liip.ch wrote:
 Hi Michal,

 You actually may be right, this problem might be related to the browser or 
 session information. For some reason we haven't be able to reproduce this 
 problem since this morning and we are doing exactly the same thing as before 
 (login, logout and login again).

 Cheers,
 Jean-christophe


 kOn Fri, 12 Feb 2010 19:48:19 +0100
 Michał Piotrowski mkkp...@gmail.com wrote:

 Hi,

 2010/2/11 jean-christophe zulian jean-christophe.zul...@liip.ch:
  Hi list,
 
  After setting up the sfGuardDoctrine plugin for our project we
  created a login page in the same fashion as it is done on the
  jobeet tutorial.
 
  When coming on the login page for the first time and entering
  username/password the login procedure works fine. If we logout and
  enter the username/password again we get a 'CSRF attack' message
  displayed above the form. This message will be displayed until we
  refresh the page.
 
  We have tried to investigate a bit on why this was happening but
  couldn't figure it out.
 
  Would anybody have any idea about why this is happening?
 
  Many thanks,
  Jean-christophe
 

 I have seen a similar problem with Opera browser. In my case it seems
 to be browser related.

 Path is very simple - login, browse some pages, logout, login. No
 problems on Firefox, Chrome, IE8. Warning about CSRF attack shows only
 in Opera.

 Sigh.

 Regards,
 Michal



 --




-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Abridged summary of symfony-users@googlegroups.com - 9 Messages in 7 Topics

2010-02-15 Thread joost . farla
Beste,

Tot en met 18 februari ben ik niet aanwezig op kantoor.
U kunt contact opnemen met Wout Withagen: w...@freshheads.com of 013 5448761.

Met vriendelijke groet,

Joost Farla
joost.fa...@freshheads.com

- -

freshheads grafisch ontwerp en internet applicaties
Dunantstraat 1c | 5017 KC Tilburg | Nederland
tel. +31 (0)13 5448761 | fax. +31 (0)13 5448762
i...@freshheads.com | www.freshheads.com


-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: How can i display the register link, in my login page using SfGuardExtraPlugin?

2010-02-15 Thread p16
Hi, the regstration link seems ok.
(I gave you the wrong one yesterday, sorry)

The routing role sf_guard_register you added doesn't seem to be
right. The plugin should register its own routing roles by itself.
http://trac.symfony-project.org/browser/plugins/sfGuardExtraPlugin/branches/1.2/lib/sfGuardExtraRouting.class.php

Try to delete your sf_guard_register role and see what happens.

If it still does not work check if the plugin it is activated in your
ProjectConfiguration.class.php file.

Hope this helps.
Filippo

On 15 February 2010 10:18, Fruitlover krizhel...@yahoo.com wrote:
 how about in register? i made the link in the standard
 signinSuccess.php template in
 my login template,

 a href=?php echo url_for('@sf_guard_register) ??php echo
 __('Register Now') ?/a
 and i add this in my apps/frontend/config/routing.yml :

 sf_guard_register:
  url:   /reg
  param: { module: sfGuardRegister, action: register }

 I  also enable the module in apps/frontend/settings.yml

 but it seems that it cannot find the page, it display :

 Action reg/register does not exist.

 How can i fix that to the point it can display the register page?


-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Trying to give a default value to a filter form

2010-02-15 Thread Javier Garcia

Hi,

im trying to give a default value to a field of a filter.

I have no problems giving a default value to a form this way:

$m = new Birthday();
$m-setName('Peter');
$this-filter = new BirthdayForm($m);

But when i try this:

$m = new Birthday();
$m-setName('Peter');
$this-filter = new BirthdayFormFilter($m);

this error appears:

Warning: array_merge() [function.array-merge 
http://rs.localhost/frontend_dev.php/function.array-merge]: Argument 
#2 is not an array in 
/opt/lampp/htdocs/rs/lib/vendor/symfony/lib/form/sfForm.class.php on 
line /1023/


Any idea?

Javi

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] m:n with orderBy setting in yml is ignored

2010-02-15 Thread axel at
hello,

using symfony 1.4 with doctrine:
how can I add an order by xy to the default doctrine getter

example:

Event:
  columns:
id:
  type: integer(4)
  primary: true
title:
  type: varchar(255)
  Visitor:
  class: Visitor
  refClass: Event2Visitor
  local: id
  foreign: id
  orderBy: name
  foreignAlias: Visitors

Visitor:
  columns:
id:
  type: integer(4)
  primary: true
name:
  type: varchar(255)


Event2Visitor:
  columns:
eventid:
  type: integer(4)
  primary: true
visitorid:
  type: integer(4)
  primary: true
  relations:
Visitor
  local: visitorid
  foreign: id
Event:
  local: eventid
  foreign: id


var event = 

foreach ( event-getVisitors() )

is ordered by id and not by name, the orderBy name setting in
schema.yml seems to be ignored

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] sfValidatorPropelUnique with sfValidatorPropelChoiceMany

2010-02-15 Thread Tomasz Ignatiuk
Hi

I have a table with unique index of 3 columns. So I use this:


$this-validatorSchema-setPostValidator(
  new sfValidatorPropelUnique(array('model' = 'ProduktPartner',
'column' = array('partner', 'product', 'language')))
);

It works well.
But I would like to make some changes in the form. To give a
possibility to choose one partner, one product and many languages. I
have changed processForm to save for each language different object
with the same partner and product. But then, sfValidatorPropelUnique
doesn't work. Any ideas how to solve this problem out?

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: Error using sfFacebookConnectPlugin and sfGuardPlugin

2010-02-15 Thread Zach
Has anyone else done this?
What's the best way to collect extra information about a facebook
user, the first time they sign in with facebook connect?
How do I know it's their first time, and how should I override the
default Signin function to do this?
Thanks,
Zach

On Feb 8, 11:45 am, Zach zach...@gmail.com wrote:
 I have a question regarding the getSfGuardUserByFacebookSession
 function of the sfFacebook class.

 I am overriding the BasesfFacebookConnectAuthActions executeSignin()
 function to see if an sfGuardUser has been created and if not redirect
 to a different page to confirm some details and add the email and
 phone number. I tried calling
 getSfGuardUserByFacebookSession(false,true) thinking that it wouldn't
 create a user since I passed false for the create paramter. But
 apparently it does create a Guard User. Here's my code:

 public function executeSignin()
 {
         $sfGuardUser =
 sfFacebook::getSfGuardUserByFacebookSession(false,true);
         if($sfGuardUser){
                 ...execute some irrelevant code...
         }else{
                 //if the guard user has not yet been created, set the
 forward parameter to redirect to, in the base signin function
                 
 $this-getRequest()-setParameter('forward','mymodule/myaction');
         }
         BasesfFacebookConnectAuthActions::executeSignin();

 }

 It never executes the else and therefor the forward parameter is never
 set. So I cannot redirect to save some information from the facebook
 user.
 Perhaps I am misunderstanding the purpose of the create parameter or
 maybe I have the completely wrong approach.
 Thanks in advance for your time and help.

 Zach

 On Dec 29 2009, 7:00 am, Fabrice Bernhard fabri...@theodo.fr wrote:



  I would definitely check the configuration.

  To get the Facebook UID in a website, you need Facebook Connect to be
  perfectly configured and to not forget the publish-assets command for
  the html file to be visible.

  To get the Facebook UID in a Facebook app, you need to test inside the
  Facebook frame.

  Fabrice

  On Dec 28, 2:15 pm, Andrés Cristi andrescri...@gmail.com wrote:

   Yes, i'm testing on an internet-accessible server. I will see if
   there's something wrong on the configuration of the application on
   facebook.
   Thank's

   On 24 dic, 17:00, Fabrice Bernhard fabri...@theodo.fr wrote:

Are you testing on an internet-accessible server ? To get the Facebook
uid, you need Facebook servers to see your server.

Fabrice

On Dec 21, 6:32 pm, Andrés Cristi andrescri...@gmail.com wrote:

 Currently i'm having a similar problem.
 I'm working with symfony 1.4+sfDoctrineGuardPlugin.
 My problem is that the the user seems to be null, so when it is saved
 to the database, the username is saved like Facebook_, when it should
 be something like Facebook_.$FacebookUserId.
 I've read the documentation from the advent calendar and i still
 haven't found how to solve this.

 Cheers,
 Andrés

 On 8 dic, 23:27, Hardeep Khehra hardeep.s.khe...@gmail.com wrote:

  Not sure what I'm doing wrong, but for starters i'm beginning a 
  fresh
  project using symfony 1.4, but I can't get this plugin to work for 
  the
  life of me.

  I've followed all the instructions and cannot get this plugin to 
  work
  using sfDoctrineGuardPlugin.

  The facebook dialog appears and i can log into facebook, but the 
  user
  is never added to the database.

  I installed the plugin by downloading the packaging and unzipping to
  the plugins folder.

  On Dec 8, 7:46 am, Fabrice Bernhard fabri...@theodo.fr wrote:

   Hi Zach,

   You don't need any sfFacebookConnect filters in a standard
   implementation.

   Better documentation will soon be online as part of the symfony 
   2009
   advent calendar :-)

   Cheers,

   Fabrice
   --http://www.theodo.fr

   On Dec 8, 7:28 am, Alexandre Salomé alexandre.sal...@gmail.com
   wrote:

Hi,

  You should contact the author of the plugin to have more 
informations, or
look for a README file or an INSTALL file.

Alexandre

2009/12/7 Zach zach...@gmail.com

 I have run into another error...

 I am running the sfFacebookConnectDemo. It prompts me to 
 connect, I
 enter my facebook email and password, click connect, and I 
 get this
 error:

 Strict Standards: Non-static method
 sfFacebookGuardAdapter::getUserProfileProperty() should not 
 be called
 statically, assuming $this from incompatible context in 
 /var/www/
 losebig/plugins/sfFacebookConnectPlugin/lib/
 sfFacebookApplicationFilter.class.php on line 25

 Fatal error: Cannot call abstract method
 sfFacebookGuardAdapter::getUserProfileProperty() in 
 /var/www/losebig/
 

[symfony-users] Filtering a list from the action

2010-02-15 Thread NOOVEO - Christophe Brun
I am working on the 'list' view of a module. 
The filtered list is displayed via a call to the executeFilter() method, as 
usual. 
 
Now, I create a route and the appropriate method myModuleActions : 
 
public function executeUseMyFilter(sfWebRequest $request) {
$id = $this-getRoute()-getObject()-getId();

// force the filter value to myotherobj_id = #the id in the route //
// ?? //

 return $this-executeFilter($request);
}
 
But I can't find the way to modify the filters and to force the exceuteFilter() 
method to display only the list of objects having myotherobj_id = $id. 
 

 
 


De : symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] De 
la part de Javier Garcia
Envoyé : lundi 15 février 2010 14:23
À : symfony-users@googlegroups.com
Objet : [symfony-users] Trying to give a default value to a filter form


Hi,

im trying to give a default value to a field of a filter.

I have no problems giving a default value to a form this way:

$m = new Birthday();
$m-setName('Peter');
$this-filter = new BirthdayForm($m);

But when i try this:

$m = new Birthday();
$m-setName('Peter');
$this-filter = new BirthdayFormFilter($m);

this error appears:

Warning: array_merge() [function.array-merge 
http://rs.localhost/frontend_dev.php/function.array-merge ]: Argument #2 is 
not an array in 
/opt/lampp/htdocs/rs/lib/vendor/symfony/lib/form/sfForm.class.php on line 1023

Any idea?

Javi


-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Filtering a list from the action

2010-02-15 Thread Javier Garcia

On 02/15/2010 04:49 PM, NOOVEO - Christophe Brun wrote:

I am working on the 'list' view of a module.
The filtered list is displayed via a call to the executeFilter() 
method, as usual.

Now, I create a route and the appropriate method myModuleActions :
public function executeUseMyFilter(sfWebRequest $request) {
$id = $this-getRoute()-getObject()-getId();

// force the filter value to myotherobj_id = #the id in the route //
// ?? //

 return $this-executeFilter($request);
}
But I can't find the way to modify the filters and to force the 
exceuteFilter() method to display only the list of objects having 
myotherobj_id = $id.



*De :* symfony-users@googlegroups.com 
[mailto:symfony-us...@googlegroups.com] *De la part de* Javier Garcia

*Envoyé :* lundi 15 février 2010 14:23
*À :* symfony-users@googlegroups.com
*Objet :* [symfony-users] Trying to give a default value to a filter form

Hi,

im trying to give a default value to a field of a filter.

I have no problems giving a default value to a form this way:

$m = new Birthday();
$m-setName('Peter');
$this-filter = new BirthdayForm($m);

But when i try this:

$m = new Birthday();
$m-setName('Peter');
$this-filter = new BirthdayFormFilter($m);

this error appears:

Warning: array_merge() [function.array-merge 
http://rs.localhost/frontend_dev.php/function.array-merge]: Argument 
#2 is not an array in 
/opt/lampp/htdocs/rs/lib/vendor/symfony/lib/form/sfForm.class.php on 
line /1023/


Any idea?

Javi
--
You received this message because you are subscribed to the Google 
Groups symfony users group.

To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.

--
You received this message because you are subscribed to the Google 
Groups symfony users group.

To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Maybe you can find useful this:

http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-i/
http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-ii/

Javi

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Why this don't take the real ID values from DB?

2010-02-15 Thread ReynierPM

Hi every:
I have this code in BaseTAfiliadoForm.class.php:

'id_especialidad' = new sfWidgetFormDoctrineChoice(array('model' = 
$this-getRelatedModelName('TEspecialidad'), 'add_empty' = true)),


This generate the following HTML code:

select name=t_afiliado[id_especialidad] id=t_afiliado_id_especialidad
 option value= selected=selected/option
 option value=1Especialidad1/option
/select

But the ID associated to Especialidad1 in TEspecialidad table is 2 not 
1, why this? Every time I try to add a new record I get Invalid 
validation error due to this issue. How can I solve this?

--
Cheers and thx in advance
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: Filtering a list from the action

2010-02-15 Thread Florian
Hello,

To my mind, you should use this method:

{{{

$this-filter-setDefault('name', 'Peter');

}}}

It's more correct, because semantically, you want set a default value
to your form, not to your model object!

But if you want to set use the contructor of the sfFormFilter 
BaseForm  sfFormSymfony, see it's signature:

  public function __construct($defaults = array(), $options = array(),
$CSRFSecret = null);

So you can pass an *array* of default values as first argument.

It's different from your Birthday form, which inherits from
sfFormDoctrine, see it's signature:

  public function __construct($object = null, $options = array(),
$CSRFSecret = null)

here, the first argument has to be null OR a Doctrine ActiveRecord /
Object.

Hope it helps!

/Florian

On 15 fév, 16:49, NOOVEO - Christophe Brun c.b...@nooveo.fr wrote:
 I am working on the 'list' view of a module.
 The filtered list is displayed via a call to the executeFilter() method, as 
 usual.

 Now, I create a route and the appropriate method myModuleActions :

 public function executeUseMyFilter(sfWebRequest $request) {
     $id = $this-getRoute()-getObject()-getId();

     // force the filter value to myotherobj_id = #the id in the route //
     // ?? //

      return $this-executeFilter($request);

 }

 But I can't find the way to modify the filters and to force the 
 exceuteFilter() method to display only the list of objects having 
 myotherobj_id = $id.

 

 De : symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] 
 De la part de Javier Garcia
 Envoyé : lundi 15 février 2010 14:23
 À : symfony-users@googlegroups.com
 Objet : [symfony-users] Trying to give a default value to a filter form

 Hi,

 im trying to give a default value to a field of a filter.

 I have no problems giving a default value to a form this way:

 $m = new Birthday();
 $m-setName('Peter');
 $this-filter = new BirthdayForm($m);

 But when i try this:

 $m = new Birthday();
 $m-setName('Peter');
 $this-filter = new BirthdayFormFilter($m);

 this error appears:

 Warning: array_merge() [function.array-merge 
 http://rs.localhost/frontend_dev.php/function.array-merge ]: Argument #2 is 
 not an array in 
 /opt/lampp/htdocs/rs/lib/vendor/symfony/lib/form/sfForm.class.php on line 1023

 Any idea?

 Javi

 --
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@googlegroups.com.
 To unsubscribe from this group, send email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/symfony-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] symfony project:disable backend does not work

2010-02-15 Thread Darren884
When I run this and go to look at my backend it still displays, even
though I have check_lock: true under my settings. Is this an error? Do
I have to manually create an unavailable page?

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] symfony project:disable backend does not work

2010-02-15 Thread Gábor Fási
Did you clear your cache after enabling check_lock?

On Mon, Feb 15, 2010 at 20:10, Darren884 darren...@gmail.com wrote:
 When I run this and go to look at my backend it still displays, even
 though I have check_lock: true under my settings. Is this an error? Do
 I have to manually create an unavailable page?

 --
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@googlegroups.com.
 To unsubscribe from this group, send email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: symfony project:disable backend does not work

2010-02-15 Thread Darren884
Still doesn't work. Does display any page but says the command was
executed successfully.

On Feb 15, 11:22 am, Gábor Fási maerl...@gmail.com wrote:
 Did you clear your cache after enabling check_lock?

 On Mon, Feb 15, 2010 at 20:10, Darren884 darren...@gmail.com wrote:
  When I run this and go to look at my backend it still displays, even
  though I have check_lock: true under my settings. Is this an error? Do
  I have to manually create an unavailable page?

  --
  You received this message because you are subscribed to the Google Groups 
  symfony users group.
  To post to this group, send email to symfony-us...@googlegroups.com.
  To unsubscribe from this group, send email to 
  symfony-users+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/symfony-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: symfony project:disable backend does not work

2010-02-15 Thread Darren884
Would it matter if I had PHP accelerator running? I am following all
the directions correctly.

On Feb 15, 1:03 pm, Darren884 darren...@gmail.com wrote:
 Still doesn't work. Does display any page but says the command was
 executed successfully.

 On Feb 15, 11:22 am, Gábor Fási maerl...@gmail.com wrote:

  Did you clear your cache after enabling check_lock?

  On Mon, Feb 15, 2010 at 20:10, Darren884 darren...@gmail.com wrote:
   When I run this and go to look at my backend it still displays, even
   though I have check_lock: true under my settings. Is this an error? Do
   I have to manually create an unavailable page?

   --
   You received this message because you are subscribed to the Google Groups 
   symfony users group.
   To post to this group, send email to symfony-us...@googlegroups.com.
   To unsubscribe from this group, send email to 
   symfony-users+unsubscr...@googlegroups.com.
   For more options, visit this group 
   athttp://groups.google.com/group/symfony-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Able to rename a project?

2010-02-15 Thread Darren884
Is it possible to rename a Symfony project? If so is it easy?

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Able to rename a project?

2010-02-15 Thread Sid Bachtiar
I think you can just rename the folder, but the safest thing to do is
to do text search of any occurrence of your project name in all files
in the project.

On Tue, Feb 16, 2010 at 10:21 AM, Darren884 darren...@gmail.com wrote:
 Is it possible to rename a Symfony project? If so is it easy?

 --
 You received this message because you are subscribed to the Google Groups 
 symfony users group.
 To post to this group, send email to symfony-us...@googlegroups.com.
 To unsubscribe from this group, send email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.





-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.