[symfony-users] Re: Symfony2 Sandbox database collation

2010-09-10 Thread secretcode
I was able to set the collation on a mysql database through YAML using
the attributes default_table_charset and default_table_collate.
Here's how my config/database.yml file looks like:

all:
  doctrine:
class: sfDoctrineDatabase
param:
  dsn: 'mysql:host=yourHostServer;dbname=yourDbName'
  username: yourUserName
  password: yourUserPassword
  attributes:
default_table_type: INNODB
default_table_charset: utf8
default_table_collate: utf8_general_ci

Hope it helps.

On Sep 9, 5:28 am, Aleš  wrote:
> How can i set the default collation in the sandbox with the YAML
> config:
> $em->getEventManager()->addEventSubscriber(new
> MysqlSessionInit('utf8','utf8_unicode_ci'));
>
> I found somewhere it should be like this:
>
> doctrine.dbal:
>     dbname:   s2test
>     user:        root
>     password: pass
>     options:
>       collation: utf8_unicode_ci
>       charset:  utf8
>
> But it doesn't work.

-- 
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] [SOLVED] Re: How to display/get the info-related to the main form on the embedded form?

2010-09-10 Thread Alejandro Gómez
I don't know why but embedRelation('AlumnoInterno') did not work.
Maybe the Propel version?

Symfony throws me "Call to undefined method
AlumnoForm::embedRelation."

In the other hand, I used getAlumnoInternos() wich "Gets an array of
AlumnoInterno objects which contain a foreign key that references this
object.". Since every Alumno object has only one AlumnoInterno object
I take the first element of getAlumnoInternos().

The code is as follows:

[code]
public function configure() {
parent::configure();

/*code portion removed*/

$alumnos_internos = $this->getObject()-
>getgetAlumnoInternos();

$alumno_interno = $alumnos_internos[0];

$alumno_interno_form = new AlumnoInternoForm($alumno_interno);

$this->embedForm('alumno_interno', $alumno_interno_form);

/*code portion removed*/
}
[/code]

Well, It works. However I am not sure if It is the best approach, do
you?

Thank you.

On Sep 10, 12:03 pm, jota  wrote:
> Try this:
>
> public function configure() {
>                parent::configure();
>
>                /*code portion removed*/
>
>                $alumno_interno = $this->getObject()->AlumnoInterno(); //if
> the object Alumno is new it gives you an empty AlumnoInterno object, else it
> gives you the associated AlumnoInterno
>
>                $alumno_interno_form = new
> AlumnoInternoForm($alumno_interno);
>
>                $this->embedForm('alumno_interno',
> $alumno_interno_form);
>
>                /*code portion removed*/
>        }
>
> another way is to use embedRelation('AlumnoInterno') so you don't have to
> deal with the save and getting the relation object to construct the subform
>
> Hope it works
>
> saludos
>
> 2010/9/10 Alejandro Gómez 
>
> > Hi folks.
>
> > The database has two tables: 'alumno' and 'alumno_interno'. The
> > 'alumno' table contains general data about students: name, lastname,
> > address, etc. The 'alumno_interno' table contains details about the
> > student: grade, control number, etc.
>
> > The relationship between tables is:
>
> > alumno {id, /*more fields*/}
> > alumno_interno {id, id_alumno, /*more fields*/}
>
> > On Symfony I built the models and forms. In fact, AlumnoInternoForm is
> > already embedded on AlumnoForm.
>
> > [code]
>
> > /* AlumnoForm.class.php */
>
> >        public function configure() {
> >                parent::configure();
>
> >                /*code portion removed*/
>
> >                $alumno_interno = new AlumnoInterno;
> >                $alumno_interno->setAlumno($this->getObject());
>
> >                $alumno_interno_form = new
> > AlumnoInternoForm($alumno_interno);
>
> >                $this->embedForm('alumno_interno',
> > $alumno_interno_form);
>
> >                /*code portion removed*/
> >        }
>
> > [/code]
>
> > I'm able to save a new student and his or her details in 'alumno' and
> > 'alumno_interno' respectively.
>
> > The trouble is when I try to edit an 'alumno' object: the AlumnoForm
> > renders well and shows the embedded form (AlumnoInternoForm). The
> > student's data is retrieved from the 'alumno' table but not from the
> > 'alumno_interno' table. So, the AlumnoForm is well populated but the
> > AlumnoInteroForm isn't. It's populated with the defaults values.
>
> > I think I need to override a AlumnoForm method, maybe
> > updateDefaultsFromObject(). Well, I did. But It didn't work. :-(
>
> > Basically, I need to retrieve the AlumnoInterno object related to the
> > Alumno object from the main form -AlumnoForm-, put the AlumnoInterno
> > object inside the AlumnoInternoForm and update the AlumnoInternoForm's
> > values in order to show the data. :-D
>
> > How to do that? Someone?
>
> > Software:
> >        Symfony: 1.4.6
> >        PHP: 5.3.2
>
> > Thank you.
>
> > --
> > 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] How to display/get the info-related to the main form on the embedded form?

2010-09-10 Thread jota
Try this:

public function configure() {
   parent::configure();

   /*code portion removed*/

   $alumno_interno = $this->getObject()->AlumnoInterno(); //if
the object Alumno is new it gives you an empty AlumnoInterno object, else it
gives you the associated AlumnoInterno

   $alumno_interno_form = new
AlumnoInternoForm($alumno_interno);

   $this->embedForm('alumno_interno',
$alumno_interno_form);

   /*code portion removed*/
   }

another way is to use embedRelation('AlumnoInterno') so you don't have to
deal with the save and getting the relation object to construct the subform

Hope it works

saludos

2010/9/10 Alejandro Gómez 

> Hi folks.
>
> The database has two tables: 'alumno' and 'alumno_interno'. The
> 'alumno' table contains general data about students: name, lastname,
> address, etc. The 'alumno_interno' table contains details about the
> student: grade, control number, etc.
>
> The relationship between tables is:
>
> alumno {id, /*more fields*/}
> alumno_interno {id, id_alumno, /*more fields*/}
>
> On Symfony I built the models and forms. In fact, AlumnoInternoForm is
> already embedded on AlumnoForm.
>
> [code]
>
> /* AlumnoForm.class.php */
>
>public function configure() {
>parent::configure();
>
>/*code portion removed*/
>
>$alumno_interno = new AlumnoInterno;
>$alumno_interno->setAlumno($this->getObject());
>
>$alumno_interno_form = new
> AlumnoInternoForm($alumno_interno);
>
>$this->embedForm('alumno_interno',
> $alumno_interno_form);
>
>/*code portion removed*/
>}
>
> [/code]
>
> I'm able to save a new student and his or her details in 'alumno' and
> 'alumno_interno' respectively.
>
> The trouble is when I try to edit an 'alumno' object: the AlumnoForm
> renders well and shows the embedded form (AlumnoInternoForm). The
> student's data is retrieved from the 'alumno' table but not from the
> 'alumno_interno' table. So, the AlumnoForm is well populated but the
> AlumnoInteroForm isn't. It's populated with the defaults values.
>
> I think I need to override a AlumnoForm method, maybe
> updateDefaultsFromObject(). Well, I did. But It didn't work. :-(
>
> Basically, I need to retrieve the AlumnoInterno object related to the
> Alumno object from the main form -AlumnoForm-, put the AlumnoInterno
> object inside the AlumnoInternoForm and update the AlumnoInternoForm's
> values in order to show the data. :-D
>
> How to do that? Someone?
>
> Software:
>Symfony: 1.4.6
>PHP: 5.3.2
>
> Thank you.
>
> --
> 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] How to display/get the info-related to the main form on the embedded form?

2010-09-10 Thread Alejandro Gómez
Hi folks.

The database has two tables: 'alumno' and 'alumno_interno'. The
'alumno' table contains general data about students: name, lastname,
address, etc. The 'alumno_interno' table contains details about the
student: grade, control number, etc.

The relationship between tables is:

alumno {id, /*more fields*/}
alumno_interno {id, id_alumno, /*more fields*/}

On Symfony I built the models and forms. In fact, AlumnoInternoForm is
already embedded on AlumnoForm.

[code]

/* AlumnoForm.class.php */

public function configure() {
parent::configure();

/*code portion removed*/

$alumno_interno = new AlumnoInterno;
$alumno_interno->setAlumno($this->getObject());

$alumno_interno_form = new
AlumnoInternoForm($alumno_interno);

$this->embedForm('alumno_interno',
$alumno_interno_form);

/*code portion removed*/
}

[/code]

I'm able to save a new student and his or her details in 'alumno' and
'alumno_interno' respectively.

The trouble is when I try to edit an 'alumno' object: the AlumnoForm
renders well and shows the embedded form (AlumnoInternoForm). The
student's data is retrieved from the 'alumno' table but not from the
'alumno_interno' table. So, the AlumnoForm is well populated but the
AlumnoInteroForm isn't. It's populated with the defaults values.

I think I need to override a AlumnoForm method, maybe
updateDefaultsFromObject(). Well, I did. But It didn't work. :-(

Basically, I need to retrieve the AlumnoInterno object related to the
Alumno object from the main form -AlumnoForm-, put the AlumnoInterno
object inside the AlumnoInternoForm and update the AlumnoInternoForm's
values in order to show the data. :-D

How to do that? Someone?

Software:
Symfony: 1.4.6
PHP: 5.3.2

Thank you.

-- 
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: Symfony and mod_remoteip

2010-09-10 Thread pghoratiu
Understand, you can have that also without the extra apache module, I
use this to log both proxy and client IP:

# If you are behind a reverse proxy, you might want to change %h into %
{X-Forwarded-For}i
LogFormat "%{X-Forwarded-For}i %h %l %u %t \"%r\" %>s %b %T \"%
{Referer}i\" \"%{User-Agent}i\" %D %X" combined

gabriel

On Sep 10, 3:00 pm, Laurent Vaills  wrote:
> Yes, my load-balancer is responsible for caching as well and correctly
> set the header X-Forwarded-For.
>
> Actually, I really need the mod_remoteip because I want the real IP in
> the access_log .
>
> Laurent
>
> On Sep 10, 1:10 pm, pghoratiu  wrote:
>
>
>
>
>
>
>
> > Is the load balancer responsible for caching as well?
> > Checkhttp://en.wikipedia.org/wiki/X-Forwarded-Forandretrieve the
> > client IP address from that HTTP header.
> > You don't need anything extra on the Apache side.
>
> >    gabriel
>
> > On Sep 10, 12:52 pm, Laurent Vaills  wrote:
>
> > > Hi,
>
> > > I am developping a website using symfony 1.4 on CentOS 5 (httpd 2.2.3,
> > > php 5.2.10).
> > > I have compiled the mod_remoteip on the httpd 2.2 (because this module
> > > is only available for httpd 2.3).
> > > But the IP that is reported by Apache is the one of our load-balancer.
>
> > > After some tests, I've found that the problem comes from the
> > > RewriteRule. Is it possible to moMy problem is that the mod_remoteip
> > > does not work with rewrite rule defined by symfony.
>
> > > Does anyone succeeded to have symfony and mod_remoteip working
> > > together ?
>
> > > Regards,
> > > Laurent

-- 
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: Choosing the best JS toolkit plugin for RIA

2010-09-10 Thread Daniel Toffetti
Greg,

I've never heard of it and have to take a deeper look, but the
idea of sending all the business logic to the client sounds weird to
me, and besides we want to minimize the coding in JS, even avoid it at
all if posible !!
IMHO that is the beauty of these JS toolkits, if you write PHP
wrappers to the UI controls, you can do without any JS coding later. I
used something similar in Wicket, with Java classes wrapping YUI
controls.
Besides this, I've not seen any datagrid, treegrid or charts
controls in the demos, does these controls exist at all in
SproutCore ?

Thanks !!

Daniel


On 10 sep, 03:28, Greg Thornton  wrote:
> Or, have a look at SproutCore. It's the framework behind the new MobileMe 
> apps from Apple, which are some of the most native-feeling web apps I've seen 
> in the wild so far.
>
> Greg
>
> On Sep 10, 2010, at 12:53 AM, Stéphane wrote:
>
> > If you want true javascript framework (with OO layer), for 
> > desktop-application UI look-alike, look at qooxdoo !
>
> > 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


[symfony-users] Re: Choosing the best JS toolkit plugin for RIA

2010-09-10 Thread Daniel Toffetti
Stéphane,

I've never heard of it, will take a look. Is there any Symphony
plugin to integrate with it ?

Thanks !!!

Daniel

On 10 sep, 02:53, Stéphane  wrote:
> If you want true javascript framework (with OO layer), for
> desktop-application UI look-alike, look at qooxdoo !
>
> Cheers,
>
> Before Printing, Think about Your Environmental Responsibility!
> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>
> On Fri, Sep 10, 2010 at 7:20 AM, Gareth McCumskey wrote:
>

-- 
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: Choosing the best JS toolkit plugin for RIA

2010-09-10 Thread Daniel Toffetti
Gareth,

I can do without drag&drop and animations, but I must have
powerful UI controls like datagrid, treegrid, modal dialogs, even
charts.
I do understand JQuery has lots of plugins and perhaps there are
good datagrid plugins, but if possible I prefer to have just one
standard and well supported component as is the case in Dojo, extJS
and YUI, that's why I'm focusing on these three for now.
I can consider any other JS toolkit with more or less the same set
of UI controls, but my problem now if choosing between them. My
criteria are: good integration with Symfony, lightweight in the client
and cross browser compatibility (I guess all of them are good in this
last one).

Thanks for your help,

Daniel

On 10 sep, 02:20, Gareth McCumskey  wrote:
> If you want something that is probably the most actively maintained open
> source JS framework go for JQuery. JQuery even has a collection of JQuery UI
> elements as a sub project. There is even easy integration options with
> symfony.
>
>
>
> On Wed, Sep 8, 2010 at 10:53 PM, Daniel Toffetti  wrote:
> > Hi all,
>
> >    I'm a new Symfony user, with some experience in the Wicket java
> > web framework. I need to develop rich internet apps for internal
> > usage, mainly to replace old VB6 desktop apps.
> >    One of the main requirements is that the application must look and
> > behave like a desktop app, say, a drop down main menu at the top,
> > powerful data grids (editable, sortable, groupable, etc) and
> > treeviews, modal dialogs that are able to hold forms, etc.
> >    So far, I believe my best options are Dojo, ExtJS and YUI, but
> > can't decide between them. Dojo plugin seems best supported than ExtJS
> > and YUI.
> >    So this is two questions in fact:
>
> > 1- Which of the JS toolkits I've mentioned is the best in term of
> > features ? Is there any other I've missed and should consider ?
> > 2- How much support exist for them in the form of a Symfony plugin ?
> > How difficult would it be to enhance / complete the existing support ?
>
> > Cheers and thanks,
>
> > Daniel
>

-- 
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: Symfony and mod_remoteip

2010-09-10 Thread Laurent Vaills
Yes, my load-balancer is responsible for caching as well and correctly
set the header X-Forwarded-For.

Actually, I really need the mod_remoteip because I want the real IP in
the access_log .

Laurent

On Sep 10, 1:10 pm, pghoratiu  wrote:
> Is the load balancer responsible for caching as well?
> Checkhttp://en.wikipedia.org/wiki/X-Forwarded-Forand retrieve the
> client IP address from that HTTP header.
> You don't need anything extra on the Apache side.
>
>    gabriel
>
> On Sep 10, 12:52 pm, Laurent Vaills  wrote:
>
> > Hi,
>
> > I am developping a website using symfony 1.4 on CentOS 5 (httpd 2.2.3,
> > php 5.2.10).
> > I have compiled the mod_remoteip on the httpd 2.2 (because this module
> > is only available for httpd 2.3).
> > But the IP that is reported by Apache is the one of our load-balancer.
>
> > After some tests, I've found that the problem comes from the
> > RewriteRule. Is it possible to moMy problem is that the mod_remoteip
> > does not work with rewrite rule defined by symfony.
>
> > Does anyone succeeded to have symfony and mod_remoteip working
> > together ?
>
> > Regards,
> > Laurent

