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

[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:0

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

[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

[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

[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

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

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

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

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

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

[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: ~

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

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

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 file

[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

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 function

[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, 1

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

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 Ap

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

[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

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

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

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  o

[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 ;) > >

[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.da

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

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

[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 

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 thi

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

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 t

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 viol

[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

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

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

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

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

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

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

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/

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

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 t

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

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

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

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

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 remot

[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

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?

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

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

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

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

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

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

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

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

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