AW: [symfony-users] Re: save xml php

2010-04-09 Thread Christopher Schnell
That's a better solution than mine. Thanks :-) -Ursprüngliche Nachricht- Von: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] Im Auftrag von ??? Gesendet: Donnerstag, 8. April 2010 12:19 An: kim Betreff: Re: [symfony-users] Re: save xml php I'm using

Re: [symfony-users] Use event dispatcher on asynchronous mode

2010-04-09 Thread Frank Stelzer
Asynchronous executing is not possible, as there are no threads in PHP. However you could create a new shell task in your event listener. This process will run independant from your current PHP process. Am 08.04.2010 um 18:50 schrieb Dong YANG: Hello everyone, I have a question about

Re: [symfony-users] Use event dispatcher on asynchronous mode

2010-04-09 Thread Alvaro Videla
If you use PHP-FPM you could try to come with some solution using the fastcgi_finish_request(); function provided by that PHP version. We use it in prod quite a lot, but it depends on using PHP-FPM. On Apr 9, 2010, at 3:25 PM, Frank Stelzer wrote: Asynchronous executing is not possible, as

[symfony-users] Re: Use event dispatcher on asynchronous mode

2010-04-09 Thread romain godefroy
adapted from this about asynchronous http post : http://petewarden.typepad.com/searchbrowser/2008/06/how-to-post-an.html ?php function curl_post_async($url, $params = null) { if($params) { foreach ($params as $key = $val) { if (is_array($val)) $val = implode(',', $val);

Re: [symfony-users] Use event dispatcher on asynchronous mode

2010-04-09 Thread Dong YANG
Hello Alvaro and Frank, Thanks very much for your suggestions. I also considered about these two solutions and you make me sure. I haven't decided which one I will use, I will get back to you when I decided. Thanks again. JoJo 2010/4/9 Alvaro Videla

Re: [symfony-users] Re: Use event dispatcher on asynchronous mode

2010-04-09 Thread Dong YANG
Hello Romain, Thanks for your suggestion, it looks interesting. I will have a try. Regards, JoJo 2010/4/9 romain godefroy romain.godef...@wanadoo.fr adapted from this about asynchronous http post : http://petewarden.typepad.com/searchbrowser/2008/06/how-to-post-an.html

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

2010-04-09 Thread Tom Ptacnik
That strange, I store my validators in the lib/validator folder without problems. The problem must be somewhere else. On 7 dub, 18:34, Javier Garcia tirengar...@gmail.com wrote: No problem if i store it inside lib/ folder instead of lib/validator. Is there any way to store it in lib/validator

[symfony-users] Re: subdomain-based affiliate programme for ecommerce site

2010-04-09 Thread Tom Ptacnik
I think the classic way of doing this is to store a cookie when the user comes (from some link with id which idetify the affiliate). Then you can identify him by this cookie, or you can use session - if you don't need to identify him after he leaves your website and comes later by just typing your

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

2010-04-09 Thread Tom Ptacnik
I thought that you want to just change the username field in sfGuar from not null to null .. don't change the schema in plugin just try to add into your project schema.yml the: sfGuardUser: columns: username: type: string(128) notnull: false unique: true On 8 dub,

[symfony-users] andWhereNotIn clause not working

2010-04-09 Thread NOOVEO - Christophe Brun
Hi everybody. Here are several Doctrine calls : These ones work (the request is compiled and processed with no errors) : $q = Doctrine_Query::create()-from('Livre')-where(infos_aliga like '%?%', 'something')-execute(); $q = Doctrine_Query::create()-from('Livre')-whereNotIn('id',

[symfony-users] Re: Disable checkbox without loosing value?

2010-04-09 Thread Tom Ptacnik
Then you probably have to create your own widget which does this. On 8 dub, 11:45, axel at axel.zu...@gmail.com wrote: overwriting the doBind works for me but it's an ugly solution - other frameworks use checkbox widgets with hidden fields to solve this problem, would be nice for symfony too.

[symfony-users] sfWidgetFormSelectDoubleList order of items?

2010-04-09 Thread comb
Hi I have a many-To-many (Gig-Song) relation and want to use sfWidgetFormSelectDoubleList. It work's fine, but I want to save the order of assignments, too (and not only associated /unassociated ). schema.yml: # many-To-many-relation ... GigSong: columns: order_id: { type: integer,

[symfony-users] Re: Use event dispatcher on asynchronous mode

2010-04-09 Thread apm
Where is async here? On 9 апр, 15:00, romain godefroy romain.godef...@wanadoo.fr wrote: adapted from this about asynchronous http post :http://petewarden.typepad.com/searchbrowser/2008/06/how-to-post-an.html -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] Re: ahDoctrineEasyEmbeddedRelationsPlugin problem

2010-04-09 Thread Stéphane
Okay I have found my error... :) It was in the schema.yml : edsDimensionsLiterie: inheritance: extends: edsDimensionsLL type: column_aggregation keyField: object_class keyValue: edsDimensionsLiterie columns: literie_id: type: integer(4) relations: literie:

RE: [symfony-users] andWhereNotIn clause not working