-- 
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] sfWidgetFormChoice and setDefault

2010-09-10 Thread torok84
I have this code in a doctrine form

$this->widgetSchema['priority'] = new sfWidgetFormChoice(
array(
'choices' => $pri_choices
));
var_dump($pri_choices);
echo max(array_keys($pri_choices));
$this->widgetSchema['priority']-
>setDefault( max(array_keys($pri_choices)) );


the output is
array
  100 => string 'Problematica' (length=12)
  200 => string 'Informazione' (length=12)
200

I would expect to get the Informazione entry selected, while the HTML
output is


Problematica
Informazione


It seems a bug, or am I missing something?

Thanks
Paolo

-- 
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] Abridged summary of symfony-users@googlegroups.com - 30 Messages in 12 Topics

2010-09-10 Thread joost . farla
Beste,

Tot en met vrijdag 10 september ben ik niet aanwezig op kantoor.
U kunt voor dringende zaken contact opnemen met mijn collega Dimitri van Hees: 
dimi...@freshheads.com of 013 5448761.

Met vriendelijke groet,

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

- -

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


-- 
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: Symfony and mod_remoteip

2010-09-10 Thread pghoratiu
Is the load balancer responsible for caching as well?
Check http://en.wikipedia.org/wiki/X-Forwarded-For and retrieve the
client IP address from that HTTP header.
You don't need anything extra on the Apache side.

   gabriel


On Sep 10, 12:52 pm, Laurent Vaills  wrote:
> Hi,
>
> I am developping a website using symfony 1.4 on CentOS 5 (httpd 2.2.3,
> php 5.2.10).
> I have compiled the mod_remoteip on the httpd 2.2 (because this module
> is only available for httpd 2.3).
> But the IP that is reported by Apache is the one of our load-balancer.
>
> After some tests, I've found that the problem comes from the
> RewriteRule. Is it possible to moMy problem is that the mod_remoteip
> does not work with rewrite rule defined by symfony.
>
> Does anyone succeeded to have symfony and mod_remoteip working
> together ?
>
> Regards,
> Laurent

-- 
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: Connection to MS sql server

2010-09-10 Thread Gábor Fási
What's the error message? Did you try the "dblib" driver? Quote from
the php manual:

The DSN prefix is sybase: if PDO_DBLIB was linked against the FreeTDS
libraries, mssql:  if PDO_DBLIB was linked against the Microsoft SQL
Server libraries, or dblib: if linked against any other variety of
DB-lib.

On Fri, Sep 10, 2010 at 11:15, ziclo  wrote:
> Effectively it's a mistake. The good code is below (the problem
> remains the same)
> all:
>  doctrine:
>    class: sfDoctrineDatabase
>    param:
>      dsn:      mysql:host=localhost;dbname=tracker
>      username: rfghj
>      password: jkkhf
>  doctrine1:
>    class: sfDoctrineDatabase
>    param:
>      dsn:      mssql:host=localhost;dbname=asadata
>      username: rdfgh
>      password: dfgjh
>
>
> On 9 sep, 18:48, Damon Jones  wrote:
>> You have a double-ell in the database.yml you've posted "dsn:
>> mssqll:host=localhost;dbname=asadata" - is this what the actual file
>> has in it?
>>
>> On Sep 9, 7:18 am, ziclo  wrote:
>>
>> > Hi everybody,
>>
>> > I'm trying to add a new database to my symfony project. One managed by
>> > mysql and the other by MS SQL server. I get an error about mssql
>> > driver when i rebuild all (schema, etc..)I do not know which driver to
>> > use for MS SQL. Here is my database.yml
>>
>> > An idea ?
>>
>> > Symfony version : 1.4
>> > Here is my database.yml
>>
>> > all:
>> >   doctrine:
>> >     class: sfDoctrineDatabase
>> >     param:
>> >       dsn:      mysql:host=localhost;dbname=tracker
>> >       username: rfghj
>> >       password: jkkhf
>> >   doctrine1:
>> >     class: sfDoctrineDatabase
>> >     param:
>> >       dsn:      mssqll:host=localhost;dbname=asadata
>> >       username: rdfgh
>> >       password: dfgjh
>
> --
> 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] Symfony and mod_remoteip

