Re: [symfony-users] images no appears

2010-10-04 Thread Jérémie
http://www.symfony-project.org/api/1_4/AssetHelper#method_image_tag http://www.symfony-project.org/gentle-introduction/1_4/en/09-Links-and-the-Routing-System The sf documentation is great. Le lundi 04 octobre 2010 à 11:19 +0200, ahmed shehata a écrit : thank you but how can i do that my

Re: [symfony-users] images no appears

2010-10-04 Thread Gareth McCumskey
instead of a full image tag like img src=. / use the image_tag helper: ?php echo image_tag('name_of_image.gif') ? On Mon, Oct 4, 2010 at 11:19 AM, ahmed shehata a7med.she7...@gmail.comwrote: thank you but how can i do that my images located in web/images 2010/10/4 Gábor Fási

[symfony-users] sfDoctrineMasterSlavePlugin help

2010-10-04 Thread symfonyfan
Hello Allo, I'm having strange problem while using sfDoctrineMasterSlavePlugin with I18N tables. In schema.yml Category: tableName: category actAs: I18n: fields: [name] length: 5 columns: name: type: string(255) notnull: true In databases.yml all:

Re: [symfony-users] Changing default html code associated with form widget

2010-10-04 Thread Gareth McCumskey
How do you currently render your form? You can call each part of a widget separately and wrap into whatever HTML you prefer. $form['widget_name']-renderError(); //Renders errors if any $form['widget_name']-renderLabel(); // Render the field label $form['widget_name']-render(); //Renders the

Re: [symfony-users] How to Have Core and Advanced Versions with Symfony

2010-10-04 Thread Gareth McCumskey
Instead of worrying about having two different application VERSIONS why not have two different types of USERS. So you have user1 that is allocated to Core and user 2 that is allocated to Advanced. You can then use symfony's built in session management to limit access to Advanced features if a Core

Re: [symfony-users] images no appears

2010-10-04 Thread Gábor Fási
Instead of hardcoding the urls, use the `image_path()` helper, example: `image_path('icon-home.gif')`. 2010/10/3 ahmed shehata a7med.she7...@gmail.com: hi all i am a new SF student and i am developping a sample app there is a problem when i try to to show the page the problem is that images

Re: [symfony-users] images no appears

2010-10-04 Thread ahmed shehata
thank you but how can i do that my images located in web/images 2010/10/4 Gábor Fási maerl...@gmail.com Instead of hardcoding the urls, use the `image_path()` helper, example: `image_path('icon-home.gif')`. 2010/10/3 ahmed shehata a7med.she7...@gmail.com: hi all i am a new SF student and

[symfony-users] Propel route: new object with foreign key (sf 1.3.7)

2010-10-04 Thread Christian Hoffart
Hi, if want to create new object throught propel route. eg: link_to(add refurbishment, '@offer_refurbishment_new') the new offer_refurbishment object has a referenced offer object (foreign key offer_id). in the new (edit) form there is a hidden field with name offer_id. how can a set this

[symfony-users] Custom Forms (sfWidgetFormDoctrineChoice)

2010-10-04 Thread Pavel Pecheny
I have defaulf form configuration .. 'contractor_id' = new sfWidgetFormDoctrineChoice(array('model' = $this-getRelatedModelName('contractor'), 'add_empty' = false)), . but the query must vary depending on credentials for example: where contractor_id = 3 what option should I use for it

Re: [symfony-users] Custom Forms (sfWidgetFormDoctrineChoice)

2010-10-04 Thread Pavel Pecheny
Problem solved) 2010/10/4 Pavel Pecheny ppech...@gmail.com I have defaulf form configuration .. 'contractor_id' = new sfWidgetFormDoctrineChoice(array('model' = $this-getRelatedModelName('contractor'), 'add_empty' = false)), . but the query must vary depending on credentials for

[symfony-users] Re: Propel route: new object with foreign key (sf 1.3.7)

2010-10-04 Thread Richtermeister
In the new action for the related object, just stick that ID into the object or set it as default for the form. $object = new Whatever(); $object - setRelatedId($request - getParameter(offer_id)); $form = new WhateverForm($object); //OR $form = new WhateverForm(new Whatever()); $form -

