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

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

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] 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. To

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

[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 lolekzbol...@gmail.com 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

[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

[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 jeroen_heeft_behoefte_aan_r...@hotmail.com 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

[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 tyler.gr...@gmail.com wrote: check cache for your app, is it enabled? On 4 фев, 13:52, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: For some reason, I _always_

[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 DocumentRoot/settings/users/avatars/

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 webmaster@gmail.com wrote: Hi, i'm getting a problem on the images source. Here: http://localhost/frontend_dev.php/settings - My image works fine. Here:

[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 chasi...@gmail.com 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-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');

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

2010-02-04 Thread Juri Prokofiev
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) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com -- You

[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

[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

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

2010-02-04 Thread wueb
On 4 Fev, 14:52, Tom Ptacnik to...@tomor.cz 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

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

2010-02-04 Thread wueb
On 4 Fev, 14:52, Tom Ptacnik to...@tomor.cz 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

[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

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 scanne...@gmail.com 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

[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

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

[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 = your resultSet; } return $this-result; On 4 fév, 15:36, HAUSa

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

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

[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

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

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 a...@speedypin.comwrote: 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

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 a...@speedypin.comwrote:

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 cache

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

[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

[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

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

[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

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

[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