2010-09-10 Thread Laurent Vaills
Hi,

I am developping a website using symfony 1.4 on CentOS 5 (httpd 2.2.3,
php 5.2.10).
I have compiled the mod_remoteip on the httpd 2.2 (because this module
is only available for httpd 2.3).
But the IP that is reported by Apache is the one of our load-balancer.

After some tests, I've found that the problem comes from the
RewriteRule. Is it possible to moMy problem is that the mod_remoteip
does not work with rewrite rule defined by symfony.

Does anyone succeeded to have symfony and mod_remoteip working
together ?

Regards,
Laurent

-- 
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] Choosing the best JS toolkit plugin for RIA

2010-09-10 Thread Greg Thornton
Or, have a look at SproutCore. It's the framework behind the new MobileMe apps 
from Apple, which are some of the most native-feeling web apps I've seen in the 
wild so far.

Greg

On Sep 10, 2010, at 12:53 AM, Stéphane wrote:

> If you want true javascript framework (with OO layer), for 
> desktop-application UI look-alike, look at qooxdoo !
> 
> Cheers,
> 
> Before Printing, Think about Your Environmental Responsibility!
> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
> 
> 
> On Fri, Sep 10, 2010 at 7:20 AM, Gareth McCumskey  
> wrote:
> If you want something that is probably the most actively maintained open 
> source JS framework go for JQuery. JQuery even has a collection of JQuery UI 
> elements as a sub project. There is even easy integration options with 
> symfony.
> 
> 
> On Wed, Sep 8, 2010 at 10:53 PM, Daniel Toffetti  wrote:
> Hi all,
> 
>I'm a new Symfony user, with some experience in the Wicket java
> web framework. I need to develop rich internet apps for internal
> usage, mainly to replace old VB6 desktop apps.
>One of the main requirements is that the application must look and
> behave like a desktop app, say, a drop down main menu at the top,
> powerful data grids (editable, sortable, groupable, etc) and
> treeviews, modal dialogs that are able to hold forms, etc.
>So far, I believe my best options are Dojo, ExtJS and YUI, but
> can't decide between them. Dojo plugin seems best supported than ExtJS
> and YUI.
>So this is two questions in fact:
> 
> 1- Which of the JS toolkits I've mentioned is the best in term of
> features ? Is there any other I've missed and should consider ?
> 2- How much support exist for them in the form of a Symfony plugin ?
> How difficult would it be to enhance / complete the existing support ?
> 
> Cheers and thanks,
> 
> Daniel
> 
> --
> 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
> 
> 
> 
> -- 
> Gareth McCumskey
> http://garethmccumskey.blogspot.com
> twitter: @garethmcc
> 
> 
> -- 
> 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


AW: [symfony-users] Choosing the best JS toolkit plugin for RIA

2010-09-10 Thread Christopher Schnell
I use jQuery and jQueryUI for the most of my "fancy" stuff, too, but I think in 
comparison to extJS it lacks a really powerful datagrid. There are a few 
plugins for that, but i guess to transfer the look&feel of a desktop app into 
the web, extJS is more suited than jQuery.

Regards,
Christopher.

Von: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] Im 
Auftrag von Gareth McCumskey
Gesendet: Freitag, 10. September 2010 07:20
An: symfony-users@googlegroups.com
Betreff: Re: [symfony-users] Choosing the best JS toolkit plugin for RIA

If you want something that is probably the most actively maintained open source 
JS framework go for JQuery. JQuery even has a collection of JQuery UI elements 
as a sub project. There is even easy integration options with symfony.
On Wed, Sep 8, 2010 at 10:53 PM, Daniel Toffetti 
mailto:dto...@gmail.com>> wrote:
Hi all,

   I'm a new Symfony user, with some experience in the Wicket java
web framework. I need to develop rich internet apps for internal
usage, mainly to replace old VB6 desktop apps.
   One of the main requirements is that the application must look and