2010-04-09 Thread NOOVEO - Christophe Brun
OK, found. The reason why the query throws an error is in the where clause. rewrting the query like this works : $q = Doctrine_Query::create()-from('Livre')-where(infos_aliga like ?, '%something%'))-andWhereNotIn('id', array(1,2,3))-execute(); BTW, I found the error while DOHing on very

Re: [symfony-users] Re: subdomain-based affiliate programme for ecommerce site

2010-04-09 Thread Tom Haskins-Vaughan
Thanks, Tom! One of the main reasons to do it with subdomains, is to give the affiliates ownership of the way the site looks. If I do do it with subdomains, and then store the affiliate in for in sfUser, am I ok to do the subdomain analysis in in the sfUser class? I mean, can I just check the

[symfony-users] i18n - translation urls ?

2010-04-09 Thread alexmm
I have interesting question. Customer asked me if it is possible to have links in two languages. For example I have module JOB and I have Symfony appliaction in two lanuages: english and polish. 'job' == 'praca' in polish language. Is it possible to show url: http://xyz.com/job - in english

Re: [symfony-users] i18n - translation urls ?

2010-04-09 Thread Alexandru-Emil Lupu
Yes... you need a custom url. Check apostrophe. I am on mobile and i can't copy paste stuff sent via htc magic On Apr 9, 2010 8:40 PM, alexmm misiekaleksan...@gmail.com wrote: I have interesting question. Customer asked me if it is possible to have links in two languages. For example I have

[symfony-users] Re: i18n - translation urls ?

2010-04-09 Thread alexmm
Apostrophe ? Which apostrophe should I check ? On 9 Kwi, 19:47, Alexandru-Emil Lupu gang.al...@gmail.com wrote: Yes... you need a custom url. Check apostrophe. I am on mobile and i can't copy paste stuff sent via htc magic On Apr 9, 2010 8:40 PM, alexmm misiekaleksan...@gmail.com wrote:

[symfony-users] Re: i18n - translation urls ?

2010-04-09 Thread alexmm
And even if it is possible - what do you think about that ? I think it isn't often meet situation that we have urls in many languages. Why ? On 9 Kwi, 20:19, Alexandru-Emil Lupu gang.al...@gmail.com wrote: Apostrophenow.com or so... Is a sf based cms. I hope i can provide details in around 2-3

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

2010-04-09 Thread Javier Garcia
On 04/09/2010 12:22 PM, Tom Ptacnik wrote: I thought that you want to just change the username field in sfGuar from not null to null .. don't change the schema in plugin just try to add into your project schema.yml the: sfGuardUser: columns: username: type: string(128)

[symfony-users] database configuration question

2010-04-09 Thread lawrence
There is a $60 award for a question about database configuration on Symfony Experts: http://www.symfonyexperts.com/question/show/id/36 -- 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

[symfony-users] Question on Doctrine / Symfony 1.4 tutorial

2010-04-09 Thread cwis
Hello All, My name is Charles Wisniewski, we are exploring the route of adopting symfony for a large project at work. While going through the tutorial/documentation, I am confused by Doctrine's yml format: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/03 specifically, this:

Re: [symfony-users] Re: sfOutputEscaper behaviour

2010-04-09 Thread husen mankada
try this sfOutputEscaper::unescape(valute_to_unescape) regards, On Thu, Apr 8, 2010 at 3:35 PM, Apul Gupta apulmca...@gmail.com wrote: It doesn't work. Fatal error: Call to a member function getRawValue() on a non-object Any other? On Apr 7, 5:59 pm, Massimiliano Arione

[symfony-users] problem with CRUD + Propel + Symfony 1.3

2010-04-09 Thread Orlando Menendez
After you have upgraded a project to version 1.2 of symfony, every time I try to view a table of the database I get: 500 | Internal Server Error | sfException Unable to load generator template in: /home/franko/workspace/SGF/ data/generator/sfPropelCrud/default/template, /home/franko/workspace/

Re: [symfony-users] Re: i18n - translation urls ?

2010-04-09 Thread Peter Petrik
I think http://www.apostrophenow.com/ peter On Pi, 2010-04-09 at 11:06 -0700, alexmm wrote: Apostrophe ? Which apostrophe should I check ? On 9 Kwi, 19:47, Alexandru-Emil Lupu gang.al...@gmail.com wrote: Yes... you need a custom url. Check apostrophe. I am on mobile and i can't copy

[symfony-users] Action xx/xx does not exist.

2010-04-09 Thread Omar El Mazny
i followed symfony rules i wanted to creat my own function that returns the result of a query like this protected function executeListlab(sfWebRequest $request){ $this-membres = Doctrine::getTable('Member') -createQuery('m') -where('m.member_type = ?', 'lab') -execute();

[symfony-users] Re: sfOutputEscaper behaviour

2010-04-09 Thread symfonyfan
try this. sfOutputEscaper::unescape(value_to_unescape) regards, On Apr 8, 3:05 pm, Apul Gupta apulmca...@gmail.com wrote: It doesn't work.  Fatal error: Call to a member function getRawValue() on a non-object Any other? On Apr 7, 5:59 pm, Massimiliano Arione garak...@gmail.com wrote: