[symfony-users] Re: Symfony cache, override?

2010-06-07 Thread zedan
I found my solutions, put the _index_partial to layout page, and set
cache config do not cache layout page.

On Jun 5, 1:54 am, zedan  wrote:
> I want to cache my index page, but i don't want to cache
> [_index_partial] which include by index page, I code cache.yml list
> below, but it can't work, the total index page was cached.
> What can i do to make it work? I know that I can cache all partial in
> index page except _index_partial, but if index page include many
> partials, to code cache config is a heavy work.
> Other suggestion?
>
>      index:
>         enabled: true
>         lifetime: 300
>      _index_partial:
>         enabled: false

-- 
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: Trying to overwriting a method of a sf class

2010-06-07 Thread Tom Ptacnik
Your solution is good if you need it in one or two form classes.
Otherwise implement this method in the BaseForm.class.php which is
located in lib/form ... all your form classes are extended from this
class, so this method will be avaliable (you have to set it public or
protected)



On 4 čvn, 13:01, Javier Garcia  wrote:
> Hi,
>
> i want to overwrite a method of
> symfony/lib/plugins/sfDoctrinePlugin/lib/form/sfFormDoctrine.class.php.
>
> I think a good way could be writing again the method in the form class
> where i need that method.
>
> In that case if i need that method in other form class should i write
> again the new method, so i would break the rule DRY...
>
> So is there any better way?
>
> --
> Javi
>
> Ubuntu 8.04 - Symfony 1.3

-- 
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: Custom directory structure

2010-06-07 Thread Tom Ptacnik
Try to simulate this localy on your computer. It must work. I've
easily changed the project web folder.


On 3 čvn, 07:47, Ragnis  wrote:
> No. In public_html/pub there are only index.php, frontend_dev.php and
> image/css/javascript files.
>
> On Jun 1, 9:34 am, Tom Ptacnik  wrote:
>
>
>
> > Is there (/home/xx/public_html/api/lib/vendor/symfony/lib/
> > plugins/sfDoctrinePlugin/lib/database/) the file
> > sfDoctrineDatabase.class.php ?
>
> > On 27 kvě, 16:45, Ragnis  wrote:
>
> > > Nothing changed.
> > > Still theese errors:
>
> > > Warning: require(/home/xx/public_html/api/lib/vendor/symfony/lib/
> > > plugins/sfDoctrinePlugin/lib/database/sfDoctrineDatabase.class.php)
> > > [function.require]: failed to open stream: No such file or directory
> > > in /home/xx/private_html/api/lib/vendor/symfony/lib/autoload/
> > > sfAutoload.class.php on line 188
>
> > > Fatal error: require() [function.require]: Failed opening required '/
> > > home/xx/public_html/api/lib/vendor/symfony/lib/plugins/
> > > sfDoctrinePlugin/lib/database/
> > > sfDoctrineDatabase.class.php' (include_path='.:/usr/lib/php:/usr/local/
> > > lib/php') in /home/xx/private_html/api/lib/vendor/symfony/lib/autoload/
> > > sfAutoload.class.php on line 188
>
> > > On May 27, 11:45 am, Tom Ptacnik  wrote:
>
> > > > I think it can be done easily... it's just about moving the web folder
> > > > somewhere else. And you have to configure you virtual in a right way
> > > > of course.
>
> > > > Virtual
> > > >  - classic - for you into public_html/api
> > > >   don't forget for alias for vendor/symfony/data/web/sf (The Alias
> > > > statement is necessary for the images of the debug sidebar to be
> > > > displayed)
>
> > > > Then the project
> > > >   private_html/api = application
> > > >   public_html/api = web
>
> > > > 1) All stuff from /web folder move to public_html/api
> > > > 2) change the path to the web dir in ProjectConfiguration.class.php -
> > > > something like this should work: 
> > > > $this->setWebDir($this->getRootDir().'/../../public_html/api);
>
> > > > 3) change the path of the project in the front controllers:
> > > > index.php, frontend_dev.php, backend.dev.php  something like
> > > > require_once(dirname(__FILE__).'/../../private_html/api/config/
> > > > ProjectConfiguration.class.php');
>
> > > > On 24 kvě, 20:06, Ragnis  wrote:
>
> > > > > I want to use the following directory strucure:
>
> > > > > home
> > > > > ---xx
> > > > > --private_html
> > > > > -api
> > > > > apps
> > > > > cache
> > > > > config
> > > > > ...
> > > > > --public_html
> > > > > -api
> > > > > index.php
> > > > > frontend_dev.php
> > > > > ...
>
> > > > > But i don't know what files i need to edit to get it work.
>
> > > > > ProjectConfiguration.class.php
> > > > >  > > > > //require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/
> > > > > sfCoreAutoload.class.php';
> > > > > require_once '../../private_html/api/lib/vendor/symfony/lib/autoload/
> > > > > sfCoreAutoload.class.php';
> > > > > sfCoreAutoload::register();
>
> > > > > class ProjectConfiguration extends sfProjectConfiguration
> > > > > {
> > > > >   public function setup()
> > > > >   {
> > > > >     $this->setWebDir($this->getRootDir().'../../public_html/api');
> > > > >     $this->enablePlugins('sfDoctrinePlugin');
> > > > >   }
>
> > > > > }
>
> > > > > frontend_dev.php
> > > > > 
> > > > > // 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')) &&
> > > > > false)
> > > > > {
> > > > >   die('You are not allowed to access this file. Check
> > > > > '.basename(__FILE__).' for more information.');
>
> > > > > }
>
> > > > > //require_once(dirname(__FILE__).'/config/
> > > > > ProjectConfiguration.class.php');
> > > > > require_once('../../private_html/api/config/
> > > > > ProjectConfiguration.class.php');
>
> > > > > $configuration =
> > > > > ProjectConfiguration::getApplicationConfiguration('frontend', 'dev',
> > > > > true);
> > > > > sfContext::createInstance($configuration)->dispatch();
>
> > > > > I get an php error:
>
> > > > > Warning: require(/home/xx/public_html/api/lib/vendor/symfony/lib/
> > > > > plugins/sfDoctrinePlugin/lib/database/sfDoctrineDatabase.class.php)
> > > > > [function.require]: failed to open stream: No such file or directory
> > > > > in /home/xx/private_html/api/lib/vendor/symfony/lib/autoload/
> > > > > sfAutoload.class.php on line 188
>
> > > > > Fatal error: require() [function.require]: Failed opening required '/
> > > > > home/xx/public_html/api/lib/vendor/symfony/lib/plugins/
> > > > > sfDoctrinePlugin/lib/database/
> > > > > sfDoctrineDatabase.class.php' 
> > > > > (include_path='.:/usr/lib/php:/usr/l

[symfony-users] Re: sfImageTransformExtraPlugin: Anyone manage to get it working?

2010-06-07 Thread slau
yes, we are using sfImageTransformExtraPlugin for 
http://www.glamour.nl/detoxstore/
the only thing where I have trouble is with "removing the cached file,
after a new upload". But that will be next.

But to your question. Did you try to call your "image" with the dev-
controller?
if the url of the image would be 
http://url/thumbnails///knalroze-invito-pumps-964.gif
you can still use your dev-controller
http://url/myDev_dev.php/thumbnails///knalroze-invito-pumps-964.gif

Do you get any error messages here?

-- 
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: render widget as label

2010-06-07 Thread Tom Ptacnik
Look here 
http://groups.google.com/group/symfony-users/browse_thread/thread/80f7a59e1b132909


On 4 čvn, 22:00, fRAnKEnSTEin  wrote:
> Hi there,
>
> Is there any way of rendering a form widget as a label? for example if
> i have a form called ""fooForm" defined as:
>
> ...
> ...
> public function configure()
> {
>      ...
>      ...
>      $this->setWidgets(array(
>             'price'               => new sfWidgetFormInputText(),
>      ));
>      ...
>      ...
>
> }
>
> then in my template:
>
>  render() ?> 
>
> Instead of rendeing the widget as an input text element, i need to
> render it like a label element. I have searched is there is any
> "sfWidgetFormLabel" or something but there is not.
>
> Any idea?
>
> 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: the symfony actions is not receiving the request of jquery

2010-06-07 Thread Tom Ptacnik
This is too general. Write more details .. which url, how you send the
ajax request, which action, how you routes look, wich symfony
version...


On 4 čvn, 23:10, Alejandro Linares 
wrote:
> Somebody please help me, when i send the request from the jquery to the
> index action of my symfony project is not enter in the action, i used the
> $request->isXmlHttpRequest in the action but returns nothing
>
> Thanks for your help!!

-- 
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: Translation request

2010-06-07 Thread Tom Ptacnik
In Czech:

Potřebujeme Symfony programátory.


On 4 čvn, 16:33, Денис Горбачев  wrote:
> Hello everybody!
>
> I want my 
> bannerto
> be available in all languages. I ask you to translate the banner
> message
> from English into your native language. Currently, we have
> Russianand
> Germantranslations.
> All contributions are greatly appreciated.
>
> Thanks in advance!
>
> --
> Денис Горбачев,
> Начальник отдела Web-разработок ЗАО «ТруОфис»http://www.trueoffice.ru/
> +7 929 619-35-88

-- 
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] Comment fonctionne le plugin mgI18nPlugin

2010-06-07 Thread François
Bonjour à tous,

Je post ceci aujourd'hui car je suis embêté avec ce plugin qui m'a
l'air franchement très intéressant. Pour commencer, je suis avec
Symfony 1.4.4 et sous Windows 7 (au travail, à la maison sous Ubuntu
c'est franchement plus simple). J'avais vu ce plugin sur des slides
lors d'un compte rendu de Symfony live de Février dernier, je fut
agréablement surpris. Comme je vais internationaliser mon application,
je souhaitais l'utiliser.
J'ai donc suivis le README ( 
http://www.symfony-project.org/plugins/mgI18nPlugin),
par ailleurs, au passage "Create a class mgI18nAjaxTranslation",
aucune indication d'où la créer (je l'ai mis dans config/ du coup (pas
celui de l'app mais le global)).

Donc voilà, tout est créé, ma table "trans_unit" se remplie comme une
grande, mais je n'ai aucune idée de comment faire apparaitre le pop-up
pour pouvoir traduire mon appli. J'ai bien le plugin
sfDoctrineGuardPlugin, je me connecte en temps que superadmin, mais
rien n'apparait.

Merci :)

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

2010-06-07 Thread wueb
In some of my pages are appearing this  on the top when is loading
the webpage.

Anyone know what problem is this?

-- 
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] Comment fonctionne le plugin mgI18nPlugin

2010-06-07 Thread Thomas Rabaix
mgI18nAjaxTranslation n'est plus utile dans la dernière version si l'option
learning_mode est activée.

Ensuite, la popup de traduction apparait seulement si tu es en super admin
sur le site (conf par défaut). La popup a besoin de jQuery pour fonctionner,
tu peux regarder à la fin du code source de la page pour voir si le html du
plugin est présent. Si le html est présent alors c'est un problème de
javascript, sinon tu as oublié de mettre en place le filtre dans le fichier
filters.yml.



2010/6/7 François 

> Bonjour à tous,
>
> Je post ceci aujourd'hui car je suis embêté avec ce plugin qui m'a
> l'air franchement très intéressant. Pour commencer, je suis avec
> Symfony 1.4.4 et sous Windows 7 (au travail, à la maison sous Ubuntu
> c'est franchement plus simple). J'avais vu ce plugin sur des slides
> lors d'un compte rendu de Symfony live de Février dernier, je fut
> agréablement surpris. Comme je vais internationaliser mon application,
> je souhaitais l'utiliser.
> J'ai donc suivis le README (
> http://www.symfony-project.org/plugins/mgI18nPlugin),
> par ailleurs, au passage "Create a class mgI18nAjaxTranslation",
> aucune indication d'où la créer (je l'ai mis dans config/ du coup (pas
> celui de l'app mais le global)).
>
> Donc voilà, tout est créé, ma table "trans_unit" se remplie comme une
> grande, mais je n'ai aucune idée de comment faire apparaitre le pop-up
> pour pouvoir traduire mon appli. J'ai bien le plugin
> sfDoctrineGuardPlugin, je me connecte en temps que superadmin, mais
> rien n'apparait.
>
> Merci :)
>
> --
> 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
>



-- 
Thomas Rabaix
http://rabaix.net

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

2010-06-07 Thread Pietrino Atzeni

Hi,
if I remember well, it's due to the wrong encoding of the symfony files.

Ensure that all the pages are encoding in UTF-8, and the problem should 
disappear.


Hope this helps,
Pietro


In some of my pages are appearing this  on the top when is loading
the webpage.

Anyone know what problem is this?



--
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: Comment fonctionne le plugin mgI18nPlugin

2010-06-07 Thread François
Merci de ta réponse :)

J'ai bien jQuery de configuré et non, je n'ai rien dans mon code
source :/

Je viens donc te touché au fichier filters.yml qui était comme ça :

rendering: ~
remember_me:
  class: sfGuardRememberMeFilter
security:  ~

# insert your own filters here

cache: ~
execution: ~
i18n:
  class: mgI18nFilter

Et qui est maintenant comme cela :

rendering: ~
remember_me:
  class: sfGuardRememberMeFilter
security:  ~

# insert your own filters here

i18n:
  class: mgI18nFilter
cache: ~
execution: ~

(Je n'ai pas de filtre "common" alors je l'avais mis en dernier)
Donc j'obtiens une erreur :
The module "mgI18nAdmin" is not enabled. (alors que j'étais connecté
en tant que superadmin).

J'ai donc remis mon fichier config comme avant, je me suis déconnecté
et j'ai remis la clause i18n en première, pas de problème.


Donc au final, j'ai une erreur de ce type "The module "mgI18nAdmin" is
not enabled.", le reste semble bien configuré :)

On Jun 7, 11:50 am, Thomas Rabaix  wrote:
> mgI18nAjaxTranslation n'est plus utile dans la dernière version si l'option
> learning_mode est activée.
>
> Ensuite, la popup de traduction apparait seulement si tu es en super admin
> sur le site (conf par défaut). La popup a besoin de jQuery pour fonctionner,
> tu peux regarder à la fin du code source de la page pour voir si le html du
> plugin est présent. Si le html est présent alors c'est un problème de
> javascript, sinon tu as oublié de mettre en place le filtre dans le fichier
> filters.yml.
>
> 2010/6/7 François 
>
>
>
>
>
> > Bonjour à tous,
>
> > Je post ceci aujourd'hui car je suis embêté avec ce plugin qui m'a
> > l'air franchement très intéressant. Pour commencer, je suis avec
> > Symfony 1.4.4 et sous Windows 7 (au travail, à la maison sous Ubuntu
> > c'est franchement plus simple). J'avais vu ce plugin sur des slides
> > lors d'un compte rendu de Symfony live de Février dernier, je fut
> > agréablement surpris. Comme je vais internationaliser mon application,
> > je souhaitais l'utiliser.
> > J'ai donc suivis le README (
> >http://www.symfony-project.org/plugins/mgI18nPlugin),
> > par ailleurs, au passage "Create a class mgI18nAjaxTranslation",
> > aucune indication d'où la créer (je l'ai mis dans config/ du coup (pas
> > celui de l'app mais le global)).
>
> > Donc voilà, tout est créé, ma table "trans_unit" se remplie comme une
> > grande, mais je n'ai aucune idée de comment faire apparaitre le pop-up
> > pour pouvoir traduire mon appli. J'ai bien le plugin
> > sfDoctrineGuardPlugin, je me connecte en temps que superadmin, mais
> > rien n'apparait.
>
> > Merci :)
>
> > --
> > 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 > legroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en
>
> --
> Thomas Rabaixhttp://rabaix.net

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

2010-06-07 Thread wueb
All modules pages??

On 7 Jun, 10:51, Pietrino Atzeni  wrote:
> Hi,
> if I remember well, it's due to the wrong encoding of the symfony files.
>
> Ensure that all the pages are encoding in UTF-8, and the problem should
> disappear.
>
> Hope this helps,
> Pietro
>
> > In some of my pages are appearing this  on the top when is loading
> > the webpage.
>
> > Anyone know what problem is this?

-- 
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: Comment fonctionne le plugin mgI18nPlugin

2010-06-07 Thread Thomas Rabaix
il faut activer le module dans le fichier settings.yml

2010/6/7 François 

> Merci de ta réponse :)
>
> J'ai bien jQuery de configuré et non, je n'ai rien dans mon code
> source :/
>
> Je viens donc te touché au fichier filters.yml qui était comme ça :
>
> rendering: ~
> remember_me:
>  class: sfGuardRememberMeFilter
> security:  ~
>
> # insert your own filters here
>
> cache: ~
> execution: ~
> i18n:
>  class: mgI18nFilter
>
> Et qui est maintenant comme cela :
>
> rendering: ~
> remember_me:
>  class: sfGuardRememberMeFilter
> security:  ~
>
> # insert your own filters here
>
> i18n:
>  class: mgI18nFilter
> cache: ~
> execution: ~
>
> (Je n'ai pas de filtre "common" alors je l'avais mis en dernier)
> Donc j'obtiens une erreur :
> The module "mgI18nAdmin" is not enabled. (alors que j'étais connecté
> en tant que superadmin).
>
> J'ai donc remis mon fichier config comme avant, je me suis déconnecté
> et j'ai remis la clause i18n en première, pas de problème.
>
>
> Donc au final, j'ai une erreur de ce type "The module "mgI18nAdmin" is
> not enabled.", le reste semble bien configuré :)
>
> On Jun 7, 11:50 am, Thomas Rabaix  wrote:
> > mgI18nAjaxTranslation n'est plus utile dans la dernière version si
> l'option
> > learning_mode est activée.
> >
> > Ensuite, la popup de traduction apparait seulement si tu es en super
> admin
> > sur le site (conf par défaut). La popup a besoin de jQuery pour
> fonctionner,
> > tu peux regarder à la fin du code source de la page pour voir si le html
> du
> > plugin est présent. Si le html est présent alors c'est un problème de
> > javascript, sinon tu as oublié de mettre en place le filtre dans le
> fichier
> > filters.yml.
> >
> > 2010/6/7 François 
> >
> >
> >
> >
> >
> > > Bonjour à tous,
> >
> > > Je post ceci aujourd'hui car je suis embêté avec ce plugin qui m'a
> > > l'air franchement très intéressant. Pour commencer, je suis avec
> > > Symfony 1.4.4 et sous Windows 7 (au travail, à la maison sous Ubuntu
> > > c'est franchement plus simple). J'avais vu ce plugin sur des slides
> > > lors d'un compte rendu de Symfony live de Février dernier, je fut
> > > agréablement surpris. Comme je vais internationaliser mon application,
> > > je souhaitais l'utiliser.
> > > J'ai donc suivis le README (
> > >http://www.symfony-project.org/plugins/mgI18nPlugin),
> > > par ailleurs, au passage "Create a class mgI18nAjaxTranslation",
> > > aucune indication d'où la créer (je l'ai mis dans config/ du coup (pas
> > > celui de l'app mais le global)).
> >
> > > Donc voilà, tout est créé, ma table "trans_unit" se remplie comme une
> > > grande, mais je n'ai aucune idée de comment faire apparaitre le pop-up
> > > pour pouvoir traduire mon appli. J'ai bien le plugin
> > > sfDoctrineGuardPlugin, je me connecte en temps que superadmin, mais
> > > rien n'apparait.
> >
> > > Merci :)
> >
> > > --
> > > 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
> >
> > --
> > Thomas Rabaixhttp://rabaix.net
>
> --
> 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
>



-- 
Thomas Rabaix
http://rabaix.net

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

2010-06-07 Thread Pietrino Atzeni
Try with the home page, before (with all partials and components, if you 
have any).


I think netbeans, pspad and others has automatic conversion to utf-8.

P


All modules pages??

On 7 Jun, 10:51, Pietrino Atzeni  wrote:

Hi,
if I remember well, it's due to the wrong encoding of the symfony files.

Ensure that all the pages are encoding in UTF-8, and the problem should
disappear.

Hope this helps,
Pietro


In some of my pages are appearing this  on the top when is loading
the webpage.



Anyone know what problem is this?




--
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: Comment fonctionne le plugin mgI18nPlugin

2010-06-07 Thread François
Tout simplement :p

Donc il faut ajouter :

[settings.yml]
all:
  enabled_modules:  [default, sfGuardAuth, mgI18nAdmin]

Et le filtre avant common, mais aussi avant execution.

Merci beaucoup :)

On Jun 7, 12:13 pm, Thomas Rabaix  wrote:
> il faut activer le module dans le fichier settings.yml
>
> 2010/6/7 François 
>
>
>
>
>
> > Merci de ta réponse :)
>
> > J'ai bien jQuery de configuré et non, je n'ai rien dans mon code
> > source :/
>
> > Je viens donc te touché au fichier filters.yml qui était comme ça :
>
> > rendering: ~
> > remember_me:
> >  class: sfGuardRememberMeFilter
> > security:  ~
>
> > # insert your own filters here
>
> > cache:     ~
> > execution: ~
> > i18n:
> >  class: mgI18nFilter
>
> > Et qui est maintenant comme cela :
>
> > rendering: ~
> > remember_me:
> >  class: sfGuardRememberMeFilter
> > security:  ~
>
> > # insert your own filters here
>
> > i18n:
> >  class: mgI18nFilter
> > cache:     ~
> > execution: ~
>
> > (Je n'ai pas de filtre "common" alors je l'avais mis en dernier)
> > Donc j'obtiens une erreur :
> > The module "mgI18nAdmin" is not enabled. (alors que j'étais connecté
> > en tant que superadmin).
>
> > J'ai donc remis mon fichier config comme avant, je me suis déconnecté
> > et j'ai remis la clause i18n en première, pas de problème.
>
> > Donc au final, j'ai une erreur de ce type "The module "mgI18nAdmin" is
> > not enabled.", le reste semble bien configuré :)
>
> > On Jun 7, 11:50 am, Thomas Rabaix  wrote:
> > > mgI18nAjaxTranslation n'est plus utile dans la dernière version si
> > l'option
> > > learning_mode est activée.
>
> > > Ensuite, la popup de traduction apparait seulement si tu es en super
> > admin
> > > sur le site (conf par défaut). La popup a besoin de jQuery pour
> > fonctionner,
> > > tu peux regarder à la fin du code source de la page pour voir si le html
> > du
> > > plugin est présent. Si le html est présent alors c'est un problème de
> > > javascript, sinon tu as oublié de mettre en place le filtre dans le
> > fichier
> > > filters.yml.
>
> > > 2010/6/7 François 
>
> > > > Bonjour à tous,
>
> > > > Je post ceci aujourd'hui car je suis embêté avec ce plugin qui m'a
> > > > l'air franchement très intéressant. Pour commencer, je suis avec
> > > > Symfony 1.4.4 et sous Windows 7 (au travail, à la maison sous Ubuntu
> > > > c'est franchement plus simple). J'avais vu ce plugin sur des slides
> > > > lors d'un compte rendu de Symfony live de Février dernier, je fut
> > > > agréablement surpris. Comme je vais internationaliser mon application,
> > > > je souhaitais l'utiliser.
> > > > J'ai donc suivis le README (
> > > >http://www.symfony-project.org/plugins/mgI18nPlugin),
> > > > par ailleurs, au passage "Create a class mgI18nAjaxTranslation",
> > > > aucune indication d'où la créer (je l'ai mis dans config/ du coup (pas
> > > > celui de l'app mais le global)).
>
> > > > Donc voilà, tout est créé, ma table "trans_unit" se remplie comme une
> > > > grande, mais je n'ai aucune idée de comment faire apparaitre le pop-up
> > > > pour pouvoir traduire mon appli. J'ai bien le plugin
> > > > sfDoctrineGuardPlugin, je me connecte en temps que superadmin, mais
> > > > rien n'apparait.
>
> > > > Merci :)
>
> > > > --
> > > > 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 > > >  legroups.com>
> > 
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/symfony-users?hl=en
>
> > > --
> > > Thomas Rabaixhttp://rabaix.net
>
> > --
> > 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 > legroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en
>
> --
> Thomas Rabaixhttp://rabaix.net

-- 
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] Trying to overwriting a method of a sf class

2010-06-07 Thread Gareth McCumskey
One thing to remember is that after you overload a method in your parent class 
to call the parent class to continue execution if you need that. For example 
if you have a class defined as:

class ChildClass extends ParentClass

and the ParentClass has a method such as:

protected function functionToOverwrite($parameter)

Then to overwrite and allow it to do what it needs to do you do in your 
ChildClass:

protected function functionToOverwrite($parameter)
{
//All code here for my stuff
//I am now finished so call parent
parent::functionToOverwrite($parameter);
}

And thats that. Hope it helps.

On Friday 04 June 2010 13:01:36 Javier Garcia wrote:
> Hi,
> 
> i want to overwrite a method of
> symfony/lib/plugins/sfDoctrinePlugin/lib/form/sfFormDoctrine.class.php.
> 
> I think a good way could be writing again the method in the form class
> where i need that method.
> 
> In that case if i need that method in other form class should i write
> again the new method, so i would break the rule DRY...
> 
> So is there any better way?

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

2010-06-07 Thread wueb
Shouldn't the default be ANSII and not UTF-8?

On 7 Jun, 11:23, Pietrino Atzeni  wrote:
> Try with the home page, before (with all partials and components, if you
> have any).
>
> I think netbeans, pspad and others has automatic conversion to utf-8.
>
> P
>
> > All modules pages??
>
> > On 7 Jun, 10:51, Pietrino Atzeni  wrote:
> >> Hi,
> >> if I remember well, it's due to the wrong encoding of the symfony files.
>
> >> Ensure that all the pages are encoding in UTF-8, and the problem should
> >> disappear.
>
> >> Hope this helps,
> >> Pietro
>
> >>> In some of my pages are appearing this  on the top when is loading
> >>> the webpage.
>
> >>> Anyone know what problem is this?

-- 
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 see images in production in a shared server

2010-06-07 Thread Javier Garcia

Hi,

I have deployed my symfony app into a shared server. The problem: for 
example, the images and the .css of the default page that says


|ok
Symfony  Project  Created
Congratulations!  You  have successfully created your symfony project.

Project  setup successful
...
|

are not loaded.

I have tried to modify ProjectConfiguration.class.php and web/.htaccess 
but i dont know what should write exactly..


Any idea?

Javi

--
Javi

Ubuntu 8.04 - Symfony 1.3

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

2010-06-07 Thread Pietrino Atzeni

For translation purposes, I'd recommend UTF-8.

Anyway, just be consistent in all of your environments. Usually, if you 
are developing in windows and deploying to linux, you will encounter 
similar problems, and you'll avoid them using the same encoding in all 
the machines.


Be sure to match Apache and MySql encodings.

P


Shouldn't the default be ANSII and not UTF-8?

On 7 Jun, 11:23, Pietrino Atzeni  wrote:

Try with the home page, before (with all partials and components, if you
have any).

I think netbeans, pspad and others has automatic conversion to utf-8.

P


All modules pages??



On 7 Jun, 10:51, Pietrino Atzeniwrote:

Hi,
if I remember well, it's due to the wrong encoding of the symfony files.



Ensure that all the pages are encoding in UTF-8, and the problem should
disappear.



Hope this helps,
Pietro



In some of my pages are appearing this  on the top when is loading
the webpage.



Anyone know what problem is this?




--
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] help:doctrine

2010-06-07 Thread safa boubekri
hello

i  make  this  code in my action

$this->test = Doctrine_Query::create()
   ->select('titre')
   ->from('Cotisation')->execute();


it's give me  the Id   but not  'titre'

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] virtual column - doctrine

2010-06-07 Thread Sela
i got a table with countries list and i keep the 2 letters code of the
country. i want to use a virtual column to be populated according to
the user language as i can get translation for all the countries using
the symfony. i want to have this virtual column in order to be able to
sort when i query the list of all the countries according to a
specific country.

any idea how to do it?

-- 
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] I don't see images in production in a shared server

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, Javier Garcia wrote:

> I have deployed my symfony app into a shared server. The problem: for 
> example, the images and the .css of the default page that says
> 
> |ok
> Symfony  Project  Created
> Congratulations!  You  have successfully created your symfony project.
> 
> Project  setup successful
> ...
> |
> 
> are not loaded.
> 
> I have tried to modify ProjectConfiguration.class.php and web/.htaccess 
> but i dont know what should write exactly..

You need to setup the /sf alias in your web server configuration:

http://www.symfony-project.org/getting-started/1_4/en/05-Web-Server-Configuration#chapter_05_sub_web_server_configuration

http://www.symfony-project.org/gentle-introduction/1_4/en/03-Running-Symfony#chapter_03_sub_the_secure_way

http://www.symfony-project.org/jobeet/1_4/Doctrine/en/01#chapter_01_sub_web_server_configuration



-- 


-- 
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: Symfony cache, override?

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, zedan wrote:

> I found my solutions, put the _index_partial to layout page, and set
> cache config do not cache layout page.

You mean layout.php? That means layout.php (which is used for all pages) 
is never cached? Probably not a good idea from a performance standpoint. 
Much better to switch off cache ONLY for the actions that use that 
partial, i.e. only when you need to.



-- 


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

2010-06-07 Thread Gábor Fási
That seems to be the Byte Order Mark at the very beginning of your
utf-8 encoded pages. Make sure you save your files without the BOM, as
it breaks important functionality, like sessions or any header() call.

On Mon, Jun 7, 2010 at 11:45, wueb  wrote:
> In some of my pages are appearing this  on the top when is loading
> the webpage.
>
> Anyone know what problem is this?
>
> --
> 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: Dynamic Forms

2010-06-07 Thread Asier
I finally managed this with a form with embedded forms which gets
populated dynamically depending on the given input values. :)

Thanks for the answer anyway.
Asier.


On May 27, 9:34 am, Tom Ptacnik  wrote:
> I think it's easy to do that with classic Symfony sfForm with hand
> made template ;)
>
> Read 
> thishttp://www.symfony-project.org/forms/1_4/en/03-Forms-for-web-Designers
> and you will solve your situation.
>
> On 24 kvě, 16:01,Asier wrote:
>
> > Hi there,
>
> > I started with a form, which is made by hand because of it's
> > complexity (it's a javascript modified form, with sortable parts,
> > etc). The problem is that now I need to do the validation, and it's a
> > total mess to do it from scratch in the action using the sfValidator*
> > classes.
>
> > So, I am thinking to do it using sfForm so that my form validation and
> > error handling can be done more easier and so I can reuse this form
> > for the Edit and Create pages.
>
> > The form is something like this:
>
> > 
> >   
> >   
> >   
> >     
> >       
> >       
> >     
> >     
> >       
> >       
> >     
> >   
> > 
>
> > The thing is that the sortable part of the form can be expanded from 2
> > to N elements on the client side. So that it has variable items
> > quantity which can be reordered.
>
> > How can I approach this problem?
>
> > Any ideas are welcome,
> > 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 
> > 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 add an error to a form field

2010-06-07 Thread Asier
Hi there,

I have a form with an embedded form, wich can have N embedded forms:

parentForm:
  wrapperForm:
form_1
form_2
...
form_n

Nice. The problem is that this child forms have a date field (actually a
hidden field: sfWidgetFormInputHidden) which I must check so that:
form_1.date <= form_2.date <= ... <= form_n.date. So, I have opted to use a
callback postValidator in "parentForm". I set this in parentForm configure()
method:

$this->validatorSchema->setPostValidator(new sfValidatorCallback(array(
  'callback' => array($this, 'validateSchema'),
)));

And this is my "validateSchema" method:

public function validateSchema(sfValidatorBase $validator, array $values)
{
  $previous_date = 0;
  $forms = $this->embeddedForms['wrapperForm']->getEmbeddedForms();

  foreach ($values['wrapperForm'] as $form_id => $form) {
if (strtotime($form['date']) < $previous_date) {
  *// ADD ERROR MESSAGE*
} else {
  $previous_date = strtotime($form['date']);
}
  }

  return $values;
}

Knowing that to access one of the child forms object, we can use
$forms[$form_id] within the for loop. How the hell can I add an error
message to the date field?? :( I don't want a global error, I just want the
error next to it's corresponding field. Any idea would be greatly
appreciated.

Thank you,
Asier.

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

2010-06-07 Thread wueb
But why this start happening? I never had this problem before. Never
needed to save files in diferent encodings, always used the default.

Between, this only happens in the webserver, not in localhost!

-- 
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] php symfony configure:database "mysql:host=localhost;dbname=pist1