behave like a desktop app, say, a drop down main menu at the top,
powerful data grids (editable, sortable, groupable, etc) and
treeviews, modal dialogs that are able to hold forms, etc.
   So far, I believe my best options are Dojo, ExtJS and YUI, but
can't decide between them. Dojo plugin seems best supported than ExtJS
and YUI.
   So this is two questions in fact:

1- Which of the JS toolkits I've mentioned is the best in term of
features ? Is there any other I've missed and should consider ?
2- How much support exist for them in the form of a Symfony plugin ?
How difficult would it be to enhance / complete the existing support ?

Cheers and thanks,

Daniel

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



--
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc
--
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] sfDoctrineGuardPlugin - extend fields in "user" model

2010-09-10 Thread Dirk Conzelmann
Although this topic seams not to be new at all, I stuck with it now
for two days:
I have a working application with the sfDoctrineGuard plugin.
Now I want to extend the user table using a model which extends the
user-informations.

I get an error when trying to build-all using this schema:

sf_guard_user_profile:
  actAs: [Timestampable]
  className: sfGuardUserProfile
  columns:
id:
  type: integer(4)
  primary: true
  autoincrement: true
user_id:
  type: integer(4)
  primary: true
first_name: string(20)
last_name: string(20)
email: string(255)
  relations:
sfGuardUser:
  local: user_id
  onDelete: CASCADE


Error
Message
  SQLSTATE[HY000]: General error: 1005 Can't create table
'quickfit.#sql-53d_28f' (errno: 150). Failing Query: "ALTER TABLE
sf_guard_user_profile ADD CONSTRAINT
sf_guard_user_profile_user_id_sf_guard_user_id FOREIGN KEY (user_id)
REFERENCES sf_guard_user(id) ON DELETE CASCADE". Failing Query: ALTER
TABLE sf_guard_user_profile ADD CONSTRAINT
sf_guard_user_profile_user_id_sf_guard_user_id FOREIGN KEY (user_id)
REFERENCES sf_guard_user(id) ON DELETE CASCADE



-- 
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: Connection to MS sql server

2010-09-10 Thread ziclo
Effectively it's a mistake. The good code is below (the problem
remains the same)
all:
  doctrine:
class: sfDoctrineDatabase
param:
  dsn:  mysql:host=localhost;dbname=tracker
  username: rfghj
  password: jkkhf
  doctrine1:
class: sfDoctrineDatabase
param:
  dsn:  mssql:host=localhost;dbname=asadata
  username: rdfgh
  password: dfgjh


On 9 sep, 18:48, Damon Jones  wrote:
> You have a double-ell in the database.yml you've posted "dsn:
> mssqll:host=localhost;dbname=asadata" - is this what the actual file
> has in it?
>
> On Sep 9, 7:18 am, ziclo  wrote:
>
> > Hi everybody,
>
> > I'm trying to add a new database to my symfony project. One managed by
> > mysql and the other by MS SQL server. I get an error about mssql
> > driver when i rebuild all (schema, etc..)I do not know which driver to
> > use for MS SQL. Here is my database.yml
>
> > An idea ?
>
> > Symfony version : 1.4
> > Here is my database.yml
>
> > all:
> >   doctrine:
> > class: sfDoctrineDatabase
> > param:
> >   dsn:  mysql:host=localhost;dbname=tracker
> >   username: rfghj
> >   password: jkkhf
> >   doctrine1:
> > class: sfDoctrineDatabase
> > param:
> >   dsn:  mssqll:host=localhost;dbname=asadata
> >   username: rdfgh
> >   password: dfgjh

-- 
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] demo site - seperate db connection?

2010-09-10 Thread Jochen Daum
Hi John,

On Thu, Sep 9, 2010 at 9:46 PM, Tofuwarrior  wrote:
> Hi,
>
> I want to do a demo of our site and to reset the database every 30
> minutes.
>
> Would it be better to run the demo using a different database
> connection and a separate database or can anyone think of a way to do
> it within the same DB as the rest of the site.
>
> I am guessing separate but does anyone know how best to do this? Can
> we do it through the same symfony install and set it by using a
> different controller or something?
> We are running propel 1.5 Symfony 1.4.5
>
> I don't really want to have to duplicate the site completely if I can
> help it
>
- Hide quoted text -
We do it by duplicating the site, but in this specific case you could
also use 2 environments. If you use subversion to deploy, then you
only need to run

- svn update
- doctrine migration
- symfony cc

for each change. This can be easily scripted through a separate PHP script.

We put everything into SVN apart from client files and cache.

The comment about your demo site being hit is valid, its just that we
work mainly with online-software/Intranet sites, so a demo is always
internal for us.

-- 
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: How to remove "send.x" and "send.y" parameters from GET url?

2010-09-10 Thread Jochen Daum
Hi,

On Fri, Sep 10, 2010 at 7:20 AM, ScherlOMatic
 wrote:
> Thanks for the info.
>
> So as I guess it's impossible to remove them.
>
> Do you know if the problem is the same with 'button' tag?


The button tag won't have the problem

-- 
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] demo site - seperate db connection?

2010-09-10 Thread Paul Burdon
Hi Wanderson,

That looks like what I was looking for, haven't delved into environments
before, just used the default ones.

Thanks,

Paul

On 9 September 2010 22:57, Wanderson  wrote:

> Why not make use of environments? You can define 2 envs 'prod' and
> 'demo' in your config/databases.yml setting 2 databases. Take a look
> at manual about this.
>
> 2010/9/9, Davide Borsatto :
> > Sorry, I didn't get that you need to run an actual app too on the same
> > project. Well, then yes, it's the case you need two databases, to keep
> > data clean too. You could use some kind of flag to differentiate real
> > data from the demo stuff, but it would be not to best thing to do...
> >
> > With symfony you can easily use two different connections on an app-
> > basis. Check the gentle introduction to see how this is done.
> >
> > On Sep 9, 1:25 pm, Paul Burdon  wrote:
> >> Hi Davide,
> >>
> >> Thanks for replying.
> >>
> >> This is the issue, if I truncate the database and the demo data is in
> the
> >> same db as client data I would also dump all the actual client data.
> >>
> >> Hence the question about 2 databases.
> >>
> >> If I have demo site accessing demoDB and client stuff clientDB then that
> >> makes more sense to me (easy to do what you suggest) but I wondered if I
> >> can
> >> use the same symfony app to access the different databases maybe
> depending
> >> on url or something?
> >>
> >> Hence the question, what do you think?
> >>
> >> OR do I just need to run 2 sites/apps which seems like a pain in the
> head
> >> to
> >> maintain to me.
> >>
> >> Cheers,
> >>
> >> Paul
> >>
> >> On 9 September 2010 12:04, Davide Borsatto  wrote:
> >>
> >> > I guess this has nothing to do with symfony. Just run a SQL file that
> >> > truncates the tables and inserts the demo content using cron.
> >>
> >> > On Sep 9, 11:46 am, Tofuwarrior  wrote:
> >> > > Hi,
> >>
> >> > > I want to do a demo of our site and to reset the database every 30
> >> > > minutes.
> >>
> >> > > Would it be better to run the demo using a different database
> >> > > connection and a separate database or can anyone think of a way to
> do
> >> > > it within the same DB as the rest of the site.
> >>
> >> > > I am guessing separate but does anyone know how best to do this? Can
> >> > > we do it through the same symfony install and set it by using a
> >> > > different controller or something?
> >> > > We are running propel 1.5 Symfony 1.4.5
> >>
> >> > > I don't really want to have to duplicate the site completely if I
> can
> >> > > help it
> >>
> >> > > Paul
> >>
> >> > --
> >> > 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
>

-- 
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: Doubts about translations in a plugin

2010-09-10 Thread Matthias N.
AFAIK this command does not work with plugins. You have to manually
create a file in the i18n/ folder of your plugin.

regards,
Matthias

On 8 Sep., 16:28, Juan  wrote:
> Hi every body,
>
> I made an app following the Jobeet tutorial and I packaged in a plugin
> without I10N and I18N, currently I need to get this app translated but
> the command "symfony i18n:extract..." doesn't work. It returns 0
> strings to translate. Is posible to translate an application that is
> already packaged in a plugin?
>
> Thanks in advance.

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