[symfony-users] Custom template and backend generator

2010-04-09 Thread fRAnKEnSTEin
Hi, I have created a backed using the backend generator of symfony and got 2 problems. One of the generated modules is called "availability", it's generator.yml file is like: ... list: actions: generateSeason: { label: Generate Season } ... and its related action in the control

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

2010-04-09 Thread Alexandru-Emil Lupu
Hi I have told you about apostrophe in order to see the routing config... Hope that i will be able to compose an email to tell you how can you do it.. just be patient... i hope i will be able to do it. I have busy day... Alecs sent via htc magic On Apr 10, 2010 9:16 AM, "alexmm" wrote: But I

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

2010-04-09 Thread alexmm
But I would like to know how can I translate url and in their tutorial: http://trac.apostrophenow.org/wiki/ManualI18N#Internationalization there is nothing about that On 9 Kwi, 20:10, Peter Petrik wrote: > I think > > http://www.apostrophenow.com/ > > peter > > On Pi, 2010-04-09 at 11:06 -0700, a

[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 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 wrote: > > > try > > > $variable->getRaw

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 wrote: > > Yes... you need a custom url. > > > > Check apostrophe. I am on mobile and i can't copy paste stuff

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

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

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 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 wrote: > > try > > > > $vari

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

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

Re: [symfony-users] sfGridPlugin, Propel/Doctrine-DataSources, ObjectPaths and JavaScript (ExtJS) extensions

2010-04-09 Thread Daniel Lohse
Great! I. Can't. Wait. :) A big thumbs up for making this happen! Cheers, Daniel On 09.04.2010, at 19:54, Leon van der Ree wrote: > Hi All, > > since many people are asking about the state of the sfGridPlugin, I > have decided to write an article about it here on sf-user-group. > > First an

[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 wrote: > Apostrophenow.com or so... > Is a sf based cms. > I hope i can provide details in around 2-3 hours... > > sent

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

2010-04-09 Thread Alexandru-Emil Lupu
Apostrophenow.com or so... Is a sf based cms. I hope i can provide details in around 2-3 hours... sent via htc magic On Apr 9, 2010 9:06 PM, "alexmm" wrote: Apostrophe ? Which apostrophe should I check ? On 9 Kwi, 19:47, Alexandru-Emil Lupu wrote: > Yes... you need a custom url. ... > On Apr

[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 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" wrote: > > I have interesting question. Custome

[symfony-users] sfGridPlugin, Propel/Doctrine-DataSources, ObjectPaths and JavaScript (ExtJS) extensions

2010-04-09 Thread Leon van der Ree
Hi All, since many people are asking about the state of the sfGridPlugin, I have decided to write an article about it here on sf-user-group. First an introduction. The sfGridPlugin is a symfony-plugin, once initiated by Bernhard Schussek, but soon enhanced by me. Grids are capab

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" wrote: 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 Symfo

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

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

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 ver

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

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

2010-04-09 Thread apm
Where is async here? On 9 апр, 15:00, romain godefroy 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 security at symfony-project.com

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

[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 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. > > anyway thx fo

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

[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, 18:54,

[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: 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 wrote: > No problem if i store it inside lib/ folder instead of lib/validator. > > Is there any way to store it in lib/validator without problems?

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 > adapted from this about asynchronous http post : > http://petewarden.typepad.com/searchbrowser/2008/06/how-to-post-an.html > > function curl_post_

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

[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 &$val) { if (is_array($val)) $val = implode(',', $val); $post_params[] = $key.'='.urlencode($val); } if($post_params) $post_string = implode('&',

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 t

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