[symfony-users] Re: Problèmes de connexion lors du déploiement sur un serveur (PDO Connection Error: SQLSTATE[ 28000] [1045] Access denied for user)
Personne n'a une idée ? On May 11, 1:08 pm, François wrote: > Bonjour, > > Pour pouvoir tester la confirmation de créations des membres par > email, j'ai voulu ajouter mon projet sur mon serveur, et comme vous > vous en doutez, ça plante. > > Tout d'abords, aucun problème en local. > > J'ai créé ma base de données via phpMyAdmin sans problèmes, j'ai mis > mes fichiers (je suis en mutualisé) sur le serveur (sauf /cache/ et / > log/), j'ai ajouté min IP à frontend_dev.php et puis, j'ai modifier > mes identifiants de connections dans le fichier databases.yml. > > Lorsque que je me connecte sur dev.monsite.com/frontend_dev.php, > j'obtiens cette erreur : > > PDO Connection Error: SQLSTATE[28000] [1045] Access denied for user > 'monuser'@'ipserveur' (using password: YES) > > J'ai donc essayé de voir si PDO marchait bien : > > try { > $db = new PDO('mysql:host=monhost;dbname=mabase', 'monuser', > 'pass'); > foreach($db->query('SELECT * from sf_guard_group') as $row) { > print_r($row)."/n"; > } > $db = null;} catch (PDOException $e) { > > print "Error!: " . $e->getMessage() . ""; > die();} > > ?> > > Et là, aucun problème. > > J'ai donc modifié mon fichier databases.yml en ligne de commandes, > voilà à quoi il ressemble : > > all: > doctrine: > class: sfDoctrineDatabase > param: > dsn: 'mysql:host=monhost;dbname=mabase' > username: monuser > password: 'pass' > > Il ne semble pas y avoir de problème du tout à cet endroit. Bref je ne > comprend pas, ai-je oublié de modifier un fichier ? > > Je me pose deux questions : > > 1- Dans le livre de la référence de Symfony, il est écrit : > > dsn: mysql:dbname=##PROJECT_NAME##;host=localhost > > Hors, ma base n'a pas le même nom que mon projet (en local si), mais > je doute fort que ça vienne de là. > > 2- Mon host est variable, il est sous cette forme : clX-sqlY (X et Y > étant fourni par l'hébergeur), et lorsque l'erreur apparait, l'ip > affiché (Access denied for user 'monuser'@'ipserveur') est variable. > Là encore, je doute que ça provienne de là mais sait-on jamais. > > Merci. > > -- > 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 subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/symfony-users?hl=en -- 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 subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: sfVideoPlugin
Hello, I see on the flowplayer website http://flowplayer.org/documentation/index.html ( On the bottom ) that any format goes. So that's why i wonder if it can read other format that flv On 11 mai, 18:23, Eno wrote: > On Tue, 11 May 2010, Winnie wrote: > > Does anyone using sfVideoPlugin to embed some video on a website? I > > manage to make the example works with flv, but i can't make it work > > with others formats... > > Its a flash video player, i.e. I think it only plays flash video (FLV). > > Read the README. > > > > > > > So, is there an other plugin to do this? > > How can I embed other video format? > > > This is the code who doesn't work ( in comments this is the good > > code ) > > > //plugins/sfVideoPlugin/modules/sfVideo/templates/indexSuccess.php > > [code] > > > > > > > > > > > > > > file=test.avi') ?> > > > > > > > [/code] > > > //plugins/sfVideoPlugin/modules/sfVideo/templates/localSuccess.php > > [code] > > > > > > > > > > > > > > > > > > > sfVideoPlugin example - powered by Flowplayer > > > View commented source code to get familiar with Flowplayer > > installation. > > > > > > > > style="display:block;width:520px;height:330px" id="player"> > > > > > > > flowplayer("player", " > flowplayer-3.1.5.swf') ?>"); > > > > > > > > > > [/code] > > -- > 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 subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/symfony-users?hl=en -- 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 subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] sfFormLanguage displaying languages in their respective language
Is there a way to display languages using sfFormLanguage, but in their respective language? I mean, instead of this: English, French, Spanish I want this: English, Français, Español -- 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 subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Jobeet tutorial | Day 3 | doctrine:insert-sql
Hi Graham Thanks for your response. I have followed all the instructions to the letter; my config/databases.yml file looks like this: all: doctrine: class: sfDoctrineDatabase param: dsn: 'mysql:host=localhost;dbname:jobeet' username: root password: secret I appreciate your help in trying to sort this out! Is there anything else I could check? Kind regards Kim On 11/5/10 17:37, "grahamj42" wrote: > Did you follow the instructions under the subtitle "The Database" to > create the schema and configure Symfony's config/databases.yml file > with appropriate values for your database server? It looks to me as if > this step failed. Symfony doesn't touch the database until the > doctrine:insert-sql task. > > -- > 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 subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > This communication is from Cancer Research UK. Our website is at www.cancerresearchuk.org. We are a charity registered under number 1089464 and a company limited by guarantee registered in England & Wales under number 4325234. Our registered address is 61 Lincoln's Inn Fields, London WC2A 3PX. Our central telephone number is 020 7242 0200. This communication and any attachments contain information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of disclosure, distribution, copying or use of this communication or the information in it or in any attachments is strictly prohibited and may be unlawful. If you have received this communication in error, please notify the sender and delete the email and destroy any copies of it. E-mail communications cannot be guaranteed to be secure or error free, as information could be intercepted, corrupted, amended, lost, destroyed, arrive late or incomplete, or contain viruses. We do not accept liability for any such matters or their consequences. Anyone who communicates with us by e-mail is taken to accept the risks in doing so. -- 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 subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin with sfWidgetFormDoctrineJQueryAutocompleter (sfFormExtraPlugin)
Hello, I'm using the ahDoctrineEasyEmbeddedRelationsPlugin to embed and clone forms but there is a problem with some fields : if there is a "blabla" element, this element is not cloned and the javascript event obviously doesn't work. These problematic fields are using the sfWidgetFormDoctrineJQueryAutocompleter provided by sfFormExtraPlugin to be displayed as text fields with ajax autocompletion instead of combo boxes. I'm using jquery-1.4.2 so the clone() method in ahDoctrineEasyEmbeddedRelationsPlugin.jQuery.js should work but no. For example, I have projects which can have one or many contacts. Here's an excerpt of my /lib/form/doctrine/ProjetForm.class.php : class ProjetForm extends BaseProjetForm { public function configure() { $this->embedRelations(array( 'Contacts' => array( 'considerNewFormEmptyFields'=> array('personne_id'), 'noNewForm' => false, 'newFormLabel' => 'Nouveau contact', 'newFormClass' => 'ContactForm', 'newFormClassArgs'=> array(array('sf_user' => $this->getOption('sf_user'))), 'displayEmptyRelations' => false, 'formClass' => 'ContactForm', 'formClassArgs' => array(array('ah_add_delete_checkbox' => false)), 'newFormAfterExistingRelations' => true, 'formFormatter'=> null, 'multipleNewForms' => true, 'newFormsInitialCount' => 1, 'newFormsContainerForm'=> null, // pass BaseForm object here or we will create ahNewRelationsContainerForm 'newRelationButtonLabel' => '+', 'newRelationAddByCloning' => false, // I tried with true and false, no difference 'newRelationUseJSFramework' => 'jQuery' ), )); } } Here's an excerpt of my /lib/form/doctrine/ContactForm.class.php : class ContactForm extends BaseContactForm { public function configure() { $this->widgetSchema['projet_id']->setOption('renderer_class', 'sfWidgetFormJQueryAutocompleter'); $this->widgetSchema['projet_id']->setOption('renderer_options', array( 'value_callback' => array($this, 'getNomProjetClient'), 'url' => sfContext::getInstance()->getController()->genUrl('projet/ajax'), )); } } Is there somebody which could help me, please ? Thanks. Luc Didry -- 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 subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] urgen_send_mail
hello every body please help me i make this code public function executeCreate(sfWebRequest $request) { $this -> formpersonne= new PersonneForm(); $this->form = $this->configuration->getForm($this->personne); $head = "From: Admin <.$email_admin.>\n"; $mail = $this->formpersonne['Email']->getValue(); $object = 'inscription reussite'; $message='je vous informe que vous êtes inscrit dans votre association'; mail($mail, $object, $message, $head); } in order to send mail to perssone with i revover it from form i work in the backend but i have this error 500 | Internal Server Error | sfRenderException The template "createSuccess.php" does not exist or is unreadable in "". im blockend and i must resolve this problem i will be grateful thank you -- 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 subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Question about choice widget
What about something like ul.radio_list li {display: inline} On 10 kvě, 15:41, Javier Garcia wrote: > On Mar 29, 3:09 pm, Massimiliano Arione wrote: > > > You jsut need to customize your css, forcing your li's as inline. > > No need to modify your template or your formatter. > > I'd like to force the li's as inline as you say, but the generated > li's don't have the 'id' attribute defined. > > For example, this line renderLabel() ?> li> > > generates this: > > > > Sexo > > > > > > name="usuario[sexo]"> Chico > > > > > > name="usuario[sexo]"> Chica > > > > > > > > Javi > > -- > > Symfony 1.3 > > -- > 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 subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/symfony-users?hl=en -- 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 subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Search field problem
It looks like you don't use a Symfony forms stuff .. form class? I think the problem is somewhere in the processing the form, so the template part woun't help us. How is your form processed? On 11 kvě, 02:00, Greg Blackett wrote: > Dear users, > I am experience an issue with a search field. Whenever an '.' is place > in the search field, I am sent the 404 page. Any other type of > symbols no problem. > > Here's the code for the search field: > > "" > > Any input would be greatly appreciated. > > Greg > > -- > 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 subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/symfony-users?hl=en -- 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 subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin with sfWidgetFormDoctrineJQueryAutocompleter (sfFormExtraPlugin)
That's a tough case for sure. I'm the plugin developer although the jQuery integration wasn't provided by me. What exactly is not working? I know that we have problems when trying to embed forms that contain select boxes. What error is thrown? You'd have to give me more information. Thing is, I'm in the middle of my diploma thesis so there is probably not much I can do for you now. Cheers, Daniel Sent from my iPhone On May 12, 2010, at 11:20 AM, Luc Didry wrote: Hello, I'm using the ahDoctrineEasyEmbeddedRelationsPlugin to embed and clone forms but there is a problem with some fields : if there is a "blabla" element, this element is not cloned and the javascript event obviously doesn't work. These problematic fields are using the sfWidgetFormDoctrineJQueryAutocompleter provided by sfFormExtraPlugin to be displayed as text fields with ajax autocompletion instead of combo boxes. I'm using jquery-1.4.2 so the clone() method in ahDoctrineEasyEmbeddedRelationsPlugin.jQuery.js should work but no. For example, I have projects which can have one or many contacts. Here's an excerpt of my /lib/form/doctrine/ProjetForm.class.php : class ProjetForm extends BaseProjetForm { public function configure() { $this->embedRelations(array( 'Contacts' => array( 'considerNewFormEmptyFields'=> array('personne_id'), 'noNewForm' => false, 'newFormLabel' => 'Nouveau contact', 'newFormClass' => 'ContactForm', 'newFormClassArgs'=> array(array('sf_user' => $this->getOption('sf_user'))), 'displayEmptyRelations' => false, 'formClass' => 'ContactForm', 'formClassArgs' => array(array('ah_add_delete_checkbox' => false)), 'newFormAfterExistingRelations' => true, 'formFormatter'=> null, 'multipleNewForms' => true, 'newFormsInitialCount' => 1, 'newFormsContainerForm'=> null, // pass BaseForm object here or we will create ahNewRelationsContainerForm 'newRelationButtonLabel' => '+', 'newRelationAddByCloning' => false, // I tried with true and false, no difference 'newRelationUseJSFramework' => 'jQuery' ), )); } } Here's an excerpt of my /lib/form/doctrine/ContactForm.class.php : class ContactForm extends BaseContactForm { public function configure() { $this->widgetSchema['projet_id']->setOption('renderer_class', 'sfWidgetFormJQueryAutocompleter'); $this->widgetSchema['projet_id']->setOption('renderer_options', array( 'value_callback' => array($this, 'getNomProjetClient'), 'url' => sfContext::getInstance()->getController()->genUrl ('projet/ajax'), )); } } Is there somebody which could help me, please ? Thanks. Luc Didry -- 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 subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- 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 subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Alternate layout and a tables doubt (2 doubts in one mail!)
It's only about css ... give them float: left On 11 kvě, 06:44, Parijat Kalia wrote: > Thanks Eno! > Any clue about the tables doubt? > > > > > > On Mon, May 10, 2010 at 8:58 PM, Eno wrote: > > On Mon, 10 May 2010, Parijat Kalia wrote: > > > > Hey everyone, > > > > Doubt 1: Symfony layout > > > > So typically, if you need an alternate layout for a page, you simply go > > into > > > the view.yml and specify which pages have an alternate layout page. > > > > What if I need to specify another layout for all pages in a single > > module? I > > > don't wanna have to specify the separate layout for each single page, > > but > > > it would help if I could specify it for an entire module. > > > You can define a view.yml at the module level. > > >http://www.symfony-project.org/reference/1_4/en/03-Configuration-File... > > > -- > > > -- > > 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 subscribed to the Google > > Groups "symfony users" group. > > To post to this group, send email to symfony-users@googlegroups.com > > To unsubscribe from this group, send email to > > symfony-users+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/symfony-users?hl=en > > -- > 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 subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/symfony-users?hl=en -- 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 subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Question about filter forms: search for exact words
Check if the query is correctly created.. maybe I write it down badly. Try to change the line with the query to $query->andWhere($query->getRootAlias().'.'.$fieldName.' LIKE ?', $value); and then if it's still not ok try to look what echo $query- >getSqlQuery();die; will show you... On 11 kvě, 10:10, Javier Garcia wrote: > Thanks Tom, but after writing the function you say > (addProvinciaColumnQuery()) and clicking on the Filter button I get > this error : > > 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception > SQLSTATE[HY093]: Invalid parameter number: parameter was not defined > stack trace > > * at () > in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/ > lib/vendor/doctrine/Doctrine/Connection.php line 1082 ... > 1079. $message .= sprintf('. Failing Query: > "%s"', $query); > 1080. } > 1081. > 1082. $exc = new $name($message, (int) $e->getCode()); > > 1083. if ( ! isset($e->errorInfo) || ! > is_array($e->errorInfo)) { > > 1084. $e->errorInfo = array(null, null, null, > null); > 1085. } > * at Doctrine_Connection->rethrowException(object('PDOException'), > object('Doctrine_Connection_Statement')) > in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/ > lib/vendor/doctrine/Doctrine/Connection/Statement.php line 269 ... > 266. } catch (Doctrine_Adapter_Exception $e) { > 267. } > 268. > 269. $this->_conn->rethrowException($e, $this); > 270. > 271. return false; > 272. } > * at Doctrine_Connection_Statement->execute(array('text' => '')) > in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/ > lib/vendor/doctrine/Doctrine/Connection.php line 1006 ... > 1003. try { > 1004. if ( ! empty($params)) { > 1005. $stmt = $this->prepare($query); > 1006. $stmt->execute($params); > 1007. > 1008. return $stmt; > 1009. } else { > * at Doctrine_Connection->execute('SELECT COUNT(*) AS num_results > FROM sf_guard_user s WHERE s.provincia = ?', array('text' => '')) > in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/ > lib/vendor/doctrine/Doctrine/Connection.php line 800 ... > 797. */ > 798. public function fetchAll($statement, array > $params = array()) > 799. { > 800. return $this->execute($statement, > $params)->fetchAll(Doctrine_Core::FETCH_ASSOC); > > 801. } > 802. > 803. /** > * at Doctrine_Connection->fetchAll('SELECT COUNT(*) AS num_results > FROM sf_guard_user s WHERE s.provincia = ?', array('text' => '')) > in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/ > lib/vendor/doctrine/Doctrine/Query.php line 2123 ... > 2120. $results = unserialize($cached); > 2121. } > 2122. } else { > 2123. $results = $this->getConnection()->fetchAll($q, > $params); > > 2124. } > 2125. > 2126. if (count($results) > 1) { > * at Doctrine_Query->count() > in SF_ROOT_DIR/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/ > lib/pager/sfDoctrinePager.class.php line 101 ... > 98. $this->resetIterator(); > 99. > 100. $countQuery = $this->getCountQuery(); > 101. $count = $countQuery->count(); > 102. > 103. $this->setNbResults($count); > 104. > * at sfDoctrinePager->init() > in SF_ROOT_DIR/apps/frontend/modules/miembros/actions/ > actions.class.php line 104 ... > 101. $this->pager = new sfDoctrinePager( 'Usuario', > 3 ); // Table, items per page > 102. $this->pager->setQuery( $this->lista_miembros ); // > items query > > 103. > $this->pager->setPage($this->getRequestParameter('page', 1)); // actual page > > 104. $this->pager->init(); > 105. > 106. // Extraemos los ID de los miembros que son > amigos del usuario. > 107. $this->amigos = > UsuarioTable::getAmigos($this->getUser()->getGuardUser()->getId())->execute(); > > * at miembrosActions->executeIndex(object('sfWebRequest')) > in SF_ROOT_DIR/lib/vendor/symfony/lib/action/sfActions.class.php > line 60 ... > 57. } > 58. > 59. // run action > 60. return $this->$actionToRun($request); > 61. } > 62. } > 63. > * at sfActions->execut
[symfony-users] Re: Missing parent::configure() in built form filter
If you want to modify the class in the plugin folder. Insert the line //$this->widgetSchema['zone_id']->setOption( 'with_empty', false );// into the setup() method. Then you don't need to call parent::configure() in the class in which is in the lib/filter/ doctrine/ptEquipmentPlugin On 11 kvě, 14:14, Olivier Scherler wrote: > Hello everybody, > > I have a model ptEquipment defined in a plugin ptEquipmentPlugin, and > I created a module with doctrine:generate-admin. Now I would like to > customise the form filter to remove the ‘is empty’ check box from a > field. So I add: > > public function configure() > { > $this->widgetSchema['zone_id']->setOption( 'with_empty', false ); > } > > to class PluginptEquipmentFormFilter in plugins/ptEquipmentPlugin/lib/ > filter/doctrine. > > However, it does not work. > > I tracked the reason down to this: there is an automatically generated > class ptEquipmentFormFilter in lib/filter/doctrine/ptEquipmentPlugin, > that extends PluginptEquipmentFormFilter, with an empty configure() > method. If I add parent::configure() there, it works. I don't want to > do that, though, because it would mean that I must do it everytime I > install the plugin. > > I have another plugin where I did the same thing, but my model > inherits from sfGuardUser using Doctrine simple inheritance, and > there, the parent::configure() is present when I build the filters. > > I'm wondering if I'm doing something wrong, if I'm missing something > or if it is a bug. Any idea? > > Thanks, > > Olivier > > -- > 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 subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/symfony-users?hl=en -- 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 subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] urgen_send_mail
Hi, symfony is asking for a template relative to the create action. Usually, you don't have such template, so you should (optionally): - redirect the user with $this->redirect('new-url'); - change the template after the action is executed with $this->setTemplate('new'); - create the createSuccess.php template. I also suggest to use the swift_mailer: http://www.symfony-project.org/more-with-symfony/1_4/en/04-Emails Hope this helps, Pietro hello every body please help me i make this code public function executeCreate(sfWebRequest $request) { $this -> formpersonne= new PersonneForm(); $this->form = $this->configuration->getForm($this->personne); $head = "From: Admin<.$email_admin.>\n"; $mail = $this->formpersonne['Email']->getValue(); $object = 'inscription reussite'; $message='je vous informe que vous êtes inscrit dans votre association'; mail($mail, $object, $message, $head); } in order to send mail to perssone with i revover it from form i work in the backend but i have this error 500 | Internal Server Error | sfRenderException The template "createSuccess.php" does not exist or is unreadable in "". im blockend and i must resolve this problem i will be grateful thank you -- 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 subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] urgen_send_mail
thank you i test it and i will reply you -- 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 subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin with sfWidgetFormDoctrineJQueryAutocompleter (sfFormExtraPlugin)
Hello Daniel, thanks for your quick answer. Here's the form I want to clone (well, just an excerpt of course) : 1 Personne* jQuery(document).ready(function() { jQuery("#autocomplete_projet_new_Contacts_0_personne_id") .autocomplete('/frontend_dev.php/personne/ajax', jQuery.extend({}, { dataType: 'json', parse:function(data) { var parsed = []; for (key in data) { parsed[parsed.length] = { data: [ data[key], key ], value: data[key], result: data[key] }; } return parsed; } }, { })) .result(function(event, data) { jQuery("#projet_new_Contacts_0_personne_id").val(data[1]); }); }); And that's the cloned form I got when I push the "ahAddRelation" button : 2 Personne* Unfortunately, nor Firebug nor Webdeveloper reports error. After some tests, it seems that the insertAfter($row) delete the element while the clone() method clone it with the rest of the code. With these tests I saw that's more a jQuery issue than your plugin's issue, but if you or the person who made the jQuery integration have an idea, I would be very grateful. Thanks for your time and courage for you thesis. Luc Didry 2010/5/12 Daniel Lohse: > That's a tough case for sure. I'm the plugin developer although the jQuery > integration wasn't provided by me. > > What exactly is not working? I know that we have problems when trying to > embed forms that contain select boxes. > > What error is thrown? You'd have to give me more information. Thing is, I'm > in the middle of my diploma thesis so there is probably not much I can do > for you now. > > Cheers, Daniel > > Sent from my iPhone > > On May 12, 2010, at 11:20 AM, Luc Didry wrote: > >> Hello, >> >> I'm using the ahDoctrineEasyEmbeddedRelationsPlugin to embed and clone >> forms but there is a problem with some fields : if there is a >> "