[symfony-users] mergeForm does not support doctrine query cache ?

2010-02-04 Thread jignesh patel
Hii Can anybody have face this issue ? I am using a form with 2 or 3 mergerd form in it. I am using sfWidgetFormDoctrineChoice widgets for populate my choice box with database. I am using doctrine query cache for reducing no of queries, it is working with my outer form but not working with merg

RE: [symfony-users] URL Trouble

2010-02-04 Thread Daniel Kucharski
You can write mod rewrite rules in your .htaccess file and indicate it is permanently moved: I have for one of my projects: RewriteRule ^dealers.php http://www.thesite.com/nl/dealers [R=301,L] -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com

[symfony-users] need help: Unknown method SfGuardUser::addGroupByName

2010-02-04 Thread Alter Ego
I've installed sfGuardDoctrine plugin and followed the directions. I've generated the models and had everything. Then I made a change to my schema and now it does not work. When I register a new user I get: "Unknown method SfGuardUser::addGroupByName" I think the problem is in my schema, listed b

Re: [symfony-users] Re: [sf1.4] symfony project:deploy dry-run no output

2010-02-04 Thread Augusto Flavio
Hi Evert. there is no relation with error_reporting with the deploy using the argument --dry-run. The problem that is see is in the class that execute the rsync command. For one time i thought it's the outbuffer in the class that do the deployment: sfProjectDeployTask.class.php. However i see th

[symfony-users] Re: sfOutputEscaperObjectDecorator with isset() ?

2010-02-04 Thread ken
make sense since ObjectDecorator does not implement Iterator or ArrayAccess. maybe property_exists can do On Feb 4, 5:09 pm, Mark Smith wrote: > That returns a fatal exception: "Call to undefined method > sfOutputEscaperObjectDecorator::offsetExists()" > > The only static methods I can see on

[symfony-users] Best Way to Redirect Old URLs

2010-02-04 Thread Brandon Turner
Hi Symfony Users, I'm in the process of converting a simple website to Symfony and need to make sure old URLs redirect (at least temporarily) to new URLs. For example, we have an old URL: /contactus.php, that will become /contactus.html in Symfony. I'd like to automatically redirect requests to

[symfony-users] Re: [sf1.4] symfony project:deploy dry-run no output

2010-02-04 Thread ev...@freshheads.com
led > > for a fix? Or does it already work, but what's the syntax then? [image: > > Glimlach Emoticon] > > > Thanks! > > > Evert Harmeling > > > __ Information from ESET NOD32 Antivirus, version of virus > > signature database 4835 (20100204) __ >

[symfony-users] Re: CSRF attach with admin generator

2010-02-04 Thread David
Are you by any chance using sfAdminThemejRollerPlugin? I recently noticed a bug in the auto-generated templates for that jRoller admin generator plugin. If you look in _list_batch_actions.php (in your cache, under the module's templates folder), for the standard Symfony admin generator, it create

[symfony-users] URL Trouble

2010-02-04 Thread versanu dragos
Hello, I have a site made with symfony 1.1 and i whant to change it with another site made with 1.2. my proplem is that i whant to change some URL... For example i have a url thath looks like this on my old site: http://www.sejur-extern.ro/Egipt/Sharm-El-Sheikh On my new site it will be: http://w

[symfony-users] Symfony 1.2 and propel trouble

2010-02-04 Thread versanu dragos
Hello, I have a little trouble... I made a web aplication using symfony 1.1 and propel with mysql. I have a database with romanian characters. This is the old good site: http://www.sejur-extern.ro/Egipt/Sharm-El-Sheikh I started from scrach an aplication with symfony 1.2 with the same database, a

Re: [symfony-users] Cache a component

2010-02-04 Thread Eno
On Thu, 4 Feb 2010, HAUSa wrote: > Right now I execute a specific component twice in my layout.php: one > time on top of the document and one time in the footer. > > For the result of the component is an SQL query required. But that > query is being executed twice as well! > > Is it possible to

Re: [symfony-users] Does the Doctrine package concept work?

2010-02-04 Thread Stéphane
AFAIK it works on sf1.4 so I suppose it works on sf1.3 too Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Feb 4, 2010 at 4:14 PM, a...@speedypin.com wrote: > > http://www.doctrine-project.org/documentati

Re: [symfony-users] Does the Doctrine package concept work?

2010-02-04 Thread Thomas Rabaix
not in sf1.2, maybe with sf1.3 and upper but not sure. On Thu, Feb 4, 2010 at 4:14 PM, a...@speedypin.com wrote: > > http://www.doctrine-project.org/documentation/manual/1_0/hu/yaml-schema-files#features-examples:packages > > Does this work? I tried about a year ago and couldnt get it to work, >

Re: [symfony-users] How to create an totally customized admin

2010-02-04 Thread Augusto Flavio
Hi Yang, you said the you need two modules based on the same model class. One for display a graph a other to "i have not idea". But ok. I, in your person, would create just one module and not two. Then i would create 2 actions, one to shows the graph and other to anything. Yes, you need rewrite

[symfony-users] Re: sfSimpleForumPlugin: for Symfony 1.3 & 1.4 (and Doctrine)

2010-02-04 Thread Paul.Degnan
I've been wondering the same thing you have, and I haven't found any evidence of an effort to convert this to Doctrine. I've been planning to do this for a project I'm working on, and naturally I was planning to feed it back into the community once I'd done so. I'm about ready to start work on it.

[symfony-users] database input

2010-02-04 Thread halkapon
I like to add multiple input to an databse column such as category_id includes ids as {1,2,3,4} . Like using a database as an array of ids. I can put them like a string and split it when necessary. But I wonder if it has a better way in symfony. -- You received this message because you are

[symfony-users] ORDER BY insists on using sort_order

2010-02-04 Thread michael hodges
Hello all, I'm new to Symfony. While I've been able to figure things out as I go along, this one is very strange. I had a column named 'sort_order' and used if in the generator.yml to request a sort in the list. Subsequently I removed it from the schema and regenerated everything, including the

[symfony-users] Solved - White Screen of Death / Blank Screen of Death

2010-02-04 Thread Lew
I recently had a WSOD issue on a site that was originally working fine. I'm not sure why but it required that I add the PEAR and Symfony install directories to the open_basedir in my vhost config file. Like this: php_admin_value open_basedir "/var/www/vhosts/mysite.com/httpdocs:/usr/ share/pear:/

[symfony-users] Re: Cache a component

2010-02-04 Thread Florian
If it is the SQL hit which gives you a problem, you could aslo store the result in an instance attribute of your component / model. like this: getResult() { if(!$this->result) { $this->result = ; } return $this->result; On 4 fév, 15:36, HAUSa wrote: > Right now I execute a specific compone

[symfony-users] How to create an totally customized admin

2010-02-04 Thread Dong YANG
Hello everyone, I dived into the forum but I didn't find any similar topic, so I would like to pose my questions here. 1: in my admin, I need [U]two modules[/U] based on [U]the same model class[/U]. Because each module displays different things. How can I do this in the proper way? Should

[symfony-users] problems with sfDataGridPlugin

2010-02-04 Thread Relez
Hello there, I have a problem with sfDataGridPlugin, I need to show a list of data in a table using this plugin but I found this message error then I try to render it: Fatal error: Call to undefined function jq_link_to_remote() in C:\wamp \www\scjc\plugins\sfDatagridPlugin\lib\sfDatagridFormatter.

Re: [symfony-users] Re: Help please! json_encode problem in symfony

2010-02-04 Thread Dong YANG
Hi ScaNNeR, Cool, thanks for your help. Regards, JoJo 2010/2/2 ScaNNeR > For JSON exchange I doing special module 'json' named. > Addition I create "config" folder for "json" module and create > "view.yml" whithout template. > My actions sample: > >public function executeNewCha

[symfony-users] Does the Doctrine package concept work?

2010-02-04 Thread a...@speedypin.com
http://www.doctrine-project.org/documentation/manual/1_0/hu/yaml-schema-files#features-examples:packages Does this work? I tried about a year ago and couldnt get it to work, but now I see it again and could really use this feature. -- You received this message because you are subscribed to the G

[symfony-users] Re: sfWidgetFormChoice and Foreign keys problems!

2010-02-04 Thread wueb
On 4 Fev, 14:52, Tom Ptacnik wrote: > 1 st problem > try to do: > >  protected function doUpdateObject($values) >   { >      print_r($values['id_empresa']); > >      parent::doUpdateObject($values); >   } > Thanks i will try. > 2 nd > I don't understand what are you trying to do. And what doe

[symfony-users] Re: sfWidgetFormChoice and Foreign keys problems!

2010-02-04 Thread wueb
On 4 Fev, 14:52, Tom Ptacnik wrote: > 1 st problem > try to do: > >  protected function doUpdateObject($values) >   { >      print_r($values['id_empresa']); > >      parent::doUpdateObject($values); >   } > Thanks i will try. > 2 nd > I don't understand what are you trying to do. And what doe

[symfony-users] Re: Cache a component

2010-02-04 Thread Phennim
As far as I know; every include_* function is just an echo wrapper of a get_* function. So you could store the result of get_component() in a var and echo it twice. Or enable template caching for the component if that is an option. On Feb 4, 3:36 pm, HAUSa wrote: > Right now I execute a specific

[symfony-users] Re: sfWidgetFormChoice and Foreign keys problems!

2010-02-04 Thread Tom Ptacnik
1 st problem try to do: protected function doUpdateObject($values) { print_r($values['id_empresa']); parent::doUpdateObject($values); } 2 nd I don't understand what are you trying to do. And what does mean "they are both foreign keys from same fields"? Probably you want to do so

Re: [symfony-users] [sf1.4] symfony project:deploy dry-run no output

2010-02-04 Thread Juri Prokofiev
tion, is there a patch around is it scheduled > for a fix? Or does it already work, but what's the syntax then? [image: > Glimlach Emoticon] > > Thanks! > > Evert Harmeling > > > __ Information from ESET NOD32 Antivirus, version of virus > signature

[symfony-users] [sf1.4] symfony project:deploy dry-run no output

2010-02-04 Thread Evert Harmeling | fh
e a thing nor it throws an error? What's the status of this option, is there a patch around is it scheduled for a fix? Or does it already work, but what's the syntax then? Thanks! Evert Harmeling __ Information from ESET NOD32 Antivirus, version of virus signature database

[symfony-users] Cache a component

2010-02-04 Thread HAUSa
Right now I execute a specific component twice in my layout.php: one time on top of the document and one time in the footer. For the result of the component is an SQL query required. But that query is being executed twice as well! Is it possible to cache the result of a component, which will resu

Re: [symfony-users] How to upload a database to the production server with symfony ?

2010-02-04 Thread Gareth McCumskey
You dont need symfony. If you use MySQL: http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html On Wed, Feb 3, 2010 at 12:30 PM, Javier Garcia wrote: > Hi, > > just that. > > Javi > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post

[symfony-users] protection of a field

2010-02-04 Thread l3ia-etu
hi everyone, i've protected a form, setting readonly: if ( ! sfContext::getInstance()->getUser()->hasCredential('x')) { $this->widgetSchema['']- >setAttribute('readonly','readonly'); $this->validatorS

[symfony-users] Re: Date Input Widgets in Symfony 1.2 ... 1.4

2010-02-04 Thread Massimiliano Arione
Yes On 3 Feb, 16:43, Carlos Henrique wrote: > Someone implemented "Input Widgets" in Symfony 1.2 ... 1.4? > > Thanks -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsub

Re: [symfony-users] Images source problem

2010-02-04 Thread Gábor Fási
Try wrapping your image url in a `public_path()` call. On Wed, Feb 3, 2010 at 17:05, wueb wrote: > Hi, i'm getting a problem on the images source. > > > Here: http://localhost/frontend_dev.php/settings - My image works > fine. > > Here: http://localhost/frontend_dev.php/settings/edit - My image >

[symfony-users] Re: Images source problem

2010-02-04 Thread Florian
Hello, The most important thing in this story is : where are you pictures stored relative to your DocumentRoot? For apache, if you call: src="users/avatars/image.jpg" from the url: http://localhost/frontend_dev.php/settings It will search your picture in /settings/users/avatars/ image.jpg wh

[symfony-users] Re: CSRF attach with admin generator

2010-02-04 Thread HAUSa
It is disabled, I test via the dev environment. I also tried to clear the cache several times On 4 feb, 12:56, Tyler wrote: > check cache for your app, is it enabled? > > On 4 фев, 13:52, HAUSa > wrote: > > > For some reason, I _always_ get a CSRF attack error message when I use > > the admin ge

[symfony-users] Re: CSRF attach with admin generator

2010-02-04 Thread Tyler
check cache for your app, is it enabled? On 4 фев, 13:52, HAUSa wrote: > For some reason, I _always_ get a CSRF attack error message when I use > the admin generator and want to execute a batch action. I can't fix it > as well, I don't know where that error is coming from. > Is there anyone who r

[symfony-users] CSRF attach with admin generator

2010-02-04 Thread HAUSa
For some reason, I _always_ get a CSRF attack error message when I use the admin generator and want to execute a batch action. I can't fix it as well, I don't know where that error is coming from. Is there anyone who ran into the same problem or can help me? -- You received this message because y

[symfony-users] Re: i18n - how can I get value from Translation table ?

2010-02-04 Thread mr_question
I think I know: $x->Translation['en']->text $x->Translation['pl']->text On 4 Lut, 10:33, mr_question wrote: > I have: > $x = Doctrine::getTable('Contact')->find($id); > echo $x->getText();  // I want to show text in language = en > echo $x->getText();  // I want to show text in language = pl > >

[symfony-users] Re: Cookies are empty in functional test response

2010-02-04 Thread Tyler
Using symfony 1.4.1 with Doctrine -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. Fo

[symfony-users] Cookies are empty in functional test response

2010-02-04 Thread Tyler
Hello, In functional test: $browser->info('Post a Story page')-> info('Submit a Story')-> // this request forwards to login form get('/story/new')-> with('request')->begin()-> isParameter('module', 'story')-> isParameter('action', 'new')-> end()-> click('sign in', array('signin

[symfony-users] i18n - how can I get value from Translation table ?

2010-02-04 Thread mr_question
I have: $x = Doctrine::getTable('Contact')->find($id); echo $x->getText(); // I want to show text in language = en echo $x->getText(); // I want to show text in language = pl how can I do that ? -- You received this message because you are subscribed to the Google Groups "symfony users" group

Re: [symfony-users] Re: Images source problem

2010-02-04 Thread Sebastian Müller
Hi wueb, is it possible to use a absolute path for your images? BR Seb -- Sebastian Müller http://www.new-mediafactory.de -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To

[symfony-users] Re: Images source problem

2010-02-04 Thread wueb
Nobody knows? :S -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, v

[symfony-users] Re: sfOutputEscaperObjectDecorator with isset() ?

2010-02-04 Thread Mark Smith
That returns a fatal exception: "Call to undefined method sfOutputEscaperObjectDecorator::offsetExists()" The only static methods I can see on that class are: markClassAsSafe($class) markClassesAsSafe(array $classes) isClassMarkedAsSafe($class) unescape($value) escape($escapingMethod, $value)