[symfony-users] How to upload a database to the production server with symfony ?

2010-02-03 Thread Javier Garcia

Hi,

just that.

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] Trying to add Whatever:hover (csshover3.htc)

2010-02-10 Thread Javier Garcia

Hi,

i have this problem:

http://forum.symfony-project.org/index.php/m/26709/

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] How to change time till the user is logged out (if there is no activity in the session) ?

2010-02-10 Thread Javier Garcia

Hi,

just that. Using sfDoctrineGuardPlugin

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] Re: Trying to add Whatever:hover (csshover3.htc)

2010-02-11 Thread Javier Garcia
No idea?

Javi

On 10 feb, 18:19, Javier Garcia  wrote:
> Hi,
>
> i have this problem:
>
> http://forum.symfony-project.org/index.php/m/26709/
>
> 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] Is there any way to see all the functions that have been executed?

2010-02-11 Thread Javier Garcia

Hi,

Im having an error and as always something like this is showed below the 
error message:


   *
 50.  }
 51.}
 52.

   * at *sfFilterChain->execute*()
 in /SF_ROOT_DIR/lib/symfony/filter/sfRenderingFilter.class.php/
 line 33 ...
 
 30. public function execute($filterChain)
 31.{
 32. // execute next filter
 33. $filterChain->execute();
 34.

 35. // get response object
 36. $response = $this->context->getResponse();
   * at *sfRenderingFilter->execute*(/object/('sfFilterChain'))
 in /SF_ROOT_DIR/lib/symfony/filter/sfFilterChain.class.php/ line
 53 ... 
 50.}
 51.



Anyway these lines doesnt show all the functions that have been executed 
(the debugger told me...).


So, is there any way to see all the functions that have been executed?

Regards

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.



Re: [symfony-users] Re: Is there any way to see all the functions that have been executed?

2010-02-12 Thread Javier Garcia

On 02/11/2010 10:02 PM, Stéphane wrote:

So you "must" have xdebug installed to have a usable stack trace.



I installed xdebug. I tried to follow the "way" the app is executed 
using Step into/over/out in NB, but i find _very difficult and tedious_ 
to follow all the way since send the request till it finishes. It would 
be easier if i know ALL the functions and lines (with the file which 
belongs to) that are executed during that process.


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] 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 
]: 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.



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] Re: Filtering a list from the action

2010-02-16 Thread Javier Garcia
Hi,

i have tried this:

$this->filter = new BirthdayFormFilter();
$this->filter->setDefault('name', 'Peter');


and this:


$a = array('name' =>'Peter');
$this->filter = new BirthdayFormFilter($a);


but they didn't work...


I forgot to say i want to give the default value inside an action.


Here you have the codes:

In actions.class.php:

 public function executeIndex(sfWebRequest $request) {

$this->birthday_list = Doctrine::getTable('Birthday')
->createQuery('a')
->execute();


$a = array('name' =>'Peter');
$this->filter = new BirthdayFormFilter($a);

}


and indexSuccess.php contents:



 

  



Javi


On Feb 15, 7:28 pm, Florian  wrote:
> 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"  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.



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

2010-02-16 Thread Javier Garcia

On 02/16/2010 04:19 PM, Florian wrote:

What is the error?

Have you cleared your navigation history/cache ? ( firefox seems to
keep the selected values... )
   


Yes, i cleared it but the default value is not showed..

There isn't any error.


--
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] Re: Filtering a list from the action

2010-02-16 Thread Javier Garcia

On 02/16/2010 04:26 PM, Tom Ptacnik wrote:

Or you need to set this in the action?


Yes, i need to set this in the action.

--
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] Re: Filtering a list from the action

2010-02-16 Thread Javier Garcia
I give you more code: I have this code below in the index template. The 
filter form (without "Peter" as default value, of course..) and "Peter" 
are showed.



.








getDefault('name'); ?>



And this is the action:


class birthdayActions extends sfActions {

public function executeIndex(sfWebRequest $request) {

$this->filter = new BirthdayFormFilter();
$this->filter->setDefault('name', 'Peter');

}


Javi


On 02/15/2010 07:28 PM, Florian wrote:

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"  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] Re: How can I configure a route for a module using a 2-columns key ?

2010-02-16 Thread Javier Garcia
Anyone knows why the subject of the thread change?

Javi

On Feb 16, 5:56 pm, "NOOVEO - Christophe Brun" 
wrote:
> Basically, the related table is an association table :
> VitrineLivre:
>   actAs: { Timestampable: ~ }
>   columns:
>     vitrine_paragraphe_id: { type: integer(4), primary: true }
>     livre_id: { type: integer(4), primary: true }
>   relations:
>     Livre:
>       type: one
>       local: livre_id
>       foreign: id
>     VitrineParagraphe:
>       type: one
>       local: vitrine_paragraphe_id
>       foreign: id
>
> I doctrine:admin-generate-d the module. I insert one object in my
> database (the 'new' form works).
> Now, if I want to display the list, Symfony throws an Internal Server
> Error (500) :
> The "/vitrinelivre/:Array/edit.:sf_format" route has some missing
> mandatory parameters (:Array).
>
> The generated route is :
> vitrine_livre:
>   class: sfDoctrineRouteCollection
>   options:
>     model:                VitrineLivre
>     module:               vitrinelivre
>     prefix_path:          /vitrinelivre
>     column:               Array
>     with_wildcard_routes: true
>
> The 'column' field must point to a unique column, and that's of course
> innapropriate in this case. What should I do to get it work ?

-- 
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] Javascript files included no matter what

2010-02-16 Thread Javier Garcia

On 02/16/2010 01:50 PM, Salim wrote:

Hi all,

I have a project where i commented all include_javascripts statements
but they are included anyway.
Is it a known issue, or am i missing something?

Thank's for your help.

   


Have you tried "plugin:publish-assets"? In the inverse direction (i had 
to execute it to load .js files from plugins if they are not being 
loaded) works.


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 is not created the field "id" in the table?

2010-02-17 Thread Javier Garcia

Hi,

i have this schema below. My problem: the field "id" in the table 
"amigo_usuario" is not created .


Any idea?

Usuario:
  inheritance:
extends: sfGuardUser
type: simple
  columns:
nombre_apellidos: string(60)
sexo: boolean
fecha_nac: date
provincia: string(60)
localidad: string(255)
email_address: string(255)
fotografia: string(255)
avatar: string(255)
avatar_mensajes: string(255)
  relations:
Usuario:
  local: user1_id
  foreign: user2_id
  refClass: AmigoUsuario
  equal: true


AmigoUsuario:
  columns:
user1_id:
  type: integer(4)
  primary: true
user2_id:
  type: integer(4)
  primary: true
estado:
  type: integer
  default: 0
  relations:
User1:
  class: Usuario
  local: user1_id
  foreignAlias: AmigosUsuario
  onDelete: CASCADE
User2:
  class: Usuario
  local: user2_id
  foreignAlias: AmigosUsuario
  onDelete: CASCADE




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] Is there anyway to go to the next element in a Doctrine collection?

2010-02-17 Thread Javier Garcia

Hi,

Im trying to show two elements of a Doctrine collection inside a  
this way:


  foreach ($friends as $friend) { ?>



image_tag( 
'/uploads/fotografias_miembros/'.$friend->getAvatar()),



'miembros/show?id='.$friend->getId()) ; ?>





getName(); ?>






So, is there any way to go to the next element (next row) in a Doctrine 
collection?


Regards

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.



Re: [symfony-users] Is there anyway to go to the next element in a Doctrine collection?

2010-02-17 Thread Javier Garcia

I wrote this below inside the loop:



But it doesn't work..

Javi

On 02/17/2010 08:57 PM, Stéphane wrote:

Hi,

next($my_collection); should work

Cheers,


Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Wed, Feb 17, 2010 at 8:52 PM, Javier Garcia <mailto:tirengar...@gmail.com>> wrote:


Hi,

Im trying to show two elements of a Doctrine collection inside a
 this way:

 foreach ($friends as $friend) { ?>



getAvatar()),

 
 'miembros/show?id='.$friend->getId()) ; ?>





getName(); ?>






So, is there any way to go to the next element (next row) in a
Doctrine collection?

Regards

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-users@googlegroups.com
<mailto:symfony-users@googlegroups.com>.
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
<mailto:symfony-users%2bunsubscr...@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.


--
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] Is there anyway to go to the next element in a Doctrine collection?

2010-02-17 Thread Javier Garcia

Maybe this time the image is attached correctly..:)..


On 02/17/2010 09:23 PM, Stéphane wrote:

Why not foreach-ing ?
Please give us more of your template to understand what you want to do.


Cheers,


Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Wed, Feb 17, 2010 at 9:17 PM, Javier Garcia <mailto:tirengar...@gmail.com>> wrote:


I wrote this below inside the loop:



But it doesn't work..

Javi


On 02/17/2010 08:57 PM, Stéphane wrote:

Hi,

next($my_collection); should work

Cheers,


Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Wed, Feb 17, 2010 at 8:52 PM, Javier Garcia
mailto:tirengar...@gmail.com>> wrote:

Hi,

Im trying to show two elements of a Doctrine collection
inside a  this way:

 foreach ($friends as $friend) { ?>



getAvatar()),

 
 'miembros/show?id='.$friend->getId()) ; ?>





getName(); ?>






So, is there any way to go to the next element (next row) in
a Doctrine collection?

Regards

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-users@googlegroups.com
<mailto:symfony-users@googlegroups.com>.
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
<mailto:symfony-users%2bunsubscr...@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-users@googlegroups.com
<mailto:symfony-users@googlegroups.com>.
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
<mailto: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-users@googlegroups.com
<mailto:symfony-users@googlegroups.com>.
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
<mailto:symfony-users%2bunsubscr...@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.


--
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: Is there anyway to go to the next element in a Doctrine collection?

2010-02-19 Thread Javier Garcia
No idea about this?

Javi

On Feb 17, 9:44 pm, Javier Garcia  wrote:
> Maybe this time the image is attached correctly..:)..
>
> On 02/17/2010 09:23 PM, St�phane wrote:
>
> > Why not foreach-ing ?
> > Please give us more of your template to understand what you want to do.
>
> > Cheers,
>
> > Before Printing, Think about Your Environmental Responsibility!
> > Avant d'Imprimer, Pensez � Votre Responsabilit�e Environnementale!
>
> > On Wed, Feb 17, 2010 at 9:17 PM, Javier Garcia  > <mailto:tirengar...@gmail.com>> wrote:
>
> >     I wrote this below inside the loop:
>
> >     
>
> >     But it doesn't work..
>
> >     Javi
>
> >     On 02/17/2010 08:57 PM, St�phane wrote:
> >>     Hi,
>
> >>     next($my_collection); should work
>
> >>     Cheers,
>
> >>     Before Printing, Think about Your Environmental Responsibility!
> >>     Avant d'Imprimer, Pensez � Votre Responsabilit�e Environnementale!
>
> >>     On Wed, Feb 17, 2010 at 8:52 PM, Javier Garcia
> >>     mailto:tirengar...@gmail.com>> wrote:
>
> >>         Hi,
>
> >>         Im trying to show two elements of a Doctrine collection
> >>         inside a  this way:
>
> >>          foreach ($friends as $friend) { ?>
>
> >>         
> >>          >>                                                    image_tag(
> >>         '/uploads/fotografias_miembros/'.$friend->getAvatar()),
>
> >>          'miembros/show?id='.$friend->getId()) ; ?>
> >>         
>
> >>         
> >>         getName(); ?>
> >>         
>
> >>         
>
> >>         So, is there any way to go to the next element (next row) in
> >>         a Doctrine collection?
>
> >>         Regards
>
> >>         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-users@googlegroups.com
> >>         <mailto:symfony-users@googlegroups.com>.
> >>         To unsubscribe from this group, send email to
> >>         symfony-users+unsubscr...@googlegroups.com
> >>         <mailto:symfony-users%2bunsubscr...@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-users@googlegroups.com
> >>     <mailto:symfony-users@googlegroups.com>.
> >>     To unsubscribe from this group, send email to
> >>     symfony-users+unsubscr...@googlegroups.com
> >>     <mailto: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-users@googlegroups.com
> >     <mailto:symfony-users@googlegroups.com>.
> >     To unsubscribe from this group, send email to
> >     symfony-users+unsubscr...@googlegroups.com
> >     <mailto:symfony-users%2bunsubscr...@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.
>
>
>
>  grid.jpg
> 36KViewDownload

-- 
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] How to override the default "login" action w/ sfDoctrineGuard plugin?

2010-02-22 Thread Javier Garcia

Hi,

read the README at the sfDoctrineGuardPlugin page.

Javi

On 02/22/2010 03:16 PM, Romain Pouclet wrote:

Hi all,

I have an "admin" application which is secured (is_secure: true). I'd like to 
override its login action so I can set a specific layout and manually render the login 
form.
Can you tell my how to do that? I started with something like this :
   


--
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] Hiding / Not showing a column from DB in CRUD forms

2010-02-24 Thread Javier Garcia

Hi,

read the chapter about the Backend in the symfony manual. It's easy.

Javi

On 02/24/2010 03:45 PM, Bill P. wrote:

Hello,

I have been recently working in Grails (Java's symfony framework) and 
there is some weirdness if i want to create columns (properties) but 
not have them show up in the forms or be editable.


So in symfony, how would I create 2 properties such as 'DateInserted' 
and 'beenProcessed' but have them not show up in the Create and Edit 
forms when 'Admin Generating' the backend?
I want to be able to have the classes create those fileds in the DB, 
but then not show them in the forms. In Grails, you have to declare 
the properties in the class, but then go into the views and 
specifically hide those fields.


Is this possible?
thanks.

--
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] Blank page after uploading my project to a hosting provider

2010-02-24 Thread Javier Garcia

Hi,

i freezed the project and then i have uploaded it.

When i open an URL it shows a blank page.

There isnt any log in my hosting provider...


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.



Re: [symfony-users] Blank page after uploading my project to a hosting provider

2010-02-24 Thread Javier Garcia

On 02/24/2010 09:14 PM, Eno wrote:

Did you clear cache?

I would also question why your provider can't have logs...
   


Ok, just remove the content of the cache folder...Thanks.

This is what i got about the log:

http://byet.net/showthread.php?15957-Is-there-any-log-file-to-check-the-uploading-process&daysprune=-1

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] Re: Blank page after uploading my project to a hosting provider

2010-02-24 Thread Javier Garcia
So where do you consider could i find that log? Please, tell me a host
provider (with free hosting ) where you know i can find it.

Anyway after clearing the cache the error persists...

Javi

On Feb 24, 9:21 pm, Gábor Fási  wrote:
> That thread is about another kind of log. You need your site's error log.
>
> On Wed, Feb 24, 2010 at 21:19, Javier Garcia  wrote:
> > On 02/24/2010 09:14 PM, Eno wrote:
>
> >> Did you clear cache?
>
> >> I would also question why your provider can't have logs...
>
> > Ok, just remove the content of the cache folder...Thanks.
>
> > This is what i got about the log:
>
> >http://byet.net/showthread.php?15957-Is-there-any-log-file-to-check-t...
>
> > 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] Re: Blank page after uploading my project to a hosting provider

2010-02-24 Thread Javier Garcia

On 02/24/2010 09:33 PM, Eno wrote:

Ah, free hosting, that explains it...
   


So... could you tell me a hosting provider with a log where i can see 
the errors?


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.



Re: [symfony-users] Re: Blank page after uploading my project to a hosting provider

2010-02-25 Thread Javier Garcia

Hi, thanks all,

On 02/24/2010 09:33 PM, Alexandru-Emil Lupu wrote:
I could suggest you to comment out the security things in your _dev 
file and try see what that file sais ...

You might get the answer there ..



This is my frontend_dev.php file. I don't see any "security thing" 
commented:


// this check prevents access to debug front controllers that are 
deployed by accident to production servers.

// feel free to remove this, extend it or make something more sophisticated.
//if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')))
//{
//  die('You are not allowed to access this file. Check 
'.basename(__FILE__).' for more information.');

//}

require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');

$configuration = 
ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', true);

sfContext::createInstance($configuration)->dispatch();


if still can't see a bit, then check your projectConfiguration file 
and see if the "autoloader" is loaded via an absolute path or not.


And this is my ProjectConfiguration.class.php file (i have tried with 
both (commented and uncommented one) sfCoreAutoload path):


//require_once 
dirname(__FILE__).'/../lib/symfony/autoload/sfCoreAutoload.class.php';
require_once 
dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/sfCoreAutoload.class.php';

sfCoreAutoload::register();

class ProjectConfiguration extends sfProjectConfiguration
{
  public function setup()
  {
// for compatibility / remove and enable only the plugins you want
$this->enableAllPluginsExcept(array('sfPropelPlugin', 
'sfCompat10Plugin'));

  }
}


A motive of why you can't see your app might be the permissions on log 
& cache folders. butt mostly the _dev would give you the answer



The permissions in both folders are 777.


Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] need help on sfGuardPlugin

2010-02-25 Thread Javier Garcia

On 02/25/2010 11:45 AM, ram wrote:

Hi Fabien,

I'm Ram from India. I'm using sfGuardPlugin in one of my project. Can
you please tell me how to use the same plugin for user registration at
front end. Is it possible to use for register the user? Please help
me.

Thanks in advance,

   


Try http://www.symfony-project.org/plugins/sfDoctrineGuardExtraPlugin

Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] Re: Filtering a list from the action

2010-02-26 Thread Javier Garcia

I finally get it works with this:

$this->filter = new 
BirthdayFormFilter(array('name'=>array('text'=>'Peter')));


Javi


On 02/16/2010 05:35 PM, Javier Garcia wrote:
I give you more code: I have this code below in the index template. 
The filter form (without "Peter" as default value, of course..) and 
"Peter" are showed.



.








getDefault('name'); ?>



And this is the action:


class birthdayActions extends sfActions {

public function executeIndex(sfWebRequest $request) {

$this->filter = new BirthdayFormFilter();
$this->filter->setDefault('name', 'Peter');

}


Javi


On 02/15/2010 07:28 PM, Florian wrote:

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"  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.




--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] Question about sfWidgetFormChoice

2010-03-05 Thread Javier Garcia

Hi,

I have this widget:

$this->widgetSchema['age_from'] = new
sfWidgetFormChoice(array('choices' =>  array('' =>'-', range(14,130;

When i click on it to select a value, the expanded select shows a italic 14, 
between '-'
and 14,15

Any idea?


Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] Error 500 when i try to login the web app in production

2010-03-09 Thread Javier Garcia

Hi,

in production when i try to login to a user session of my web app, i get 
an error 500.


This is what i'm founding in the php error log:

[Tue Mar 09 05:47:02 2010] [error] [client 174.37.227.194] client denied 
by server configuration: /home/mainhost/public_html/whm-server-status
[Tue Mar 09 05:47:02 2010] [error] [client 174.37.227.194] File does not 
exist: /home/mainhost/public_html/403.shtml


Is related to Symfony? Any idea?

Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] Error 500 in production: if there isn't any frontend_dev.php how can i see the what is the problem?

2010-03-09 Thread Javier Garcia

Hi,

just that.

I didn't find anything inside the "log" folder.

Javi


--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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 500 when i try to login the web app in production

2010-03-09 Thread Javier Garcia
I want to add i dont have any problems using if i deploy using my own
rsync/ssh command.

Javi

On Mar 9, 1:01 pm, Javier Garcia  wrote:
> Hi,
>
> in production when i try to login to a user session of my web app, i get
> an error 500.
>
> This is what i'm founding in the php error log:
>
> [Tue Mar 09 05:47:02 2010] [error] [client 174.37.227.194] client denied
> by server configuration: /home/mainhost/public_html/whm-server-status
> [Tue Mar 09 05:47:02 2010] [error] [client 174.37.227.194] File does not
> exist: /home/mainhost/public_html/403.shtml
>
> Is related to Symfony? Any idea?
>
> Javi

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] Re: Error 500 when i try to login the web app in production

2010-03-09 Thread Javier Garcia

Hi again,

On 03/09/2010 02:34 PM, Billy Paradise wrote:

client denied by server configuration is usually an apache error - I
would check there first.

Make sure you have something like:


 Options Indexes FollowSymLinks
 AllowOverride All
 Order allow,deny
 Allow from all


in there.
   


Where should i write that? I tried to add it to 
"public_html/web/.htaccess" but i get an error (see below). This is the 
final file:


Options +FollowSymLinks +ExecCGI


Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all



  RewriteEngine On

  # uncomment the following line, if you are having trouble
  # getting no_script_name to work
  #RewriteBase /

  # we skip all files with .something
  #RewriteCond %{REQUEST_URI} \..+$
  #RewriteCond %{REQUEST_URI} !\.html$
  #RewriteRule .* - [L]

  # we check if the .html version is here (caching)
  RewriteRule ^$ index.html [QSA]
  RewriteRule ^([^.]+)$ $1.html [QSA]
  RewriteCond %{REQUEST_FILENAME} !-f

  # no, so we redirect to our front web controller
  RewriteRule ^(.*)$ index.php [QSA,L]



 Internal Server Error

The server encountered an internal error or misconfiguration and was 
unable to complete your request.


Please contact the server administrator, webmas...@tirengarfio.com and 
inform them of the time the error occurred, and anything you might have 
done that may have caused the error.


More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use 
an ErrorDocument to handle the request.


Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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 500 when i try to login the web app in production

2010-03-09 Thread Javier Garcia
But i cannot write in httpd.conf:

-rw---  1 root root   2123855 Mar  9 07:57 httpd.conf

Javi

On Mar 9, 8:26 pm, Gábor Fási  wrote:
> You have to add that in your apache config (httpd.conf or similar).
> Also, try commenting the very first line (Options...) and try it that
> way (obviously removing the  part you just added).
>
> On Tue, Mar 9, 2010 at 20:19, Javier Garcia  wrote:
> > Hi again,
>
> > On 03/09/2010 02:34 PM, Billy Paradise wrote:
>
> > client denied by server configuration is usually an apache error - I
> > would check there first.
>
> > Make sure you have something like:
>
> > 
> >     Options Indexes FollowSymLinks
> >     AllowOverride All
> >     Order allow,deny
> >     Allow from all
> > 
>
> > in there.
>
> > Where should i write that? I tried to add it to "public_html/web/.htaccess"
> > but i get an error (see below). This is the final file:
>
> > Options +FollowSymLinks +ExecCGI
>
> > 
> >     Options Indexes FollowSymLinks
> >     AllowOverride All
> >     Order allow,deny
> >     Allow from all
> > 
>
> > 
> >   RewriteEngine On
>
> >   # uncomment the following line, if you are having trouble
> >   # getting no_script_name to work
> >   #RewriteBase /
>
> >   # we skip all files with .something
> >   #RewriteCond %{REQUEST_URI} \..+$
> >   #RewriteCond %{REQUEST_URI} !\.html$
> >   #RewriteRule .* - [L]
>
> >   # we check if the .html version is here (caching)
> >   RewriteRule ^$ index.html [QSA]
> >   RewriteRule ^([^.]+)$ $1.html [QSA]
> >   RewriteCond %{REQUEST_FILENAME} !-f
>
> >   # no, so we redirect to our front web controller
> >   RewriteRule ^(.*)$ index.php [QSA,L]
> > 
>
> > Internal Server Error
>
> > The server encountered an internal error or misconfiguration and was unable
> > to complete your request.
>
> > Please contact the server administrator, webmas...@tirengarfio.com and
> > inform them of the time the error occurred, and anything you might have done
> > that may have caused the error.
>
> > More information about this error may be available in the server error log.
>
> > Additionally, a 404 Not Found error was encountered while trying to use an
> > ErrorDocument to handle the request.
>
> > Javi
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.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-users@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

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] Re: Error 500 when i try to login the web app in production

2010-03-10 Thread Javier Garcia

On 03/10/2010 10:07 AM, Eno wrote:

You need to ask whoever is hosting the application to add the config
directives to your vhost configuration
   


Do you mean modify httpd.conf? I can not modify httpd.conf, not even if 
i ask to modify it.


On 03/10/2010 10:07 AM, Eno wrote:

You need to ask whoever is hosting the application to add the config
directives to your vhost configuration (or switch on .htaccess for your
vhost).
   


From my hosting provider told me i have enable .htaccess (mod_rewrite).

Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] After deploying, should i unfreeze the project in the remote host?

2010-03-10 Thread Javier Garcia

Hi,

just that. I suppose no.

Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] Re: Error 500 when i try to login the web app in production

2010-03-10 Thread Javier Garcia

More news:

when i get that 500 error this line below is written also in web/error_log:

[10-Mar-2010 14:37:57] PDO Connection Error: SQLSTATE[HY000] [2002] 
Can't connect to local MySQL server through socket 
'/opt/lampp/var/mysql/mysql.sock' (2)


Even if i have written this in databases.yml:

dev:

test:

all:
  doctrine:
class: sfDoctrineDatabase
param:
  dsn: mysql:host=localhost;dbname=tirengar_rs
  username: tirengar
  password: mypassword

Any idea?

Gabor, i commented the line with "Options" but the error is the same.

Javi



On 03/10/2010 04:31 PM, Gábor Fási wrote:

Then try what I said, and comment the Options.. line in your
.htaccess. I've seen that line cause troubles.

On Wed, Mar 10, 2010 at 13:34, Javier Garcia  wrote:
   

On 03/10/2010 10:07 AM, Eno wrote:
 

You need to ask whoever is hosting the application to add the config
directives to your vhost configuration

   

Do you mean modify httpd.conf? I can not modify httpd.conf, not even if i
ask to modify it.

On 03/10/2010 10:07 AM, Eno wrote:
 

You need to ask whoever is hosting the application to add the config
directives to your vhost configuration (or switch on .htaccess for your
vhost).

   

 From my hosting provider told me i have enable .htaccess (mod_rewrite).

Javi

--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.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-users@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

 
   


--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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 500 when i try to login the web app in production

2010-03-11 Thread Javier Garcia
Problem solved:

locally i have, for example, my "web" directory in /opt/lammp/htdocs/
rs/web. Remotely i had /public_html/web, now I changed to /public_html/
rs/web and no error 500 anymore.

Javi


On Mar 10, 9:45 pm, Javier Garcia  wrote:
> More news:
>
> when i get that 500 error this line below is written also in web/error_log:
>
> [10-Mar-2010 14:37:57] PDO Connection Error: SQLSTATE[HY000] [2002]
> Can't connect to local MySQL server through socket
> '/opt/lampp/var/mysql/mysql.sock' (2)
>
> Even if i have written this in databases.yml:
>
> dev:
>
> test:
>
> all:
>    doctrine:
>      class: sfDoctrineDatabase
>      param:
>        dsn: mysql:host=localhost;dbname=tirengar_rs
>        username: tirengar
>        password: mypassword
>
> Any idea?
>
> Gabor, i commented the line with "Options" but the error is the same.
>
> Javi
>
> On 03/10/2010 04:31 PM, G bor F si wrote:
>
> > Then try what I said, and comment the Options.. line in your
> > .htaccess. I've seen that line cause troubles.
>
> > On Wed, Mar 10, 2010 at 13:34, Javier Garcia  wrote:
>
> >> On 03/10/2010 10:07 AM, Eno wrote:
>
> >>> You need to ask whoever is hosting the application to add the config
> >>> directives to your vhost configuration
>
> >> Do you mean modify httpd.conf? I can not modify httpd.conf, not even if i
> >> ask to modify it.
>
> >> On 03/10/2010 10:07 AM, Eno wrote:
>
> >>> You need to ask whoever is hosting the application to add the config
> >>> directives to your vhost configuration (or switch on .htaccess for your
> >>> vhost).
>
> >>  From my hosting provider told me i have enable .htaccess (mod_rewrite).
>
> >> Javi
>
> >> --
> >> If you want to report a vulnerability issue on symfony, please send it to
> >> security at symfony-project.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-users@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

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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 500 when i try to login the web app in production

2010-03-11 Thread Javier Garcia
Problem solved:

locally i have, for example, my "web" directory in /opt/lammp/htdocs/
rs/web. Remotely i had /public_html/web, now I changed to /public_html/
rs/web and no error 500 anymore.

Javi


On Mar 10, 9:45 pm, Javier Garcia  wrote:
> More news:
>
> when i get that 500 error this line below is written also in web/error_log:
>
> [10-Mar-2010 14:37:57] PDO Connection Error: SQLSTATE[HY000] [2002]
> Can't connect to local MySQL server through socket
> '/opt/lampp/var/mysql/mysql.sock' (2)
>
> Even if i have written this in databases.yml:
>
> dev:
>
> test:
>
> all:
>    doctrine:
>      class: sfDoctrineDatabase
>      param:
>        dsn: mysql:host=localhost;dbname=tirengar_rs
>        username: tirengar
>        password: mypassword
>
> Any idea?
>
> Gabor, i commented the line with "Options" but the error is the same.
>
> Javi
>
> On 03/10/2010 04:31 PM, G bor F si wrote:
>
> > Then try what I said, and comment the Options.. line in your
> > .htaccess. I've seen that line cause troubles.
>
> > On Wed, Mar 10, 2010 at 13:34, Javier Garcia  wrote:
>
> >> On 03/10/2010 10:07 AM, Eno wrote:
>
> >>> You need to ask whoever is hosting the application to add the config
> >>> directives to your vhost configuration
>
> >> Do you mean modify httpd.conf? I can not modify httpd.conf, not even if i
> >> ask to modify it.
>
> >> On 03/10/2010 10:07 AM, Eno wrote:
>
> >>> You need to ask whoever is hosting the application to add the config
> >>> directives to your vhost configuration (or switch on .htaccess for your
> >>> vhost).
>
> >>  From my hosting provider told me i have enable .htaccess (mod_rewrite).
>
> >> Javi
>
> >> --
> >> If you want to report a vulnerability issue on symfony, please send it to
> >> security at symfony-project.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-users@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

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] Paginate the result of two queries

2010-03-11 Thread Javier Garcia

Hi,

to get the friends of a user i have a table like this:

AmigoUsuario:
  columns:
user1_id:
  type: integer(4)
user2_id:
  type: integer(4)
estado:
  type: integer
  default: 0
  relations:
User1:
  class: Usuario
  local: user1_id
  foreignAlias: AmigosUsuario
  onDelete: CASCADE
User2:
  class: Usuario
  local: user2_id
  foreignAlias: AmigosUsuario
  onDelete: CASCADE

I have also these queries below to get friends of a user (I have two 
queries because the id of the user can be stored as User1 or User2). 
These are the queries:


// hemos tenido que hacer dos querys porque la amistad puede 
estar definida

// en cualquiera de la dos direcciones (así X->Y o así Y->X)
$q1 = Doctrine_Query::create()
->from('Usuario u')
->leftJoin('u.AmigoUsuario a ON u.id = a.user2_id')
->where("a.user1_id = ?", $id)
->andWhere("a.estado LIKE ?", 1);

$q2 = Doctrine_Query::create()
->from('Usuario u')
->leftJoin('u.AmigoUsuario a ON u.id = a.user1_id')
->where("a.user2_id = ?", $id)
->andWhere("a.estado LIKE ?", 1);


Now i want to paginate the results. What is your advice?

Regards

Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] Question about a form and unset

2010-03-12 Thread Javier Garcia

Hi,

i have installed sfDoctrineGuardExtraPlugin.

When i execute sfGuardRegister/register i found a form with username, 
email, password, and confirmation password.


Now i want to remove the field 'username' from the form. For that i have 
written this


class sfGuardFormRegister extends BasesfGuardFormRegister
{

public function configure() {

unset(
$this['username']

);

}

}

But when i execute sfGuardRegister/register the form doesn't appear 
anything..


No problem when i write this:

class sfGuardFormRegister extends BasesfGuardFormRegister
{

public function configure() {
$this->setWidgets(array(
  'email_address' => new sfWidgetFormInput(),
  'password' => new sfWidgetFormInputPassword(),
 'password_confirmation' => new 
sfWidgetFormInputPassword(),

));


}

}

But why unset way doesn't work ?

Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] I don't want two filters in my section 'People' !!!!

2010-03-13 Thread Javier Garcia

Hi,

in my social network, i have a section called 'People'. There, there are 
a paginated list of the members and a filter.


The action that shows this section is "miembros/index". Its template has 
the code to show the paged list and the filter.



...


...


Above the list the list i have a link to go to the second page:

Pagina 2


My problem: when i click that link the div 'lista_miembros' has the 
people of the second page but _it also has the filter_, so i get a page 
with two filters...


What should i do?

Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] Question about an AJAX link and the dev and prod enviroments

2010-03-15 Thread Javier Garcia

Hi,

i have this line below that shows a link to go the next page of a list.

Next page


The problem: as expected, it only works in the development enviroment of 
the frontend (frontend_dev.php).


My question: what should i to get it work on both enviroments 
(production and development)? Using if's and getting the environment 
being used is the only way, or is there any cooler way?



Javi




--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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: Question about an AJAX link and the dev and prod enviroments

2010-03-15 Thread Javier Garcia
Ok, this is the solution:

')">next


Javi



On Mar 15, 5:59 pm, Javier Garcia  wrote:
> Hi,
>
> i have this line below that shows a link to go the next page of a list.
>
> Next page
>
> The problem: as expected, it only works in the development enviroment of
> the frontend (frontend_dev.php).
>
> My question: what should i to get it work on both enviroments
> (production and development)? Using if's and getting the environment
> being used is the only way, or is there any cooler way?
>
> Javi

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] How to different forms filters in backend and frontend ?

2010-03-15 Thread Javier Garcia

Hi,

I have 2 modules (one in the backend and the other one in the frontend) 
based on the same model.


Is there any trick to get different form filter in the backend and in 
the frontend?


Javi


--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] How can i see the content of Auto* classes of backend ?

2010-03-16 Thread Javier Garcia

Hi,

i have created a backend and an admin module.

In apps/backend/modules/actions/actions.class.php I have this :

class cocheActions extends autoCocheActions
{
}

Is there any way to see the content of autoCocheActions ?

My proposal is find out how the pagination in backend works, concretely 
how the values of the forms are kept while browsing pages.


Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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 see the content of Auto* classes of backend ?

2010-03-16 Thread Javier Garcia
Thanks Stephane, inside my cache I only have the folders "backend",,
"frontend", "tmp" and i file called project_autoload.cache.

To be sure about it, before check it, i have created a new backend
project, a new admin module Coche and i visited 
http://rs.localhost/backend_dev.php/coche.

Any way, why are you adding the "$" before env and app in the path you
gave me? Because the permissions of the folders?

I have symfony 1.2 (i know it's deprecated but my project is almost
done).

Javi

On Mar 16, 1:56 pm, Stéphane  wrote:
> Hi,
>
> These classes are in the $project/cache/$env/$app dir
>
> They are deleted when you symfony cc
>
> Cheers,
>
> Before Printing, Think about Your Environmental Responsibility!
> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>
> On Tue, Mar 16, 2010 at 1:43 PM, Javier Garcia wrote:
>
> > Hi,
>
> > i have created a backend and an admin module.
>
> > In apps/backend/modules/actions/actions.class.php I have this :
>
> > class cocheActions extends autoCocheActions
> > {
> > }
>
> > Is there any way to see the content of autoCocheActions ?
>
> > My proposal is find out how the pagination in backend works, concretely how
> > the values of the forms are kept while browsing pages.
>
> > Javi
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.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-users@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

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] Questio about the code of the backend

2010-03-18 Thread Javier Garcia

Hi,

this is the index action and template generated at the backend for the 
model "coche".


public function executeIndex(sfWebRequest $request)
  {
// sorting
if ($request->getParameter('sort') && 
$this->isValidSortColumn($request->getParameter('sort')))

{
  $this->setSort(array($request->getParameter('sort'), 
$request->getParameter('sort_type')));

}

// pager
if ($request->getParameter('page'))
{
  $this->setPage($request->getParameter('page'));
}

$this->pager = $this->getPager();
$this->sort = $this->getSort();
  }











 $pager)) ?>



 $filters, 
'configuration' => $configuration)) ?>





 $pager, 'sort' => 
$sort, 'helper' => $helper)) ?>


 
$helper)) ?>

 $helper)) ?>





 $pager)) ?>




In the template there is this line:

include_partial('coche/filters', array('form' => $filters, 
'configuration' => $configuration)) ?>


but i can not find the $filters and $configuration variables in the 
index action ($this->filters and $this->configuration).


How is that possible?

Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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: Questio about the code of the backend

2010-03-18 Thread Javier Garcia
Hi Daniel,

this below is the preExecute() function but there isn't anything about
$this->filters and $this->configuration :

class autoCocheActions extends sfActions
{


  public function preExecute()
  {
$this->configuration = new cocheGeneratorConfiguration();

if (!$this->getUser()->hasCredential($this->configuration-
>getCredentials($this->getActionName(
{
  $this->forward(sfConfig::get('sf_secure_module'),
sfConfig::get('sf_secure_action'));
}

$this->dispatcher->notify(new sfEvent($this, 'admin.pre_execute',
array('configuration' => $this->configuration)));

$this->helper = new cocheGeneratorHelper();
  }

}



On Mar 18, 3:56 pm, Daniel Lohse  wrote:
> They are set in the preExecute function. You'd have to search in the 
> data/generator/sfDoctrineModule folder inside the symfony folder.
>
> Cheers, Daniel
>
> On 18.03.2010, at 15:01, Javier Garcia wrote:
>
> > Hi,
>
> > this is the index action and template generated at the backend for the 
> > model "coche".
>
> > public function executeIndex(sfWebRequest $request)
> >  {
> >    // sorting
> >    if ($request->getParameter('sort') && 
> > $this->isValidSortColumn($request->getParameter('sort')))
> >    {
> >      $this->setSort(array($request->getParameter('sort'), 
> > $request->getParameter('sort_type')));
> >    }
>
> >    // pager
> >    if ($request->getParameter('page'))
> >    {
> >      $this->setPage($request->getParameter('page'));
> >    }
>
> >    $this->pager = $this->getPager();
> >    $this->sort = $this->getSort();
> >  }
>
> > 
> > 
>
> > 
> > 
>
> > 
>
> > 
> >  $pager)) ?>
> > 
>
> > 
> >  $filters, 
> > 'configuration' => $configuration)) ?>
> > 
>
> > 
> > 
> >  $pager, 'sort' => 
> > $sort, 'helper' => $helper)) ?>
> > 
> >  
> > $helper)) ?>
> >  $helper)) ?>
> > 
> > 
> > 
>
> > 
> >  $pager)) ?>
> > 
> > 
>
> > In the template there is this line:
>
> > include_partial('coche/filters', array('form' => $filters, 'configuration' 
> > => $configuration)) ?>
>
> > but i can not find the $filters and $configuration variables in the index 
> > action ($this->filters and $this->configuration).
>
> > How is that possible?
>
> > Javi
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to 
> > security at symfony-project.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-users@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

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] Deploying: if i write the password in properties.ini, why i have to write it again?

2010-03-18 Thread Javier Garcia

Hi,

this is my properties.ini. When i deploy my project (deploy --go) it 
asks me the password.


[symfony]
  name=rs
[production]
  host=208.43.66.44
  port=65001
  user=tirengar
  dir=public_html
  type=rsync
  pass=my_password <---

Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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: Questio about the code of the backend

2010-03-18 Thread Javier Garcia
Thanks!, i think l was looking more for $this->filters than for $this-
>configuration..

Javi



On Mar 18, 7:14 pm, Daniel Lohse  wrote:
> Huh, am I blind?
>
> There is "$this->configuration = new cocheGeneratorConfiguration();" in your 
> post, so there's your $configuration variable coming from.
>
> As for the $filters variable, you're right, that's not there but it's in the 
> indexAction – this calls $this->getPager() which in turn calls 
> $this->buildQuery() and this sets $this->filters. Phew. :)
>
> Cheers, Daniel
>
> On 18.03.2010, at 17:33, Javier Garcia wrote:
>
> > Hi Daniel,
>
> > this below is the preExecute() function but there isn't anything about
> > $this->filters and $this->configuration :
>
> > class autoCocheActions extends sfActions
> > {
>
> >  public function preExecute()
> >  {
> >    $this->configuration = new cocheGeneratorConfiguration();
>
> >    if (!$this->getUser()->hasCredential($this->configuration-
> >> getCredentials($this->getActionName(
> >    {
> >      $this->forward(sfConfig::get('sf_secure_module'),
> > sfConfig::get('sf_secure_action'));
> >    }
>
> >    $this->dispatcher->notify(new sfEvent($this, 'admin.pre_execute',
> > array('configuration' => $this->configuration)));
>
> >    $this->helper = new cocheGeneratorHelper();
> >  }
>
> > }
>
> > On Mar 18, 3:56 pm, Daniel Lohse  wrote:
> >> They are set in the preExecute function. You'd have to search in the 
> >> data/generator/sfDoctrineModule folder inside the symfony folder.
>
> >> Cheers, Daniel
>
> >> On 18.03.2010, at 15:01, Javier Garcia wrote:
>
> >>> Hi,
>
> >>> this is the index action and template generated at the backend for the 
> >>> model "coche".
>
> >>> public function executeIndex(sfWebRequest $request)
> >>>  {
> >>>    // sorting
> >>>    if ($request->getParameter('sort') && 
> >>> $this->isValidSortColumn($request->getParameter('sort')))
> >>>    {
> >>>      $this->setSort(array($request->getParameter('sort'), 
> >>> $request->getParameter('sort_type')));
> >>>    }
>
> >>>    // pager
> >>>    if ($request->getParameter('page'))
> >>>    {
> >>>      $this->setPage($request->getParameter('page'));
> >>>    }
>
> >>>    $this->pager = $this->getPager();
> >>>    $this->sort = $this->getSort();
> >>>  }
>
> >>> 
> >>> 
>
> >>> 
> >>> 
>
> >>> 
>
> >>> 
> >>>  $pager)) ?>
> >>> 
>
> >>> 
> >>>  $filters, 
> >>> 'configuration' => $configuration)) ?>
> >>> 
>
> >>> 
> >>> 
> >>>  $pager, 'sort' => 
> >>> $sort, 'helper' => $helper)) ?>
> >>> 
> >>>  
> >>> $helper)) ?>
> >>>  $helper)) ?>
> >>> 
> >>> 
> >>> 
>
> >>> 
> >>>  $pager)) ?>
> >>> 
> >>> 
>
> >>> In the template there is this line:
>
> >>> include_partial('coche/filters', array('form' => $filters, 
> >>> 'configuration' => $configuration)) ?>
>
> >>> but i can not find the $filters and $configuration variables in the index 
> >>> action ($this->filters and $this->configuration).
>
> >>> How is that possible?
>
> >>> Javi
>
> >>> --
> >>> If you want to report a vulnerability issue on symfony, please send it to 
> >>> security at symfony-project.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-users@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
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to 
> > security at symfony-project.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-users@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

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] Date format: es_ES

2010-03-23 Thread Javier Garcia

Hi,

in the Edit action, i have a date widget with a format month/day/year.

I would like that the format of that date widget was day/month/year.

I have followed the manual, and i now i have this in my settings.yml

all:
.settings:
default_culture: es_ES

I have also removed the cookies as the manual says, but the format is 
not what i desire.


Sf 1.2

Any idea?

Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com 
or reply to this email with the words "REMOVE ME" as the subject.


Re: [symfony-users] Date format: es_ES

2010-03-23 Thread Javier Garcia

'fecha_nac'=> new sfWidgetFormDate(),


On 03/23/2010 07:36 PM, Tom Haskins-Vaughan wrote:

which widget are you using?

On Tue, Mar 23, 2010 at 2:14 PM, Javier Garcia  wrote:
   

Hi,

in the Edit action, i have a date widget with a format month/day/year.

I would like that the format of that date widget was day/month/year.

I have followed the manual, and i now i have this in my settings.yml

all:
.settings:
default_culture: es_ES

I have also removed the cookies as the manual says, but the format is not
what i desire.

Sf 1.2

Any idea?

Javi

--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.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-users@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

To unsubscribe from this group, send email to
symfony-users+unsubscribegooglegroups.com or reply to this email with the
words "REMOVE ME" as the subject.

 
   


--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com 
or reply to this email with the words "REMOVE ME" as the subject.


Re: [symfony-users] Date format: es_ES

2010-03-23 Thread Javier Garcia

On 03/23/2010 08:05 PM, Tom Haskins-Vaughan wrote:

Try this:http://www.symfony-project.org/api/1_2/sfWidgetFormI18nDate
   


Thanks, works!

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com 
or reply to this email with the words "REMOVE ME" as the subject.


[symfony-users] Question about choice widget

2010-03-25 Thread Javier Garcia

Hi,

i have an edit form with a choice widget with radio buttons.

Symfony renders the options in a column, but I wanted the choices in the 
same line this way:


Sexo: Chico (o) Chica ()

So i have modified the code from the line  to 
this:




Chico





Chica




But now, how can i set the checked one? Using if's? or is there any more 
elegant way?


Regards

Javi




--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com 
or reply to this email with the words "REMOVE ME" as the subject.


[symfony-users] Re: Question about choice widget

2010-03-25 Thread Javier Garcia
Well, what i mean is, if the genre stored of a member is male, it
should be active in "Chico", so how can i do it? using if's and
functions that retrieve the genre of the member to set the radio
button state ?

Javi

On Mar 25, 7:03 pm, Javier Garcia  wrote:
> Hi,
>
> i have an edit form with a choice widget with radio buttons.
>
> Symfony renders the options in a column, but I wanted the choices in the
> same line this way:
>
> Sexo: Chico (o) Chica ()
>
> So i have modified the code from the line  to
> this:
>
> 
> 
> Chico
> 
> 
>
> 
>
> Chica
> 
> 
> 
>
> But now, how can i set the checked one? Using if's? or is there any more
> elegant way?
>
> Regards
>
> Javi

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


[symfony-users] After editing the data of a member logged, loggingin is not possible

2010-03-26 Thread Javier Garcia

Hi,

i have installed sfDoctrineGuardUser and have created this model that 
inherits sfGuardUser model:


Usuario:
  inheritance:
extends: sfGuardUser
type: simple
  columns:
nombre_apellidos: string(60)
sexo: boolean
fecha_nac: date
provincia: string(60)
localidad: string(255)
email_address: string(255)
avatar: string(255)
avatar_mensajes: string(255)

I have also created a module called 'miembros' based on that model.

Well, I log normally through sfGuardAuth/signin, then i go to 
"miembros/edit/id/$id_of_the_member_i_used_to_log_in" and push [Saved] 
button. Then i logout.


If i try to log in again, it says: "The username and/or password is 
invalid".


If i load again the data member in the database, loggingin works again.

Any idea?

Sf 1.2

Javi







--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com 
or reply to this email with the words "REMOVE ME" as the subject.


[symfony-users] Re: After editing the data of a member logged, loggingin is not possible

2010-03-26 Thread Javier Garcia
Hi again,

i have realized that when i push the "Save" button in edit form, the
value of the field 'password' changes (well its encrypted version).
Why?

I tried this time with symfony 1.3 and it happens the same.

Javi



On Mar 26, 2:06 pm, Javier Garcia  wrote:
> Hi,
>
> i have installed sfDoctrineGuardUser and have created this model that
> inherits sfGuardUser model:
>
> Usuario:
>    inheritance:
>      extends: sfGuardUser
>      type: simple
>    columns:
>      nombre_apellidos: string(60)
>      sexo: boolean
>      fecha_nac: date
>      provincia: string(60)
>      localidad: string(255)
>      email_address: string(255)
>      avatar: string(255)
>      avatar_mensajes: string(255)
>
> I have also created a module called 'miembros' based on that model.
>
> Well, I log normally through sfGuardAuth/signin, then i go to
> "miembros/edit/id/$id_of_the_member_i_used_to_log_in" and push [Saved]
> button. Then i logout.
>
> If i try to log in again, it says: "The username and/or password is
> invalid".
>
> If i load again the data member in the database, loggingin works again.
>
> Any idea?
>
> Sf 1.2
>
> Javi

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


[symfony-users] Re: After editing the data of a member logged, loggingin is not possible

2010-03-26 Thread Javier Garcia
Even if i unset 'password' field, it happens the same..

Javi

On Mar 26, 5:45 pm, Javier Garcia  wrote:
> Hi again,
>
> i have realized that when i push the "Save" button in edit form, the
> value of the field 'password' changes (well its encrypted version).
> Why?
>
> I tried this time with symfony 1.3 and it happens the same.
>
> Javi
>
> On Mar 26, 2:06 pm, Javier Garcia  wrote:
>
> > Hi,
>
> > i have installed sfDoctrineGuardUser and have created this model that
> > inherits sfGuardUser model:
>
> > Usuario:
> >    inheritance:
> >      extends: sfGuardUser
> >      type: simple
> >    columns:
> >      nombre_apellidos: string(60)
> >      sexo: boolean
> >      fecha_nac: date
> >      provincia: string(60)
> >      localidad: string(255)
> >      email_address: string(255)
> >      avatar: string(255)
> >      avatar_mensajes: string(255)
>
> > I have also created a module called 'miembros' based on that model.
>
> > Well, I log normally through sfGuardAuth/signin, then i go to
> > "miembros/edit/id/$id_of_the_member_i_used_to_log_in" and push [Saved]
> > button. Then i logout.
>
> > If i try to log in again, it says: "The username and/or password is
> > invalid".
>
> > If i load again the data member in the database, loggingin works again.
>
> > Any idea?
>
> > Sf 1.2
>
> > Javi

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


[symfony-users] Re: After editing the data of a member logged, loggingin is not possible

2010-03-28 Thread Javier Garcia
To delimit the problem, i have created a module based just on
sfGuardUser, so no inherits:

 php symfony doctrine:generate-module --with-show frontend
guardausuario sfGuardUser

These are my steps:

- Install symfony & sfDoctrineGuardUser
- Create a module based on sfGuardUser called 'foo'.
- Execute 'frontend_dev.php/foo/edit/id/X' and push the 'Save' button.
- The value of 'password' changes.

Javi


On Mar 28, 1:53 pm, Tom Ptacnik  wrote:
> Maybe you havent in your model the method which are in
> PluginsfGuardUser ?
>
> From which class is your model inherited?
>
> In PluginsfGuardUser there is an method setPassword() overwritten - it
> handle the "not changing blank password"
>
> On 26 bře, 19:02, Javier Garcia  wrote:
>
> > Even if i unset 'password' field, it happens the same..
>
> > Javi
>
> > On Mar 26, 5:45 pm, Javier Garcia  wrote:
>
> > > Hi again,
>
> > > i have realized that when i push the "Save" button in edit form, the
> > > value of the field 'password' changes (well its encrypted version).
> > > Why?
>
> > > I tried this time with symfony 1.3 and it happens the same.
>
> > > Javi
>
> > > On Mar 26, 2:06 pm, Javier Garcia  wrote:
>
> > > > Hi,
>
> > > > i have installed sfDoctrineGuardUser and have created this model that
> > > > inherits sfGuardUser model:
>
> > > > Usuario:
> > > >    inheritance:
> > > >      extends: sfGuardUser
> > > >      type: simple
> > > >    columns:
> > > >      nombre_apellidos: string(60)
> > > >      sexo: boolean
> > > >      fecha_nac: date
> > > >      provincia: string(60)
> > > >      localidad: string(255)
> > > >      email_address: string(255)
> > > >      avatar: string(255)
> > > >      avatar_mensajes: string(255)
>
> > > > I have also created a module called 'miembros' based on that model.
>
> > > > Well, I log normally through sfGuardAuth/signin, then i go to
> > > > "miembros/edit/id/$id_of_the_member_i_used_to_log_in" and push [Saved]
> > > > button. Then i logout.
>
> > > > If i try to log in again, it says: "The username and/or password is
> > > > invalid".
>
> > > > If i load again the data member in the database, loggingin works again.
>
> > > > Any idea?
>
> > > > Sf 1.2
>
> > > > Javi

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


[symfony-users] Re: After editing the data of a member logged, loggingin is not possible

2010-03-28 Thread Javier Garcia
To delimit the problem, i have created a module based just on
sfGuardUser, so no inherits:

 php symfony doctrine:generate-module --with-show frontend
guardausuario sfGuardUser

These are my steps:

- Install symfony & sfDoctrineGuardUser
- Create a module based on sfGuardUser called 'foo'.
- Execute 'frontend_dev.php/foo/edit/id/X' and push the 'Save' button.
- The value of 'password' changes.

Javi


On Mar 28, 1:53 pm, Tom Ptacnik  wrote:
> Maybe you havent in your model the method which are in
> PluginsfGuardUser ?
>
> From which class is your model inherited?
>
> In PluginsfGuardUser there is an method setPassword() overwritten - it
> handle the "not changing blank password"
>
> On 26 bře, 19:02, Javier Garcia  wrote:
>
> > Even if i unset 'password' field, it happens the same..
>
> > Javi
>
> > On Mar 26, 5:45 pm, Javier Garcia  wrote:
>
> > > Hi again,
>
> > > i have realized that when i push the "Save" button in edit form, the
> > > value of the field 'password' changes (well its encrypted version).
> > > Why?
>
> > > I tried this time with symfony 1.3 and it happens the same.
>
> > > Javi
>
> > > On Mar 26, 2:06 pm, Javier Garcia  wrote:
>
> > > > Hi,
>
> > > > i have installed sfDoctrineGuardUser and have created this model that
> > > > inherits sfGuardUser model:
>
> > > > Usuario:
> > > >    inheritance:
> > > >      extends: sfGuardUser
> > > >      type: simple
> > > >    columns:
> > > >      nombre_apellidos: string(60)
> > > >      sexo: boolean
> > > >      fecha_nac: date
> > > >      provincia: string(60)
> > > >      localidad: string(255)
> > > >      email_address: string(255)
> > > >      avatar: string(255)
> > > >      avatar_mensajes: string(255)
>
> > > > I have also created a module called 'miembros' based on that model.
>
> > > > Well, I log normally through sfGuardAuth/signin, then i go to
> > > > "miembros/edit/id/$id_of_the_member_i_used_to_log_in" and push [Saved]
> > > > button. Then i logout.
>
> > > > If i try to log in again, it says: "The username and/or password is
> > > > invalid".
>
> > > > If i load again the data member in the database, loggingin works again.
>
> > > > Any idea?
>
> > > > Sf 1.2
>
> > > > Javi

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.


[symfony-users] Trying to translate sfDoctrineGuardPlugin

2010-03-29 Thread Javier Garcia

Hi,

these are my steps:

- I have added this line to 'frontend/config/settings.yml'

all:
  settings:
default_culture:es_ES

- I have created a file called 
'plugins/sfDoctrineGuardPlugin/i18n/sf_guard.es_ES.xml' with this content:



"http://www.oasis-open.org/committees/xliff/documents/xliff.dtd"; >






Username
Usuario


Password
Contraseña


Remember
Recordar


Signin
Conectar


Forgot your password?
¿Olvido su contraseña?


You don't have the required permission to access this page.
No tiene los permisos requeridos para acceder a esta 
página.






With those two things I still get 'Forgot your password' instead of 
'¿Olvido su contraseña?'.


I have tried also with writing this:









__('Forgot your password?', array(), 'sf_guard') ?>




instead of this:

__('Forgot your password?') ?>


I have also cleaned the cookies.

But it still doesnt work..

Any help?

Javi


--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com 
or reply to this email with the words "REMOVE ME" as the subject.


Re: [symfony-users] Re: Trying to translate sfDoctrineGuardPlugin

2010-03-29 Thread Javier Garcia

On 03/29/2010 03:05 PM, Massimiliano Arione wrote:

Just use standard messages.es.xml file in your app/APPNAME/i18n
directory.
   


Thanks Massimiliano, but it doesn't work..

Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com 
or reply to this email with the words "REMOVE ME" as the subject.


[symfony-users] Why i can not retrieve a constant from app.yml ?

2010-03-30 Thread Javier Garcia

Hi,

this is my frontend/config/app.yml

all:

  sf_doctrineguard_plugin:
app_sf_guard_plugin_signin_form:sfGuardFormSigninByEmail


and i have this code in 
plugins/sfDoctrineGuardPlugin/modules/sfGuardAuth/lib/BasesfGuardAuthActions.class.php 




class BasesfGuardAuthActions extends sfActions
{
function executeSignin($request)
  {
   //...

$class = sfConfig::get('app_sf_guard_plugin_signin_form', 
'sfGuardFormSignin');


echo $class;
  }
}


When i execute the signin action, it always shows 'sfGuardFormSignin' 
instead of 'sfGuardFormSigninByEmail'.


Why?

Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com 
or reply to this email with the words "REMOVE ME" as the subject.


Re: [symfony-users] Why i can not retrieve a constant from app.yml ?

2010-03-30 Thread Javier Garcia

Works, thanks both!

On 03/30/2010 04:02 PM, Jose Antonio Pio Gil wrote:

Try this:

all:
 sf_doctrineguard_plugin:
   app_sf_guard_plugin_signin_form: sfGuardFormSigninByEmail


$class = 
sfConfig::get('app_sf_doctrineguard_plugin_app_sf_guard_plugin_signin_form', 
'sfGuardFormSignin');



or change your app.yml to:

all:
  sf_guard_plugin:
signin_form: sfGuardFormSigninByEmail



 JAP



2010/3/30 Benoit Montuelle >


all:

 sf_doctrineguard_plugin:
   app_sf_guard_plugin_signin_form:sfGuardFormSigninByEmail


and i have this code in

plugins/sfDoctrineGuardPlugin/modules/sfGuardAuth/lib/BasesfGuardAuthActions.class.php