Re: [symfony-users] Re: Propel route: new object with foreign key (sf 1.3.7)

2010-10-04 Thread Christian
So, i have to create a new route and modify the executeNew action? Is there no way to use the default @offer_refurbishment_new route? Am 04.10.2010 18:27, schrieb Richtermeister: In the new action for the related object, just stick that ID into the object or set it as default for the form.

[symfony-users] Symfony2: Mixing YML and XML configuration

2010-10-04 Thread bkuberek
Hi all! I was hoping to get a dummy question answered. I have set my Kernel.php to load .yml files but some of the bundles, including DoctrineUserBundle, uses XML files. How can I make use of both YML and XML config files? Thanks -- If you want to report a vulnerability issue on symfony,

Re: [symfony-users] Symfony2: Mixing YML and XML configuration

2010-10-04 Thread Fabien Potencier
Just import the XML resource from a YAML one or the other way around. It works natively. Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 On 10/4/10 8:24 PM, bkuberek wrote: Hi all! I was hoping

[symfony-users] Telling sfCache to not cache failed queries

2010-10-04 Thread catchamonkey
Hi, I have a bunch of components that get their data from external web services. I have caching configured on the components. If the API call returns no data (due to an error externally, or latency or anything else) I want the response to not be cached, otherwise the cached component then

[symfony-users] Re: Symfony2: Mixing YML and XML configuration

2010-10-04 Thread bkuberek
Thanks Fabien On Oct 4, 2:47 pm, Fabien Potencier fabien.potenc...@symfony- project.com wrote: Just import the XML resource from a YAML one or the other way around. It works natively. Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org |

[symfony-users] Edit form data does not update

2010-10-04 Thread Social It
My edit form does not update when I make changes to it. I have to wait a couple of seconds and hit refresh. Same with a page that queries the database and shows the records. The table is updated in mysql, but the form shows the old value. public function executeEdit(sfWebRequest $request) {

[symfony-users] how create empty module

2010-10-04 Thread Martin Ibarra Cervantes
Hi, i need a empty module on my application but when try this m...@sopias ~/code/Projects/php/retratos/trunk $ ./symfony doctrine:generate-module public feed display this error symfony doctrine:generate-module [--theme=...] [--generate-in-cache] [--non-verbose-templates] [--with-show]

Re: [symfony-users] how create empty module

2010-10-04 Thread Jérémie
Le lundi 04 octobre 2010 à 13:34 -0700, Martin Ibarra Cervantes a écrit : symfony doctrine:generate-module [--theme=...] [--generate-in-cache] [--non-verbose-templates] [--with-show] [--singular=...] [--plural=...] [--route-prefix=...] [--with-doctrine-route] [--env=...]

[symfony-users] Question about a propel query

2010-10-04 Thread Javier GARCIA
Hi, I have this query inside a method: public static function pincopalla(){ $con = Propel::getConnection(SediI18nPeer::DATABASE_NAME); $sql = select * from sedii18n where culture = :country UNION select * from sedii18n where culture :country;

[symfony-users] problems with installing tjSolrDoctrineBehaviorPlugin

2010-10-04 Thread Maras
I want to use tjSolrDoctrineBehaviorPlugin, but I've got some problem. How should I configure my solr when I use Ubuntu system?? In documentation it only tells how set up tjSolrDoctrineBehaviorPlugin on debian. Where should I edit this line PROJECT_NAME=mysfproject ?? -- If you want to report a

Re: [symfony-users] how create empty module

2010-10-04 Thread Martin Ibarra Cervantes
hi, thanks Jérémie but the error is because i use doctrine:generate-module. i read the documentation symfony generate:module aplication module is only generate:module and not doctrine:generate-module thanks for you time. On Mon, Oct 4, 2010 at 1:47 PM, Jérémie jeremie.symf...@gmail.com

Re: [symfony-users] Doctrine left join without relation

2010-10-04 Thread Cipher Chien 簡名駿
Hi, I have the same problem in few hours ago, this is my solution example, hope it can help you. $q = Doctrine_Query::create() -from('Tagging tg, tg.Tag t') -select('tg.taggable_id') -whereIn(tg.taggable_id,