2010-06-07 Thread DEEPAK BHATIA
Hi,

php symfony configure:database "mysql:host=localhost;dbname=pist1" root

Can I specify my machine IP Address

php symfony configure:database "mysql:host=10.0.1.66;dbname=pist1

The reason is that I am trying Database syncing through maatkit which says I
need Super Privileges to achieve the syncing.

Regards

Deepak

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

2010-06-07 Thread saad
Hi,
this is probably due to the BOM (byte order mark) used with UTF-8
encoding:
http://en.wikipedia.org/wiki/UTF-8

Usually, this is handled correctly by the browser (and the server) if
the page encoding is UTF-8.

Thanks,

On Jun 7, 5:45 am, wueb  wrote:
> In some of my pages are appearing this  on the top when is loading
> the webpage.
>
> Anyone know what problem is this?

-- 
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] php symfony configure:database "mysql:host=localhost;dbname=pist1

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, DEEPAK BHATIA wrote:

> php symfony configure:database "mysql:host=localhost;dbname=pist1" root
> 
> Can I specify my machine IP Address

Yes.


-- 


-- 
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] print_r / var_dump debugging.

2010-06-07 Thread Luis Alberto Zarrabeitia
How can you dump a variable in symphony? I usually use print_r or
var_dump when I need to check the values/structure of a variable at
some point during the execution, but it seems that symphony objects
have some kind of circular references, because trying to use these
functions produces the error:

PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted
(tried to allocate 123207681 bytes) in ...

Is there any way to "dump" a symphony variable? (I don't really need
to go too deep, a shallow dump would be enough).

Luis.

-- 
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] print_r / var_dump debugging.

2010-06-07 Thread Michał Piotrowski
Hi,

2010/6/7 Luis Alberto Zarrabeitia :
> How can you dump a variable in symphony? I usually use print_r or
> var_dump when I need to check the values/structure of a variable at
> some point during the execution, but it seems that symphony objects
> have some kind of circular references, because trying to use these
> functions produces the error:
>
> PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted
> (tried to allocate 123207681 bytes) in ...
>
> Is there any way to "dump" a symphony variable? (I don't really need
> to go too deep, a shallow dump would be enough).

You can dump variable with var_dump().

The error appeared because you tried to dump a really large piece of data.

Regards,
Michal

>
> Luis.
>
> --
> 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] php symfony configure:database "mysql:host=localhost;dbname=pist1

2010-06-07 Thread DEEPAK BHATIA
When I execute the below

php symfony propel:insert-sql

Error Message
=
Execution of target "insert-sql" failed for the following reason:
/opt/lampp/htdocs/symfony-1.1.7/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:296:1:
[wrapped: access violation [Native Error: Access denied for user
'root'@'10.0.1.66' to database 'crb'] [User Info: Array]]
[phing]
/opt/lampp/htdocs/symfony-1.1.7/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:296:1:
[wrapped: access violation [Native Error: Access denied for user
'root'@'10.0.1.66' to database 'crb'] [User Info: Array]]


On Mon, Jun 7, 2010 at 8:52 PM, Eno  wrote:

> On Mon, 7 Jun 2010, DEEPAK BHATIA wrote:
>
> > php symfony configure:database "mysql:host=localhost;dbname=pist1" root
> >
> > Can I specify my machine IP Address
>
> Yes.
>
>
> --
>
>
> --
> 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:  problem

2010-06-07 Thread wueb
But why was the server working fine and without visible reason start
giving this problem?

On 7 Jun, 16:16, saad  wrote:
> Hi,
> this is probably due to the BOM (byte order mark) used with UTF-8
> encoding:http://en.wikipedia.org/wiki/UTF-8
>
> Usually, this is handled correctly by the browser (and the server) if
> the page encoding is UTF-8.
>
> Thanks,
>
> On Jun 7, 5:45 am, wueb  wrote:
>
> > In some of my pages are appearing this  on the top when is loading
> > the webpage.
>
> > Anyone know what problem is this?

-- 
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] php symfony configure:database "mysql:host=localhost;dbname=pist1

2010-06-07 Thread Michał Piotrowski
Hi,

Do you have database configured for remote connections?

For example default PostgreSQL configuration for Linux allows only
localhost connections.

Regards,
Michal

2010/6/7 DEEPAK BHATIA :
> When I execute the below
>
> php symfony propel:insert-sql
>
> Error Message
> =
> Execution of target "insert-sql" failed for the following reason:
> /opt/lampp/htdocs/symfony-1.1.7/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:296:1:
> [wrapped: access violation [Native Error: Access denied for user
> 'root'@'10.0.1.66' to database 'crb'] [User Info: Array]]
>     [phing]
> /opt/lampp/htdocs/symfony-1.1.7/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:296:1:
> [wrapped: access violation [Native Error: Access denied for user
> 'root'@'10.0.1.66' to database 'crb'] [User Info: Array]]
>
>
> On Mon, Jun 7, 2010 at 8:52 PM, Eno  wrote:
>>
>> On Mon, 7 Jun 2010, DEEPAK BHATIA wrote:
>>
>> > php symfony configure:database "mysql:host=localhost;dbname=pist1" root
>> >
>> > Can I specify my machine IP Address
>>
>> Yes.
>>
>>
>> --
>>
>>
>> --
>> 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


Re: [symfony-users] Re: problem

2010-06-07 Thread Pietrino Atzeni
Probably because you edited those files both in localhost and in the 
webserver.


P


But why was the server working fine and without visible reason start
giving this problem?

On 7 Jun, 16:16, saad  wrote:

Hi,
this is probably due to the BOM (byte order mark) used with UTF-8
encoding:http://en.wikipedia.org/wiki/UTF-8

Usually, this is handled correctly by the browser (and the server) if
the page encoding is UTF-8.

Thanks,

On Jun 7, 5:45 am, wueb  wrote:


In some of my pages are appearing this  on the top when is loading
the webpage.



Anyone know what problem is this?




--
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] print_r / var_dump debugging.

2010-06-07 Thread Pietrino Atzeni
Hi, if you need to dump an object as an array, use the ->toArray() 
method (assuming you are using Doctrine, though).


Hope this helps,
Pietro



Hi,

2010/6/7 Luis Alberto Zarrabeitia:

How can you dump a variable in symphony? I usually use print_r or
var_dump when I need to check the values/structure of a variable at
some point during the execution, but it seems that symphony objects
have some kind of circular references, because trying to use these
functions produces the error:

PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted
(tried to allocate 123207681 bytes) in ...

Is there any way to "dump" a symphony variable? (I don't really need
to go too deep, a shallow dump would be enough).


You can dump variable with var_dump().

The error appeared because you tried to dump a really large piece of data.

Regards,
Michal


--
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] php symfony configure:database "mysql:host=localhost;dbname=pist1

2010-06-07 Thread DEEPAK BHATIA
Hi,

I guess you are right. Actually we install the mysql through Apache Friends
xampp for linux. How can I configure my database for remote connections ?

Regards

Deepak Bhatia

2010/6/7 Michał Piotrowski 

> Hi,
>
> Do you have database configured for remote connections?
>
> For example default PostgreSQL configuration for Linux allows only
> localhost connections.
>
> Regards,
> Michal
>
> 2010/6/7 DEEPAK BHATIA :
>  > When I execute the below
> >
> > php symfony propel:insert-sql
> >
> > Error Message
> > =
> > Execution of target "insert-sql" failed for the following reason:
> >
> /opt/lampp/htdocs/symfony-1.1.7/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:296:1:
> > [wrapped: access violation [Native Error: Access denied for user
> > 'root'@'10.0.1.66' to database 'crb'] [User Info: Array]]
> > [phing]
> >
> /opt/lampp/htdocs/symfony-1.1.7/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:296:1:
> > [wrapped: access violation [Native Error: Access denied for user
> > 'root'@'10.0.1.66' to database 'crb'] [User Info: Array]]
> >
> >
> > On Mon, Jun 7, 2010 at 8:52 PM, Eno  wrote:
> >>
> >> On Mon, 7 Jun 2010, DEEPAK BHATIA wrote:
> >>
> >> > php symfony configure:database "mysql:host=localhost;dbname=pist1"
> root
> >> >
> >> > Can I specify my machine IP Address
> >>
> >> Yes.
> >>
> >>
> >> --
> >>
> >>
> >> --
> >> 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