class BasesfGuardAuthActions extends sfActions
{
function executeSignin($request)
 {
  //...

   $class = sfConfig::get('app_sf_guard_plugin_signin_form',
'sfGuardFormSignin');


--
If you want to report a vulnerability issue on symfony, please send it 
to security at symfony-project.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-users@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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with 
the words "REMOVE ME" as the subject.


--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com 
or reply to this email with the words "REMOVE ME" as the subject.


[symfony-users] What about the "Remember me" widget? What it serves for? Is useful?

2010-03-30 Thread Javier Garcia

Hi,

the signin form of sfDoctrineGuardPlugin shows the widget "Remember me".

I suppose it serves for the web browser 'remember' the password, but now 
i think it is not very used so i should remove it..


Am i right?

Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com 
or reply to this email with the words "REMOVE ME" as the subject.


[symfony-users] Any way to show the global errors only if there isn't any field error?

2010-03-31 Thread Javier Garcia

Hi,

in a form if there is a field and a global error both messages are showed.

I would like to show the global errors only if there isn't any field error.

Any idea?

Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Re: Any way to show the global errors only if there isn't any field error?

2010-03-31 Thread Javier Garcia
For example: i have the signin action of sfDoctrineGuardPlugin. I have
empty the 'username' input widget and then click on 'Sign in', this
two messages are showed "-Required" and "The username and/or password
is invalid". I would like to show just the first message ("-
Required").

Javi

On Mar 31, 11:48 am, Javier Garcia  wrote:
> Hi,
>
> in a form if there is a field and a global error both messages are showed.
>
> I would like to show the global errors only if there isn't any field error.
>
> Any idea?
>
> Javi

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Re: Any way to show the global errors only if there isn't any field error?

2010-03-31 Thread Javier Garcia
Here is the snippet if someone wants it:

$num_errores_totales = count($form->getErrorSchema()->getErrors());

$num_errores_globales = count($form->getErrorSchema()-
>getGlobalErrors());

if (0 == $num_errores_totales - $num_errores_globales){
echo $form->renderGlobalErrors();
}

Javi


On Mar 31, 2:57 pm, Javier Garcia  wrote:
> For example: i have the signin action of sfDoctrineGuardPlugin. I have
> empty the 'username' input widget and then click on 'Sign in', this
> two messages are showed "-Required" and "The username and/or password
> is invalid". I would like to show just the first message ("-
> Required").
>
> Javi
>
> On Mar 31, 11:48 am, Javier Garcia  wrote:
>
> > Hi,
>
> > in a form if there is a field and a global error both messages are showed.
>
> > I would like to show the global errors only if there isn't any field error.
>
> > Any idea?
>
> > Javi

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Associating a stylesheet to a template of a plugin

2010-04-01 Thread Javier Garcia

Hi,

i have this line below in frontend/config/view.yml:

stylesheets:[main.css]

The rules of that file are applied to the templates of the modules of 
frontend, but no to the templates of sfDoctrineGuardPlugin.


Even if i write  at the beginning of the 
template it doesn't work..


What should i do?

Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Re: Associating a stylesheet to a template of a plugin

2010-04-01 Thread Javier Garcia
Thanks Michal, but it doesn't work either..

Javi

On Apr 1, 11:21 am, Michał Piotrowski  wrote:
> 2010/4/1 Javier Garcia :
>
> > Hi,
>
> > i have this line below in frontend/config/view.yml:
>
> > stylesheets:    [main.css]
>
> > The rules of that file are applied to the templates of the modules of
> > frontend, but no to the templates of sfDoctrineGuardPlugin.
>
> > Even if i write  at the beginning of the
> > template it doesn't work..
>
> > What should i do?
>
> You need to copy sfGuard templates to your frontend modules dir and
> then modify them
>
> Regards,
> Michal
>
>
>
> > Javi
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.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-users@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
>
> > To unsubscribe, reply using "remove me" as the subject.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] How would you reverse the "notnull:true" in a schema of a plugin?

2010-04-01 Thread Javier Garcia
Hi,

sfGuardUser model of sfDoctrineGuardPlugin is defined this way:

sfGuardUser:
  actAs: [Timestampable]
  columns:
id:
  type: integer(4)
  primary: true
  autoincrement: true
username:
  type: string(128)
  notnull: true
  unique: true


As you can see 'username' has the feature "notnull:true". Now i want
to create a register form that is not using 'username' but the email
address of the user.

When a user wants to register, it is showed this:

Validation failed in class sfGuardUser
1 field had validation error:
* 1 validator failed on username (notnull)


Any idea?


Javi

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Re: Associating a stylesheet to a template of a plugin

2010-04-01 Thread Javier Garcia
Yes you're right, but that doesn't resolve my problem.

I will change my question:

In signinSuccess.php (doesn't matter the place) i have this lines:





The first one doesn't includes 'main.css' in signinSuccess.php but the
second one yes.

In other frontend modules, when using  main.css is included.

Anyone knows why?

Javi


On Apr 1, 12:35 pm, Michał Piotrowski  wrote:
> W dniu 1 kwietnia 2010 12:34 u¿ytkownik Micha³ Piotrowski
>  napisa³:
>
>
>
> > 2010/4/1 Javier Garcia :
> >> Thanks Michal, but it doesn't work either..
>
> > I customized this way three sfDoctrineGuard plugins for my project. It
> > works fine here.
>
> > ls -R apps/frontend/modules/sfGuardAuth/
> > apps/frontend/modules/sfGuardAuth/:
> > actions  lib  templates
>
> > apps/frontend/modules/sfGuardAuth/actions:
> > actions.class.php  components.class.php
>
> > apps/frontend/modules/sfGuardAuth/lib:
> > BasesfGuardAuthActions.class.php  BasesfGuardAuthComponents.class.php
>
> > apps/frontend/modules/sfGuardAuth/templates:
> > secureSuccess.php  _signin_form.php  signinSuccess.php  _signin_window.php
>
> > BTW. It's documented way - just read
> >http://www.symfony-project.org/plugins/sfDoctrineGuardPlugin
> > readme "Customize sfGuardAuth module actions"
>
> or better "Customize sfGuardAuth module templates"

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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: Is there any way to see all the functions that have been executed?

2010-04-01 Thread Javier Garcia
Thanks, but for example, here below i'm using debug_backtrace(). It
outputss a list of functions called, but the save() function (that is
just before the debug_backtrace() calling) is not that list..

protected function processForm(sfWebRequest $request, sfForm $form)
  {
$form->bind($request->getParameter($form->getName()));


if ($form->isValid())
{

  $sf_guard_user = $form->save();

  var_dump(debug_backtrace());
 die("fsdgsgsdf");


  $this->redirect('guardausuario/edit?id='.$sf_guard_user-
>getId());
}
  }

Javi


On Feb 12, 11:16 am, Alvaro Videla  wrote:
> try:
>
> http://cn.php.net/debug_backtrace
>
> Xdebug is not required for that function
>
> On Feb 12, 2010, at 5:11 PM, Javier Garcia wrote:
>
>
>
>
>
> > On 02/11/2010 10:02 PM, Stéphane wrote:
> >> So you "must" have xdebug installed to have a usable stack trace.
>
> > I installed xdebug. I tried to follow the "way" the app is executed using 
> > Step into/over/out in NB, but i find _very difficult and tedious_ to follow 
> > all the way since send the request till it finishes. It would be easier if 
> > i know ALL the functions and lines (with the file which belongs to) that 
> > are executed during that process.
>
> > 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.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Re: How would you reverse the "notnull:true" in a schema of a plugin?

2010-04-03 Thread Javier Garcia
I read this (look the paragraph called "AVOID USING USERNAME FIELD FOR
STORING EMAIL!"):

http://bluehorn.co.nz/2009/04/29/implementing-email-login-with-sfguardplugin/

Is that true?

Javi

On Apr 2, 5:27 am, Tom Haskins-Vaughan 
wrote:
> Why don't you just store the email in the username field?
>
> On Thu, Apr 1, 2010 at 9:07 AM, Javier Garcia  wrote:
> > Hi,
>
> > sfGuardUser model of sfDoctrineGuardPlugin is defined this way:
>
> > sfGuardUser:
> >  actAs: [Timestampable]
> >  columns:
> >    id:
> >      type: integer(4)
> >      primary: true
> >      autoincrement: true
> >    username:
> >      type: string(128)
> >      notnull: true
> >      unique: true
>
> > As you can see 'username' has the feature "notnull:true". Now i want
> > to create a register form that is not using 'username' but the email
> > address of the user.
>
> > When a user wants to register, it is showed this:
>
> > Validation failed in class sfGuardUser
> > 1 field had validation error:
> > * 1 validator failed on username (notnull)
>
> > Any idea?
>
> > Javi
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to 
> > security at symfony-project.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-users@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
>
> > To unsubscribe, reply using "remove me" as the subject.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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 copy the project root folder to a pendrive. Error making symbolic link: Operation not permitted

2010-04-05 Thread Javier Garcia

Hi,

im trying to copy the root folder of my sf project to a pendrive but im 
getting this error:


Error while copying "sfProtoculous
There was an error copying the file into /media/KINGSTON/rs/web.
Error making symbolic link: Operation not permitted

I've tried with the project unfreezed and freezed. Sf 1.2.

Any idea?

Javi

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] ¿Hay algun chat irc en español sob re symfony?

2010-04-05 Thread Javier Garcia

Hola,

solo eso.

Javi

Ubuntu 8.04

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Re: How would you reverse the "notnull:true" in a schema of a plugin?

2010-04-06 Thread Javier Garcia
Other opinions?

Javi

On Apr 3, 2:26 pm, Tom Haskins-Vaughan 
wrote:
> Hi Javi,
>
> While some good points are made in that post, I'm not too concered,
> and I will continue to store emails in the username field.
>
> "If you store email in username field, you have to be really careful
> when using other plugins that depend on sfGuardPlugin, because chances
> are, they’d display the email stored in username field publicly."
>
> I fully agree. However, some plugins provide config to determine which
> field to display. If they don't you can always override the username
> getter to return a nickname field or something.
>
> public function getUsername()
> {
>   return $this->Profile->nickname;
>
> }
>
> "It is also not ‘natural’ to code things like:
> $this->sendEmailTo($user->getUsername());"
>
> Again, if you don't have an email field there's nothing stopping you
> creating a 'virtual getter':
>
> public function getEmail()
> {
>   return $this->username;
>
> }
>
> I'd be interested to hear what other people think on this issue.
>
> Hope this helps.
>
> Tom
>
> On Sat, Apr 3, 2010 at 6:46 AM,JavierGarcia wrote:
> > I read this (look the paragraph called "AVOID USING USERNAME FIELD FOR
> > STORING EMAIL!"):
>
> >http://bluehorn.co.nz/2009/04/29/implementing-email-login-with-sfguar...
>
> > Is that true?
>
> > Javi
>
> > On Apr 2, 5:27 am, Tom Haskins-Vaughan 
> > wrote:
> >> Why don't you just store the email in the username field?
>
> >> On Thu, Apr 1, 2010 at 9:07 AM,JavierGarcia wrote:
> >> > Hi,
>
> >> > sfGuardUser model of sfDoctrineGuardPlugin is defined this way:
>
> >> > sfGuardUser:
> >> >  actAs: [Timestampable]
> >> >  columns:
> >> >    id:
> >> >      type: integer(4)
> >> >      primary: true
> >> >      autoincrement: true
> >> >    username:
> >> >      type: string(128)
> >> >      notnull: true
> >> >      unique: true
>
> >> > As you can see 'username' has the feature "notnull:true". Now i want
> >> > to create a register form that is not using 'username' but the email
> >> > address of the user.
>
> >> > When a user wants to register, it is showed this:
>
> >> > Validation failed in class sfGuardUser
> >> > 1 field had validation error:
> >> > * 1 validator failed on username (notnull)
>
> >> > Any idea?
>
> >> > Javi
>
> >> > --
> >> > If you want to report a vulnerability issue on symfony, please send it 
> >> > to security at symfony-project.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-users@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
>
> >> > To unsubscribe, reply using "remove me" as the subject.
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to 
> > security at symfony-project.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-users@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

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] Class not found even after cleaning the cache

2010-04-07 Thread Javier Garcia

Hi,

im getting this error:

Fatal error: Class 'ValidatorPasswordActual' not found in 
/opt/lampp/htdocs/rs/lib/form/cambiarPasswordForm.class.php on line /21/


This is the line 21:

$this->validatorSchema->setPostValidator(new sfValidatorAnd(array(new 
ValidatorPasswordActual(),


And this is the ValidatorPasswordActual class:

getGuardUser()->getPassword()){

die("entro");
}
}
}

I cleaned the cache, but nothing..

Any help?

--
Javi

Ubuntu 8.04

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


Re: [symfony-users] Class not found even after cleaning the cache

2010-04-07 Thread Javier Garcia

Inside a folder that i created called "/lib/validator".

Javi


On 04/07/2010 04:01 PM, Daniel Lohse wrote:

Where did you store that validator class?

Daniel

On 07.04.2010, at 15:41, Javier Garcia wrote:


Hi,

im getting this error:

Fatal error: Class 'ValidatorPasswordActual' not found in 
/opt/lampp/htdocs/rs/lib/form/cambiarPasswordForm.class.php on line /21/


This is the line 21:

$this->validatorSchema->setPostValidator(new sfValidatorAnd(array(new 
ValidatorPasswordActual(),


And this is the ValidatorPasswordActual class:

getGuardUser()->getPassword()){

die("entro");
}
}
}

I cleaned the cache, but nothing..

Any help?
--
Javi

Ubuntu 8.04

--
If you want to report a vulnerability issue on symfony, please send 
it to security at symfony-project.com <http://symfony-project.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-users@googlegroups.com 
<mailto:symfony-users@googlegroups.com>

To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com 
<mailto:symfony-users+unsubscr...@googlegroups.com>

For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


--
If you want to report a vulnerability issue on symfony, please send it 
to security at symfony-project.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-users@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



--
Javi

Ubuntu 8.04

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


Re: [symfony-users] Class not found even after cleaning the cache

2010-04-07 Thread Javier Garcia

No problem if i store it inside lib/ folder instead of lib/validator.

Is there any way to store it in lib/validator without problems? I feel 
more comfortable if i store the validators inside a folder called 
'validator'.


Javi

On 04/07/2010 05:46 PM, Stéphane wrote:

The filename must ends with ".class.php"


Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Wed, Apr 7, 2010 at 5:35 PM, Javier Garcia <mailto:tirengar...@gmail.com>> wrote:


Inside a folder that i created called "/lib/validator".

Javi



On 04/07/2010 04:01 PM, Daniel Lohse wrote:

Where did you store that validator class?

    Daniel

On 07.04.2010, at 15:41, Javier Garcia wrote:


Hi,

im getting this error:

Fatal error: Class 'ValidatorPasswordActual' not found in
/opt/lampp/htdocs/rs/lib/form/cambiarPasswordForm.class.php on
line /21/

This is the line 21:

$this->validatorSchema->setPostValidator(new
sfValidatorAnd(array(new ValidatorPasswordActual(),

And this is the ValidatorPasswordActual class:

getGuardUser()->getPassword()){

die("entro");
}
}
}

I cleaned the cache, but nothing..

Any help?
-- 
Javi


Ubuntu 8.04

-- 
If you want to report a vulnerability issue on symfony, please

send it to security at symfony-project.com
<http://symfony-project.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-users@googlegroups.com
<mailto:symfony-users@googlegroups.com>
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
<mailto:symfony-users+unsubscr...@googlegroups.com>
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


-- 
If you want to report a vulnerability issue on symfony, please

send it to security at symfony-project.com
<http://symfony-project.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-users@googlegroups.com
<mailto:symfony-users@googlegroups.com>
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
<mailto:symfony-users+unsubscr...@googlegroups.com>
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en



-- 
Javi


Ubuntu 8.04

-- 
If you want to report a vulnerability issue on symfony, please

send it to security at symfony-project.com
<http://symfony-project.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-users@googlegroups.com <mailto:symfony-users@googlegroups.com>
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
<mailto:symfony-users%2bunsubscr...@googlegroups.com>
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


--
If you want to report a vulnerability issue on symfony, please send it 
to security at symfony-project.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-users@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



--
Javi

Ubuntu 8.04

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Is Symfonians source code updated?

2010-04-08 Thread Javier Garcia

Hi,

i can't find the "Change your password" form (Home > Profile > Change 
your password).


--

Javi

Ubuntu 8.04

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


Re: [symfony-users] Re: How would you reverse the "notnull:true" in a schema of a plugin?

2010-04-08 Thread Javier Garcia

On 04/08/2010 09:28 AM, Tom Ptacnik wrote:

Did you try to overwrite the schema of sfguard in your schema.yml?


Thanks Tom, I tried writing in config/doctrine/schema.yml this:

car:
  columns:
brand:
  type: string(32)

and this below in plugins/sfDoctrineGuardPlugin/config/doctrine/schema.yml:

car:
  columns:
brand:
  type: string(256)

Then "build-all-reload", check the DB and the type is string(32). I 
thought maybe it would change to 256, but no..


So, how can i do that? I have Doctrine 1.0 and Sf 1.2.

--
Javi

Ubuntu 8.04

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


Re: [symfony-users] Re: How would you reverse the "notnull:true" in a schema of a plugin?

2010-04-09 Thread Javier Garcia

On 04/09/2010 12:22 PM, Tom Ptacnik wrote:

I thought that you want to just change the username field in sfGuar
from not null to null

.. don't change the schema in plugin

just try to add into your project schema.yml the:

sfGuardUser:
   columns:
username:
   type: string(128)
   notnull: false
   unique: true


On 8 dub, 18:54, Javier Garcia  wrote:
   

On 04/08/2010 09:28 AM, Tom Ptacnik wrote:

 

Did you try to overwrite the schema of sfguard in your schema.yml?
   

Thanks Tom, I tried writing in config/doctrine/schema.yml this:

car:
columns:
  brand:
type: string(32)

and this below in plugins/sfDoctrineGuardPlugin/config/doctrine/schema.yml:

car:
columns:
  brand:
type: string(256)

Then "build-all-reload", check the DB and the type is string(32). I
thought maybe it would change to 256, but no..

So, how can i do that? I have Doctrine 1.0 and Sf 1.2.

--
Javi

Ubuntu 8.04
 
   


It was just an example..:), anyway it doesn't work. This is what i have:

In 'plugins/sfDoctrineGuardPlugin/config/doctrine/schema.yml':

sfGuardUser:
  actAs: [Timestampable]
  columns:
id:
  type: integer(4)
  primary: true
  autoincrement: true
username:
  type: string(128)
  notnull: true
  unique: true
#...

And in 'config/doctrine/schema.yml':

sfGuardUser:
  columns:
username:
  type: string(128)
  notnull: false
  unique: true

Then "build-all-reload" but it doesn't change..

Javi




--
Javi

Ubuntu 8.04

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Re: How would you reverse the "notnull:true" in a schema of a plugin?

2010-04-11 Thread Javier Garcia
Hi,

it doesn't work because i'm using sf 1.2.

Is there any way to operate schemas overwriting in sf 1.2 o 1.3?

Javi

On Apr 9, 9:55 pm, Javier Garcia  wrote:
> On 04/09/2010 12:22 PM, Tom Ptacnik wrote:
>
>
>
> > I thought that you want to just change the username field in sfGuar
> > from not null to null
>
> > .. don't change the schema in plugin
>
> > just try to add into your project schema.yml the:
>
> > sfGuardUser:
> >    columns:
> >     username:
> >        type: string(128)
> >        notnull: false
> >        unique: true
>
> > On 8 dub, 18:54, Javier Garcia  wrote:
>
> >> On 04/08/2010 09:28 AM, Tom Ptacnik wrote:
>
> >>> Did you try to overwrite the schema of sfguard in your schema.yml?
>
> >> Thanks Tom, I tried writing in config/doctrine/schema.yml this:
>
> >> car:
> >>     columns:
> >>       brand:
> >>         type: string(32)
>
> >> and this below in plugins/sfDoctrineGuardPlugin/config/doctrine/schema.yml:
>
> >> car:
> >>     columns:
> >>       brand:
> >>         type: string(256)
>
> >> Then "build-all-reload", check the DB and the type is string(32). I
> >> thought maybe it would change to 256, but no..
>
> >> So, how can i do that? I have Doctrine 1.0 and Sf 1.2.
>
> >> --
> >> Javi
>
> >> Ubuntu 8.04
>
> It was just an example..:), anyway it doesn't work. This is what i have:
>
> In 'plugins/sfDoctrineGuardPlugin/config/doctrine/schema.yml':
>
> sfGuardUser:
>    actAs: [Timestampable]
>    columns:
>      id:
>        type: integer(4)
>        primary: true
>        autoincrement: true
>      username:
>        type: string(128)
>        notnull: true
>        unique: true
> #...
>
> And in 'config/doctrine/schema.yml':
>
> sfGuardUser:
>    columns:
>      username:
>        type: string(128)
>        notnull: false
>        unique: true
>
> Then "build-all-reload" but it doesn't change..
>
> Javi
>
> --
> Javi
>
> Ubuntu 8.04

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Re: How would you reverse the "notnull:true" in a schema of a plugin?

2010-04-12 Thread Javier Garcia
Just using 'doctrine:build --all --and-load' in 1.3.

Javi

On Apr 11, 10:12 pm, Javier Garcia  wrote:
> Hi,
>
> it doesn't work because i'm using sf 1.2.
>
> Is there any way to operate schemas overwriting in sf 1.2 o 1.3?
>
> Javi
>
> On Apr 9, 9:55 pm, Javier Garcia  wrote:
>
> > On 04/09/2010 12:22 PM, Tom Ptacnik wrote:
>
> > > I thought that you want to just change the username field in sfGuar
> > > from not null to null
>
> > > .. don't change the schema in plugin
>
> > > just try to add into your project schema.yml the:
>
> > > sfGuardUser:
> > >    columns:
> > >     username:
> > >        type: string(128)
> > >        notnull: false
> > >        unique: true
>
> > > On 8 dub, 18:54, Javier Garcia  wrote:
>
> > >> On 04/08/2010 09:28 AM, Tom Ptacnik wrote:
>
> > >>> Did you try to overwrite the schema of sfguard in your schema.yml?
>
> > >> Thanks Tom, I tried writing in config/doctrine/schema.yml this:
>
> > >> car:
> > >>     columns:
> > >>       brand:
> > >>         type: string(32)
>
> > >> and this below in 
> > >> plugins/sfDoctrineGuardPlugin/config/doctrine/schema.yml:
>
> > >> car:
> > >>     columns:
> > >>       brand:
> > >>         type: string(256)
>
> > >> Then "build-all-reload", check the DB and the type is string(32). I
> > >> thought maybe it would change to 256, but no..
>
> > >> So, how can i do that? I have Doctrine 1.0 and Sf 1.2.
>
> > >> --
> > >> Javi
>
> > >> Ubuntu 8.04
>
> > It was just an example..:), anyway it doesn't work. This is what i have:
>
> > In 'plugins/sfDoctrineGuardPlugin/config/doctrine/schema.yml':
>
> > sfGuardUser:
> >    actAs: [Timestampable]
> >    columns:
> >      id:
> >        type: integer(4)
> >        primary: true
> >        autoincrement: true
> >      username:
> >        type: string(128)
> >        notnull: true
> >        unique: true
> > #...
>
> > And in 'config/doctrine/schema.yml':
>
> > sfGuardUser:
> >    columns:
> >      username:
> >        type: string(128)
> >        notnull: false
> >        unique: true
>
> > Then "build-all-reload" but it doesn't change..
>
> > Javi
>
> > --
> > Javi
>
> > Ubuntu 8.04

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] sfDoctrineGuardPlugin: after "build-all-reload" password is not encrypted

2010-04-12 Thread Javier Garcia

Hi,

just that.

Any idea?

--

Javi

Ubuntu 8.04

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Best practice: joining two templates of two plugins

2010-04-12 Thread Javier Garcia

Hi,

i have the a login (sfDoctrineGuardPlugin) and a signin 
(sfDoctrineGuardExtraPlugin) form.


Any advice to join them in the same template?

Regards

--
Javi

Ubuntu 8.04

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Re: Best practice: joining two templates of two plugins

2010-04-12 Thread Javier Garcia
Well I forgot i can copied the two modules in the frontend folder...

Javi

On Apr 12, 2:35 pm, Javier Garcia  wrote:
> Hi,
>
> i have the a login (sfDoctrineGuardPlugin) and a signin
> (sfDoctrineGuardExtraPlugin) form.
>
> Any advice to join them in the same template?
>
> Regards
>
> --
> Javi
>
> Ubuntu 8.04

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Where is frontend.php after deploying?

2010-04-13 Thread Javier Garcia

Hi,

after deploying using sf 1.3, where is frontend.php? I didn't get any 
error during the deployment process.


How should i access my project in production? In sf 1.2 i did somethig 
like this : http://www.tirengarfio.com/rs1/web/frontend.php but now?


--

Javi

Ubuntu 8.04

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Re: Where is frontend.php after deploying?

2010-04-13 Thread Javier Garcia
On Apr 13, 7:55 pm, Alan Bem  wrote:
> Well, by default there is no frontend.php - there's only index.php. Maybe
> that is your answer.

Thanks! works.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Installing a plugin manually. From one project to another

2010-04-13 Thread Javier Garcia

Hi,

i have the folder plugin/sfDoctrineGuardExtraPlugin in a project and 
it's working ok.


I want to copy it to another project so i copied that folder to the 
folder 'plugins' of the other project.


I have typed "plugin:publish-assets" in the second project but it doesnt 
show the new plugin.


Any idea?

--
Javi

Ubuntu 8.04

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Re: Installing a plugin manually. From one project to another

2010-04-13 Thread Javier Garcia
Tahnks

On Apr 13, 9:21 pm, Gábor Fási  wrote:
> You have to enable it in the project's configuration.
>
> On Tue, Apr 13, 2010 at 21:09, Javier Garcia  wrote:
> > Hi,
>
> > i have the folder plugin/sfDoctrineGuardExtraPlugin in a project and it's
> > working ok.
>
> > I want to copy it to another project so i copied that folder to the folder
> > 'plugins' of the other project.
>
> > I have typed "plugin:publish-assets" in the second project but it doesnt
> > show the new plugin.
>
> > Any idea?
>
> > --
> > Javi
>
> > Ubuntu 8.04
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.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-users@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
>
> > To unsubscribe, reply using "remove me" as the subject.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] In remote host: Error 500. Unknown record property / related component "algorithm" on "sfGuardUser"

2010-04-15 Thread Javier Garcia

Hi,

after deploying, i get the error below after loggingin.

Sf 1.3, sfDoctrineGuardPlugin. And i have this schema.yml in 
config/doctrine:


Usuario:
  inheritance:
extends: sfGuardUser
type: simple
  columns:
username:
  type: string(128)
  notnull: false
  unique: true
algorithm:
  type: string(128)
  default: sha1
  notnull: true
nombre_apellidos: string(60)
sexo: string(5)
fecha_nac: date
provincia: string(60)
localidad: string(255)
email_address: string(255)
fotografia: string(255)
avatar: string(255)
avatar_mensajes: string(255)
  relations:
Usuario:
  local: user1_id
  foreign: user2_id
  refClass: AmigoUsuario
  equal: true



500 | Internal Server Error | Doctrine_Record_UnknownPropertyException
Unknown record property / related component "algorithm" on "sfGuardUser"
stack trace

* at ()
  in 
SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record/Filter/Standard.php 
line 55 ...

  52.  */
  53. public function filterGet(Doctrine_Record 
$record, $name)

  54. {
  55. throw new 
Doctrine_Record_UnknownPropertyException(sprintf('Unknown record 
property / related component "%s" on "%s"', $name, get_class($record)));

  56. }
  57. }
* at 
Doctrine_Record_Filter_Standard->filterGet(object('sfGuardUser'), 
'algorithm')
  in 
SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php 
line 1382 ...

1379. $success = false;
1380. foreach ($this->_table->getFilters() as 
$filter) {

1381. try {
1382. $value = 
$filter->filterGet($this, $fieldName);

1383. $success = true;
1384. } catch (Doctrine_Exception $e) {}
1385. }
* at Doctrine_Record->_get('algorithm', 1)
  in 
SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php 
line 1337 ...

1334. return $this->$accessor($load);
1335. }
1336. }
1337. return $this->_get($fieldName, $load);
1338. }
1339.
1340. protected function _get($fieldName, $load = true)
* at Doctrine_Record->get('algorithm')
  in 
SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/record/sfDoctrineRecord.class.php 
line 212 ...

 209. return call_user_func_array(
 210.   array($this, $verb),
 211.   array_merge(array($entityName), $arguments)
 212. );
 213.   } else {
 214. $failed = true;
 215.   }
* at sfDoctrineRecord->__call(array(object('sfGuardUser'), 'get'), 
array('algorithm'))

  in n/a line n/a ...
* at sfGuardUser->getAlgorithm('getAlgorithm', array())
  in 
SF_ROOT_DIR/plugins/sfDoctrineGuardPlugin/lib/model/doctrine/PluginsfGuardUser.class.php 
line 96 ...

  93.*/
  94.   public function checkPasswordByGuard($password)
  95.   {
  96. $algorithm = $this->getAlgorithm();
  97. if (false !== $pos = strpos($algorithm, '::'))
  98. {
  99.   $algorithm = array(substr($algorithm, 0, $pos), 
substr($algorithm, $pos + 2));

* at PluginsfGuardUser->checkPasswordByGuard()
  in 
SF_ROOT_DIR/plugins/sfDoctrineGuardPlugin/lib/model/doctrine/PluginsfGuardUser.class.php 
line 83 ...

  80. }
  81. else
  82. {
  83.   return $this->checkPasswordByGuard($password);
  84. }
  85.   }
  86.
* at PluginsfGuardUser->checkPassword('m')
  in SF_ROOT_DIR/lib/sfGuardValidatorUserByEmail.class.php line 28 ...
  25. {
  26.   // password is ok?
  27.
  28.   if ($user->checkPassword($password))
  29.   {
  30.
  31.   //die("entro");
* at sfGuardValidatorUserByEmail->doClean('m')


Any idea?


--
Javi

Ubuntu 8.04

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Re: Sf 1.3.3 doesn't recognize GuardPlugin 4

2010-04-15 Thread Javier Garcia
How are you installing it? What do you mean exactly with "it doesn't
work"?

Javi

On Apr 14, 4:21 pm, "Manuel E."  wrote:
> Hi people:
> I'm trying to install the sfGuardPlugin 4 in Sf 1.3.3 but it doesn't
> works, everything fine in 1.2.8 and Guard 1.3
> I'm reading Symfony 1.3 Web Applications by Tim Bowler and he uses the
> GuardPlugin from 1.2 because at the time he wrote the book was the
> last version, but now that plugin is updated to work in 1.3.3, I don't
> get it it should work.
>
> Cheers.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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

To unsubscribe, reply using "remove me" as the subject.


[symfony-users] Question about routing

2010-04-16 Thread Javier Garcia

Hi,

i've installed sfDoctrineGuardExtraPlugin.

I don't know what i touched exactly but now when i ask for 
sfGuardRegister/register this is showed:


The route "sf_guard_register" does not exist.


To debug my problem I have installed sfDGEP in another project, and i 
found out that if i remove the line below in 
plugins/sfDoctrineGuardExtraPlugin/lib/sfGuardExtraRouting.class.php I 
get the same error.


class sfGuardExtraRouting
{
  static public function listenToRoutingLoadConfigurationEvent(sfEvent 
$event)

  {

$r->prependRoute('sf_guard_register', new sfRoute('/register', 
array('module' => 'sfGuardRegister', 'action' => 'register')));


  }
}

So... if in my first project i have that line, what is happening exactly?


Javi

Ubuntu 8.04

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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: Question about routing

2010-04-16 Thread Javier Garcia
I don't know if it's related, but i'm gettin also this error after
clicking on 'Register' button:

Fatal error: Class 'sfGuardExtraMail' not found in /opt/lampp/htdocs/
rs/apps/frontend/modules/sfGuardRegister/actions/actions.class.php

But that class is inside plugins/sfDoctrineGuardExtraPlugin/lib/
sfGuardExtraMail.class.php.

I cleaned the cache.

Javi


On Apr 16, 3:09 pm, Javier Garcia  wrote:
> Hi,
>
> i've installed sfDoctrineGuardExtraPlugin.
>
> I don't know what i touched exactly but now when i ask for
> sfGuardRegister/register this is showed:
>
> The route "sf_guard_register" does not exist.
>
> To debug my problem I have installed sfDGEP in another project, and i
> found out that if i remove the line below in
> plugins/sfDoctrineGuardExtraPlugin/lib/sfGuardExtraRouting.class.php I
> get the same error.
>
> class sfGuardExtraRouting
> {
>    static public function listenToRoutingLoadConfigurationEvent(sfEvent
> $event)
>    {
>
> $r->prependRoute('sf_guard_register', new sfRoute('/register',
> array('module' => 'sfGuardRegister', 'action' => 'register')));
>
>    }
>
> }
>
> So... if in my first project i have that line, what is happening exactly?
>
> Javi
>
> Ubuntu 8.04
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.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-users@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

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] How to set a template from another module ?

2010-04-17 Thread Javier Garcia

Hi,

any time i write this:

$this->setTemplate('module/action');

I'm getting this error:

The template "module/actionSuccess.php" does not exist or is unreadable 
in "".


So.. how to set a template from another module ?

--
Javi

Ubuntu 8.04

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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 to set a template from another module ?

2010-04-17 Thread Javier Garcia
http://www.symfony-project.org/api/1_4/sfAction#method_settemplate

On Apr 17, 3:27 pm, Javier Garcia  wrote:
> Hi,
>
> any time i write this:
>
> $this->setTemplate('module/action');
>
> I'm getting this error:
>
> The template "module/actionSuccess.php" does not exist or is unreadable
> in "".
>
> So.. how to set a template from another module ?
>
> --
> Javi
>
> Ubuntu 8.04
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.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-users@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

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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] Blank page after executing include_component()

2010-04-17 Thread Javier Garcia

Hi,

i have this line:



when it's executed i get a blank page. I have debugged 
include_component() and the flow processing is not entering inside of 
it, i mean:


function include_component($moduleName, $componentName, $vars = array())
{

  die("enter");
  echo get_component($moduleName, $componentName, $vars);
}

Any idea?

--
Javi

Ubuntu 8.04

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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-users@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


  1   2   3   4   >