Re: [symfony-users] php symfony configure:database "mysql:host=localhost;dbname=pist1

2010-06-07 Thread DEEPAK BHATIA
Sorry, I am using MySQL.

On Mon, Jun 7, 2010 at 9:13 PM, DEEPAK BHATIA wrote:

> Hi,
>
> I guess you are right. Actually we install the mysql through Apache Friends
> xampp for linux. How can I configure my database for remote connections ?
>
> Regards
>
> Deepak Bhatia
>
> 2010/6/7 Michał Piotrowski 
>
> Hi,
>>
>> Do you have database configured for remote connections?
>>
>> For example default PostgreSQL configuration for Linux allows only
>> localhost connections.
>>
>> Regards,
>> Michal
>>
>> 2010/6/7 DEEPAK BHATIA :
>>  > When I execute the below
>> >
>> > php symfony propel:insert-sql
>> >
>> > Error Message
>> > =
>> > Execution of target "insert-sql" failed for the following reason:
>> >
>> /opt/lampp/htdocs/symfony-1.1.7/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:296:1:
>> > [wrapped: access violation [Native Error: Access denied for user
>> > 'root'@'10.0.1.66' to database 'crb'] [User Info: Array]]
>> > [phing]
>> >
>> /opt/lampp/htdocs/symfony-1.1.7/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:296:1:
>> > [wrapped: access violation [Native Error: Access denied for user
>> > 'root'@'10.0.1.66' to database 'crb'] [User Info: Array]]
>> >
>> >
>> > On Mon, Jun 7, 2010 at 8:52 PM, Eno  wrote:
>> >>
>> >> On Mon, 7 Jun 2010, DEEPAK BHATIA wrote:
>> >>
>> >> > php symfony configure:database "mysql:host=localhost;dbname=pist1"
>> root
>> >> >
>> >> > Can I specify my machine IP Address
>> >>
>> >> Yes.
>> >>
>> >>
>> >> --
>> >>
>> >>
>> >> --
>> >> 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


Re: [symfony-users] php symfony configure:database "mysql:host=localhost;dbname=pist1

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, DEEPAK BHATIA wrote:

> When I execute the below
> 
> php symfony propel:insert-sql
> 
> Error Message
> =
> Execution of target "insert-sql" failed for the following reason:
> /opt/lampp/htdocs/symfony-1.1.7/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:296:1:
> [wrapped: access violation [Native Error: Access denied for user
> 'root'@'10.0.1.66' to database 'crb'] [User Info: Array]]
> [phing]
> /opt/lampp/htdocs/symfony-1.1.7/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:296:1:
> [wrapped: access violation [Native Error: Access denied for user
> 'root'@'10.0.1.66' to database 'crb'] [User Info: Array]]


This is a basic MySQL permissions error. The username you're using doesn't 
have correct permissions.



-- 




-- 
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] php symfony configure:database "mysql:host=localhost;dbname=pist1

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, DEEPAK BHATIA wrote:

> I guess you are right. Actually we install the mysql through Apache Friends
> xampp for linux. How can I configure my database for remote connections ?

Use the GRANT command in MySQL. Go read the MySQL dfocs.



> 
> Regards
> 
> Deepak Bhatia
> 
> 2010/6/7 Michał Piotrowski 
> 
> > Hi,
> >
> > Do you have database configured for remote connections?
> >
> > For example default PostgreSQL configuration for Linux allows only
> > localhost connections.
> >
> > Regards,
> > Michal
> >
> > 2010/6/7 DEEPAK BHATIA :
> >  > When I execute the below
> > >
> > > php symfony propel:insert-sql
> > >
> > > Error Message
> > > =
> > > Execution of target "insert-sql" failed for the following reason:
> > >
> > /opt/lampp/htdocs/symfony-1.1.7/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:296:1:
> > > [wrapped: access violation [Native Error: Access denied for user
> > > 'root'@'10.0.1.66' to database 'crb'] [User Info: Array]]
> > > [phing]
> > >
> > /opt/lampp/htdocs/symfony-1.1.7/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:296:1:
> > > [wrapped: access violation [Native Error: Access denied for user
> > > 'root'@'10.0.1.66' to database 'crb'] [User Info: Array]]
> > >
> > >
> > > On Mon, Jun 7, 2010 at 8:52 PM, Eno  wrote:
> > >>
> > >> On Mon, 7 Jun 2010, DEEPAK BHATIA wrote:
> > >>
> > >> > php symfony configure:database "mysql:host=localhost;dbname=pist1"
> > root
> > >> >
> > >> > Can I specify my machine IP Address
> > >>
> > >> Yes.
> > >>
> > >>
> > >> --
> > >>
> > >>
> > >> --
> > >> 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


Re: [symfony-users] php symfony configure:database "mysql:host=localhost;dbname=pist1

2010-06-07 Thread DEEPAK BHATIA
http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html



On Mon, Jun 7, 2010 at 9:23 PM, Eno  wrote:

> On Mon, 7 Jun 2010, DEEPAK BHATIA wrote:
>
> > When I execute the below
> >
> > php symfony propel:insert-sql
> >
> > Error Message
> > =
> > Execution of target "insert-sql" failed for the following reason:
> >
> /opt/lampp/htdocs/symfony-1.1.7/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:296:1:
> > [wrapped: access violation [Native Error: Access denied for user
> > 'root'@'10.0.1.66' to database 'crb'] [User Info: Array]]
> > [phing]
> >
> /opt/lampp/htdocs/symfony-1.1.7/lib/plugins/sfPropelPlugin/lib/vendor/propel-generator/build-propel.xml:296:1:
> > [wrapped: access violation [Native Error: Access denied for user
> > 'root'@'10.0.1.66' to database 'crb'] [User Info: Array]]
>
>
> This is a basic MySQL permissions error. The username you're using doesn't
> have correct permissions.
>
>
>
> --
>
>
>
>
> --
>  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] print_r / var_dump debugging.

2010-06-07 Thread Luis Alberto Zarrabeitia
@Michal

>> You can dump variable with var_dump().
>>
>> The error appeared because you tried to dump a really large piece of data.
>>

Thank you, but that's not it. The error message /says/ that, but it
can also be caused by a cyclic data structure. (A has a reference to
B, and B has a reference to A). Unfortunately, Doctrine/symfony
objects seem to be cyclic for some reason, so trying to dump even the
smallest row from your DB will cause the error (see below).

@Pietro

> Hi, if you need to dump an object as an array, use the ->toArray() method
> (assuming you are using Doctrine, though).
>
> Hope this helps,

Yes, it did!

Array\n(\n\[id\] => 1\n\[imageid\] => 36\n\[user_id\] => 2\n)

You are a life saver :D

Thank you,

Luis.

-- 
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] print_r / var_dump debugging.

2010-06-07 Thread Thomas Rabaix
install xebug, var_dump is smarter

On Mon, Jun 7, 2010 at 5:43 PM, Pietrino Atzeni
wrote:

> Hi, if you need to dump an object as an array, use the ->toArray() method
> (assuming you are using Doctrine, though).
>
> Hope this helps,
> Pietro
>
>
>
>  Hi,
>>
>> 2010/6/7 Luis Alberto Zarrabeitia:
>>
>>> How can you dump a variable in symphony? I usually use print_r or
>>> var_dump when I need to check the values/structure of a variable at
>>> some point during the execution, but it seems that symphony objects
>>> have some kind of circular references, because trying to use these
>>> functions produces the error:
>>>
>>> PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted
>>> (tried to allocate 123207681 bytes) in ...
>>>
>>> Is there any way to "dump" a symphony variable? (I don't really need
>>> to go too deep, a shallow dump would be enough).
>>>
>>
>> You can dump variable with var_dump().
>>
>> The error appeared because you tried to dump a really large piece of data.
>>
>> Regards,
>> Michal
>>
>
> --
> 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
>



-- 
Thomas Rabaix
http://rabaix.net

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

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, wueb wrote:

> But why was the server working fine and without visible reason start
> giving this problem?

As others have popinted out, when editing UTF-8 files, you have to be very 
careful to maintain the correct encoding in the file.

 
> On 7 Jun, 16:16, saad  wrote:
> > Hi,
> > this is probably due to the BOM (byte order mark) used with UTF-8
> > encoding:http://en.wikipedia.org/wiki/UTF-8
> >
> > Usually, this is handled correctly by the browser (and the server) if
> > the page encoding is UTF-8.
> >
> > Thanks,
> >
> > On Jun 7, 5:45 am, wueb  wrote:
> >
> > > In some of my pages are appearing this  on the top when is loading
> > > the webpage.
> >
> > > Anyone know what problem is this?
> 
> 

-- 
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] print_r / var_dump debugging.

2010-06-07 Thread Luis Alberto Zarrabeitia
Wow, the feature list looks amazing... I'll take a look at it. Thanks!.

On Mon, Jun 7, 2010 at 11:58 AM, Thomas Rabaix  wrote:
> install xebug, var_dump is smarter
>
> On Mon, Jun 7, 2010 at 5:43 PM, Pietrino Atzeni 
> wrote:
>>
>> Hi, if you need to dump an object as an array, use the ->toArray() method
>> (assuming you are using Doctrine, though).
>>
>> Hope this helps,
>> Pietro
>>
>>
>>> Hi,
>>>
>>> 2010/6/7 Luis Alberto Zarrabeitia:

 How can you dump a variable in symphony? I usually use print_r or
 var_dump when I need to check the values/structure of a variable at
 some point during the execution, but it seems that symphony objects
 have some kind of circular references, because trying to use these
 functions produces the error:

 PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted
 (tried to allocate 123207681 bytes) in ...

 Is there any way to "dump" a symphony variable? (I don't really need
 to go too deep, a shallow dump would be enough).
>>>
>>> You can dump variable with var_dump().
>>>
>>> The error appeared because you tried to dump a really large piece of
>>> data.
>>>
>>> Regards,
>>> Michal
>>
>> --
>> 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
>
>
>
> --
> Thomas Rabaix
> http://rabaix.net
>
> --
> 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] I don't see images in production in a shared server

2010-06-07 Thread Javier Garcia

On 06/07/2010 03:16 PM, Eno wrote:

You need to setup the /sf alias in your web server configuration:


Thanks Eno, but my app is in a shared host, so i can not modify the 
server configuration.


I read this:

http://www.symfony-project.org/book/1_2/03-Running-Symfony#chapter_03_sub_configuring_a_shared_host_server

but i dont know exactly what should i modify in web/.htaccess.

These are my ProjectConfiguration.class.php and .htaccess:

Options +FollowSymLinks +ExecCGI


  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]



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

sfCoreAutoload::register();

class ProjectConfiguration extends sfProjectConfiguration
{
  public function setup()
  {
$this->setWebDir($this->getRootDir().'/web');

echo $this->setWebDir; // this prints the path where i have index.php

$this->enablePlugins('sfDoctrinePlugin');
  }
}

As I say in my first post, all my configuration is the default one. I 
just download symfony and created a project and an application.


--
Javi

Ubuntu 8.04 - Symfony 1.3

--
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] I don't see images in production in a shared server

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, Javier Garcia wrote:

> On 06/07/2010 03:16 PM, Eno wrote:
> > You need to setup the /sf alias in your web server configuration:
> 
> Thanks Eno, but my app is in a shared host, so i can not modify the 
> server configuration.

Not a recommended setup. Im also guessing the remote server won't have 
symfony installed and so won't have the sf folder available anyway. Looks 
like your only option is to create the sf folder inside your public web 
folder and copy all images, stylesheets and javascript there manually.



-- 


-- 
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] Selecting prod/dev connections from the command line.

2010-06-07 Thread Luis Alberto Zarrabeitia
How do I make tools like ./symfony guard:promote use the right DB
connection configuration? I have a "production" and "development" DBs.
When I'm accessing through the web server, symfony choses the right DB
to use ('dev' in my dev environment, and prod in my production
environment). However, when I'm using the command line, it seems to be
always using the 'dev' connection...  Currently I have to edit the
databases.yml file, copy the prod config over the dev config, and then
issue the commands, but that kind of defeats the purpose of having two
different configurations.

(this only happens with the commandline tools... from the web, it
works perfectly).

Another somewhat related question. I also need to configure some
parameters differently, depending on whether I'm on the production
server or on the dev environment (some file paths, legacy php
libraries, mailer configuration, etc). Which would be the best place
to do it? (I assume that it would be a .yml file... which one, and how
do I access it?). the goal is to minimize the ammount of changes that
I must manually do after a project:deploy.

Luis.

-- 
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] Selecting prod/dev connections from the command line.

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, Luis Alberto Zarrabeitia wrote:

> How do I make tools like ./symfony guard:promote use the right DB
> connection configuration?

Im not familiar with that CLI task, but does it take any additional 
parameters allowing you to specify the connection? Maybe try the help 
command?

> Another somewhat related question. I also need to configure some
> parameters differently, depending on whether I'm on the production
> server or on the dev environment (some file paths, legacy php
> libraries, mailer configuration, etc). Which would be the best place
> to do it? (I assume that it would be a .yml file... which one, and how
> do I access it?). the goal is to minimize the ammount of changes that
> I must manually do after a project:deploy.

Several ways to approach this:

Set them programmatically in your project configuration (you can check if 
you are in dev or prod mode and change values as appropriate).

You can also set them in app.yml.

Or you can have two sets of configs (dev and prod) and copy the prod one 
over when deploying.

See symfony reference book:
http://www.symfony-project.org/reference/1_4/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] Selecting prod/dev connections from the command line.

2010-06-07 Thread Luis Alberto Zarrabeitia
On Mon, Jun 7, 2010 at 12:47 PM, Eno  wrote:
> On Mon, 7 Jun 2010, Luis Alberto Zarrabeitia wrote:
>
>> How do I make tools like ./symfony guard:promote use the right DB
>> connection configuration?
>
> Im not familiar with that CLI task, but does it take any additional
> parameters allowing you to specify the connection? Maybe try the help
> command?

So, is it configured "per task"?  I imagined there was some kind of
config file... now that I think about it, it doesn't makes sense
either (one would have to update that one). Ok, that particular task
has a --env argument. But I imagined it would be something general to
all tasks, and not something that one task may or may not accept.

Btw, which "help" command are you referring to? "symfony help" doesn't
say much. The help for /that/ task, mentions --env (not that I knew
about it, thanks for the hint that it was task-specific instead of
symfony-wide), but my question was more generic (I used the
guard:promote example only because it was the latest I ran into). So
there doesn't seem to be a "help file" that answer the question "how
do I make tools like [some example] use the right DB connection
configuration?", thought there is one that answers "how do I make this
particular task use the right DB configuration?", which, of course,
solves it for that particular task.

>> Another somewhat related question. I also need to configure some
>> parameters differently, depending on whether I'm on the production
>> server or on the dev environment (some file paths, legacy php
>> libraries, mailer configuration, etc). Which would be the best place
>> to do it? (I assume that it would be a .yml file... which one, and how
>> do I access it?). the goal is to minimize the ammount of changes that
>> I must manually do after a project:deploy.
>
> Several ways to approach this:
>
> Set them programmatically in your project configuration (you can check if
> you are in dev or prod mode and change values as appropriate).
>
> You can also set them in app.yml.

Thank you. I'm going to try that.

> Or you can have two sets of configs (dev and prod) and copy the prod one
> over when deploying.

(that's kind of what I'm doing now).

> See symfony reference book:
> http://www.symfony-project.org/reference/1_4/en/

I've read it. Several times. The first one, before I chose to use
symfony. And also parts of the source code... but I didn't memorize
it, and it seems my google skills weren't good enough to find my
answer there. Could you provide me a more specific link?

Thank you again. You may have saved me a lot of future troubles.

Regards,

Luis.

-- 
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] phpunit with symfony1.4 and tap output

2010-06-07 Thread Robert Schoenthal
he folks,

i started to migrating from lime to phpunit.
the integration worked well so far, thanks to the great
sfPHPUnit2Plugin...
all tests passes.

also read my blogpost about extending the phpunit functional test to
be able to extend your browser and test class (http://digitalkaoz.net/
2010/06/make-phpunit-functional-tests-extendable/)

but i cannot get the testoutput tap conform.
if i run my phpunit tests suite...

phpunit --tap test/phpunit/functional/admin/fooActionsTest.php

i got
Fatal error: Cannot redeclare class sfYamlInline in /path/to/project/
lib/vendor/symfony/lib/yaml/sfYamlInline.php on line 22

i think phpunit needs yaml for the tap output generation, and phpunit
loads the yaml component first, and when symfony comes in play,
symfony tries to load its own yaml component.

bad :(

someone has an idea how to resolve this, without touching symfony or
phpunit sources?

thanks
robert

-- 
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] Selecting prod/dev connections from the command line.

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, Luis Alberto Zarrabeitia wrote:

> So, is it configured "per task"?

Yes.

> I imagined there was some kind of
> config file... now that I think about it, it doesn't makes sense
> either (one would have to update that one).

Its built-in to the task, there's no config file.

> Ok, that particular task
> has a --env argument. But I imagined it would be something general to
> all tasks, and not something that one task may or may not accept.

Some tasks dont need env, or will use whatever the default values are.

> Btw, which "help" command are you referring to? "symfony help" doesn't
> say much. The help for /that/ task, mentions --env (not that I knew
> about it, thanks for the hint that it was task-specific instead of
> symfony-wide),

I think all tasks have built-in help, so you can do something like

symfony help taskname

where taskname is the name of the task , e.g. generate:project

Its mentioned in the original symfony book and the latest "Gentle" book:
http://www.symfony-project.org/gentle-introduction/1_4/en/16-Application-Management-Tools#chapter_16_sub_custom_tasks

Also mentioned in Jobeet tutorial:
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/03#chapter_03_the_orm

And the 1.2 cookbook:
http://www.symfony-project.org/cookbook/1_2/en/tasks

> but my question was more generic (I used the
> guard:promote example only because it was the latest I ran into). So
> there doesn't seem to be a "help file" that answer the question
> "how do I make tools like [some example] use the right DB connection
> configuration?", thought there is one that answers "how do I make this
> particular task use the right DB configuration?", which, of course,
> solves it for that particular task.

Most tasks will use whatever your defaults are. If they take any 
parameters, the help command will tell you.

> I've read it. Several times. The first one, before I chose to use
> symfony. And also parts of the source code... but I didn't memorize
> it, and it seems my google skills weren't good enough to find my
> answer there. Could you provide me a more specific link?

Its mentioned here:
http://www.symfony-project.org/reference/1_4/en/03-Configuration-Files-Principles#chapter_03_environment_awareness

As you can see, you can define some settings based on environment (dev, 
prod, etc).




-- 


-- 
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: I don't see images in production in a shared server

2010-06-07 Thread Javier Garcia
Ok Eno, anyway I forgot to say that even the .css and .js from the
plugins are not loaded. Is there any way to mend it or should I copy
them also manually?

Javi




On Jun 7, 6:33 pm, Eno  wrote:
> On Mon, 7 Jun 2010, Javier Garcia wrote:
> > On 06/07/2010 03:16 PM, Eno wrote:
> > > You need to setup the /sf alias in your web server configuration:
>
> > Thanks Eno, but my app is in a shared host, so i can not modify the
> > server configuration.
>
> Not a recommended setup. Im also guessing the remote server won't have
> symfony installed and so won't have the sf folder available anyway. Looks
> like your only option is to create the sf folder inside your public web
> folder and copy all images, stylesheets and javascript there manually.
>
> --

-- 
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: I don't see images in production in a shared server

2010-06-07 Thread Eno
On Mon, 7 Jun 2010, Javier Garcia wrote:

> Ok Eno, anyway I forgot to say that even the .css and .js from the
> plugins are not loaded. Is there any way to mend it or should I copy
> them also manually?

It depends. If those plugins are using symlinks, then you might need to 
replace them with the actual files, if your web server is configured to 
not follow symlinks.



-- 


-- 
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: I don't see images in production in a shared server

2010-06-07 Thread Javier Garcia
One more: what is the minimum "recommend setup"? VPS, dedicated
server?

Javi


On Jun 8, 4:48 am, Eno  wrote:
> On Mon, 7 Jun 2010, Javier Garcia wrote:
> > Ok Eno, anyway I forgot to say that even the .css and .js from the
> > plugins are not loaded. Is there any way to mend it or should I copy
> > them also manually?
>
> It depends. If those plugins are using symlinks, then you might need to
> replace them with the actual files, if your web server is configured to
> not follow symlinks.
>
> --

-- 
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: I don't see images in production in a shared server

2010-06-07 Thread Javier Garcia
When I say "minimum" I'm thinking in price :).

Javi

On Jun 8, 4:48 am, Eno  wrote:
> On Mon, 7 Jun 2010, Javier Garcia wrote:
> > Ok Eno, anyway I forgot to say that even the .css and .js from the
> > plugins are not loaded. Is there any way to mend it or should I copy
> > them also manually?
>
> It depends. If those plugins are using symlinks, then you might need to
> replace them with the actual files, if your web server is configured to
> not follow symlinks.
>
> --

-- 
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] Managing i18n content for frontend in the backend

2010-06-07 Thread Tom Ptacnik
Hi,

I want to tell you my thoughts about managing I18N content in the
backend and want to know your opinions.

I want to internationalize my frontend app - classic (i18n/
messages.xx.xml + object with I18n behaviour) .. no problem


Then I need to manage internationalized objects (News) in the backend.
I have attributes: title and content  (doctrine - i18n behaviour).
I want English, Deutch and Czech language.

I need to somehow to display this languages on the form.

possibility 1)
In the master form use $this->embedI18n(array('en', 'de', 'cs')); ..
like in Jobeet example.
I don't like this solution because the form is too long. 2 fields for
every language. (imagine that I want to add some mor languages, or
more internationalized fields ... I thing this is not suitable for me)

possibility 2)
Show only fields for selected translation. There is some solution here
[url1] http://forum.symfony-project.org/index.php/t/16823/ ... I
almost like it.

I want to do something like this [url1]. For this I can use
embedI18n(array('onlyOneSelectedLang')) or
mergeForm(xxFormTranslation())
I think I'll go with mergeForm() if I don't hit a snag with something.

One thing I dont like on the solution in [url1]  is that he use use
sf_culture in the sfUser object for selecting languege and
sf_default_culture setting. I don't think that is correct, because
this stuff is for internationalizing the backend, not for the managing
the internationalized content. Am I right?

So if I don't want to use sf_culture -  I have to figer out how to
KNOW which language is selected .. which translation show on the form.

I've thought about two solutions
1) store it into the session -> something like sf_culture in sf_user
object
2) store in only in the URL ( backend_dev.php/news/1/edit/
edited_lang )


If you have read this till this end and you've some opinion or you
have deal with something similar .. tell me how you did it.

I want to do this:
- Show some tabs-like links for changing the language of the form
content (EN, DE, CZ)
- Store this selected lang into the session (contentCulture)
- On the form show only the fields for the selected lang by
mergeForm() function

What do you thing abou it?

-- 
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] Attributes in m:m relations with propel

2010-06-07 Thread Christopher Schnell
Hi,

 

I've run into a problem today, maybe it is more propel than symfony related,
but maybe someone here knows something to point me into the right direction.

 

In my database schema, I have a m:m relation (Course:Language) which has an
attribute price since the course in mandarin is more expensive than in
english. So the schema.yml looks like this :

 

course2languages:

created_at: ~

updated_at: ~

course_id: { type: integer, foreignTable: Course, primaryKey: true,
foreignReference: id, onDelete: cascade, required: true}

courselanguage_id: { type: integer, foreignTable: CourseLanguages,
primaryKey: true, foreignReference: id, onDelete: cascade, required: true}

price: {type: decimal, size: 3, scale: 2, default: 0.00}

 

Now, whenever I add or remove a relation, propel deletes all existing
relations and builds them again, thus deleting my attributes. I tried with
embedded forms which was displayed nicely in the frontend, but
unfortunately, propel does the update first, then deletes the relation and
then inserts it again, loosing my attribute.

 

Does anyone know how to work with attributes in relations? I think it would
already help, if I knew how to reverse the update and delete/insert
transactions in propel. Do the forms provide such a way?

 

Or is it simply not possible to use attributes with relations? What would be
the correct way then? BTW, I am using symfony 1.4 and Propel 1.4

 

Thanks and Regards,

Christopher.

 

 

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