Re: [symfony-users] Fermeture de site pour MEP
Oui j'y ai pensé. J'ai d'ailleurs configurer mon fichier setting.yml de mon application avec l'attribut check_lock: on et vider le cache. Malgré cela, j'ai toujours accès à mon site... Merci, Eric. Le 20 janvier 2010 18:16, Tugdual SAUNIER tucks...@gmail.com a écrit : Bonsoir, Avez vous pensé à : ./symfony project:disable frontend prod ? Tugdual SAUNIER Le 20 janvier 2010 11:11, Eric Catinat ecati...@gmail.com a écrit : Bonjour, Je cherche un moyen de fermer un site pendant une mise en prod. Est-ce possible en ajoutant directement une commande dans setting.yml ou routing.yml de rediriger vers une page fixe ? Merci d'avance, Eric. -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: Converting Word document to Html
Just remember that any view template in symfony that you need to display is inserted into your layout.php file where the line ?php echo $sf_content ? is situated. This means that if the converted file that you are trying to use as a symfony view template still contains all the html/html, head/head,body/body etc tags it will cause issues as well. Pretty much you need to delete all content above and including body and below and including /body. On Thu, Jan 21, 2010 at 9:37 AM, DEEPAK BHATIA toreachdee...@gmail.com wrote: Any suggestions/guesses...:-) On Wed, Jan 20, 2010 at 4:10 PM, DEEPAK BHATIA toreachdee...@gmail.com wrote: Hi, I have converted a Microsoft Word Document into the html page. http://localhost/test.htm http://localhost/test.php But when I open this using module/action in the symfony, some junk characters come in place of bullets. Please help in this regard. Regards Deepak Bhatia On Wed, Jan 20, 2010 at 3:05 PM, DEEPAK BHATIA toreachdee...@gmail.com wrote: Hi, If I open this file as html, this appears fine. But if change the extension to .php means test.php. Then open using as template in symfony, some junk characters come. Please help me in resolving this. Regards Deepak -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] How to call a customer validator depends on default validator result
Hi Sheraz, Thanks for your advise, it is helpful!! In my situation, the second validator is custom one, so I have to redefine the call as you proposed. Ok, thank you again. JoJo 2010/1/20 Sheraz Sharif sharif.she...@gmail.com Maybe you can use the sfValidatorAnd? http://www.symfony-project.org/forms/1_4/en/B-Validators#chapter_b_sub_sfvalidatorand On Wed, Jan 20, 2010 at 10:39 AM, jojo jojoyangd...@gmail.com wrote: Hello everybody, I would like to ask my customer validator when the default one returns true (so no call if default one returns false) For example: //The default validator: $this-validatorSchema['link'] = new sfValidatorUrl(); //I added customer validator: $this-validatorSchema-setPostValidator( new sfValidatorCallback(array('callback' = array($this, 'checkLink'))) ); // Customer validator definition public function checkLink($validator, $values){ // some code here } What I would like to do is that if default validator returns false, I wont call my customer validator. Can anyone help me? Thanks a lot. JoJo -- 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.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Sheraz Sharif sharif.she...@gmail.com http://sherazsharif.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] sfPropelParanoidBehaviorPlugin not available any more?
Hello migrating my project to 1.3 / 1.4, I just noticed sfPropelParanoidBehaviorPlugin is not working any more. I tried re-installing with symfony plugin:install sfPropelParanoidBehaviorPlugin but I get the error message No release available for plugin sfPropelParanoidBehaviorPlugin symfony-project.org says the plugin is stable and compatible with versions 1.0 thru 1.4. Anyone know what the problem ist? Anyone using this plugin with 1.3 / 1.4? regards Stefan -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Applying Filter to JS/CSS for CDN support
Hi Dan, I do something similar but I didn't go through the filter route. By overwriting the _compute_public_path() in AssetHelper.php you can achieve the same: just declare the cdn hostname in your app.yml (leave blank for dev) and prepend that to the urls in that function. Cheers, PM dancablam wrote: I'm trying to create a filter that, if in the production environment, prepend http://my.cdn.net to all JavaScripts and StyleSheets and add mtime to the file. Therefore: /css/main.css would become http://my.cdn.net/css/main.1234567.css It seems no matter where in the filter chain I add my filter it's either too early and all the JS/CSS aren't included or too late and the response has already been sent. Can anyone think of a way to do this in the filter chain? This is what I have: public function execute($filterChain) { if($this-isFirstCall() sfConfig::get('sf_environment') == prod) { $response = $this-context-getResponse(); foreach ($response-getJavascripts() as $js = $opt) { $response-removeJavascript($js); $response-addJavascript(sfConfig::get('app_cdn') . 'js/' . ltrim($js, '/'), '', $opt); } } $filterChain-execute(); } I'm not sure at what point in the chain the scripts are added but it seems no matter where I place my filter either no scripts are added yet, or the response has already been sent. Any suggestions would be greatly appreciated. Cheers, Dan -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Pan and Zoom Javascript Library for Images
Hi, I want to give the functionality of pan and zoom of gif images. Do we have specific plugin available for the same in the Symfony ? Regards Deepak Bhatia -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Complex conditional validation, symfony 1.3/4
Hi there, I have a rather complicated form of 50+ fields. The value of one of the first fields dictates whether validation should be performed on approximately half of the fields or not. These fields all need to be validated using native Symfony validators. As directed by the documentation I suspected that this is a time for a post-validator. However, it isn't clear to me how I go about using native Symfony validators within a post-validator, infact I'm pretty sure it won't work having run a simple test. I'm also wondering whether a custom validator schema might be the answer, but I can't quite see how (I've read the advanced forms page). The solution I've arrived at is a custom bind() method that calls a configureValidation() method, passing it the $taintedValues array. This configureValidation() method then defines the validators according to the submitted data and it works nicely. My main question is, would you regard this solution as a bit hacky - could there be a more elegant way of doing this? Thanks John -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: static Symfony content
Hello, you could hav a look at http://www.symfony-project.org/plugins/sfSuperCachePlugin/1_1_0?tab=plugin_readme On 20 jan, 19:40, Dennis gear...@sbcglobal.net wrote: Has anyone set up a .htaccess file to look for any static content matching the request ending in .html | .json | .xml combined before redirecting to the Symfony engine? I'm thinking it would be a whole lot faster. Doesn't the stock .htaccess file from symfony already do that for .html files? -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: sfPropelParanoidBehaviorPlugin not available any more?
You can use the new propel behaviors: soft_delete behavior replaces sfPropelParanoidBehaviorPlugin On 21 Gen, 11:04, Stefan Paschke symfony.pasc...@gmail.com wrote: Hello migrating my project to 1.3 / 1.4, I just noticed sfPropelParanoidBehaviorPlugin is not working any more. I tried re-installing with symfony plugin:install sfPropelParanoidBehaviorPlugin but I get the error message No release available for plugin sfPropelParanoidBehaviorPlugin symfony-project.org says the plugin is stable and compatible with versions 1.0 thru 1.4. Anyone know what the problem ist? Anyone using this plugin with 1.3 / 1.4? regards Stefan -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Class not found for GeneratorConfiguration
Well, I fixed it, but it seems to be an error. In /cache/backend/dev/config/config_autoload.yml.php the following entries are missing. Setting them manually does the trick: 'BaseSeoBacklinkContactPersonGeneratorConfiguration' = 'E:/Workspaces/ Eclipse/udw_v3/udw_v3/cache/backend/dev/modules/ autoSeoBacklinkContactPerson/lib/ BaseSeoBacklinkContactPersonGeneratorConfiguration.class.php', 'BaseSeoBacklinkContactPersonGeneratorHelper' = 'E:/Workspaces/ Eclipse/udw_v3/udw_v3/cache/backend/dev/modules/ autoSeoBacklinkContactPerson/lib/ BaseSeoBacklinkContactPersonGeneratorHelper.class.php', But in my eyes, that's an error! Every clear cache command will reset these changes :-( A ticket is now to be found here: http://trac.symfony-project.org/ticket/8155 . Eddie -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] using SwiftMailer on multiple SMTP server
using symfony version 1.4.2-DEV Propel for database access I am writing a site that manages my personal data. On the site, I need to send emails from different accounts. ex. 1. a...@dfg.local 2. h...@klm.local 3. n...@qrs.local When I looked at factories.yml and also http://www.symfony-project.org/jobeet/1_4/Doctrine/en/, I couldn't figure out how to set up multiple transports (SMTP server info.) I searched this group and found a thread below http://groups.google.com/group/symfony-users/browse_thread/thread/9308ce66846ebb87/1d02184b3fdddf7c?hl=enlnk=gstq=multiple+swift#1d02184b3fdddf7c so I think at this point, there is no way to use factories.yml to set up multiple SMTP accounts and choose an appropriate Mailer (ex. $this-getMailer() in an Action class) to send messages from. I am now thinking to override Swift_PropelSpool OR Swift_ConfigurableSpool to build my own email spooler, but if there is anyone who had the same problem and has already built something to accomplish, I would like to know the smart ways to archive it, and possibly avoid the reinvent the wheel 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 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] Doctrine + PostGreSQL
Can someone please help me? I have a database with schema main that include a table User. I get this exception when inserting an entry into table User. Doctrine_Sequence_Exception on demand sequence main.User_Id_seq could not be created at () in SF_SYMFONY_LIB_DIR\plugins\sfDoctrinePlugin\lib\vendor\doctrine \Doctrine\Sequence\Pgsql.php line 56 ... Here's my Doctrine schema.yml User: tableName: User columns: id: type: integer(4) primary: true sequence: 'main.User_Id_seq' name: type: string(32) notnull: true This is the generated model class. abstract class BaseUser extends sfDoctrineRecord { public function setTableDefinition() { $this-setTableName('User'); $this-hasColumn('id', 'integer', 4, array( 'type' = 'integer', 'primary' = true, 'sequence' = 'main.User_Id_seq', 'length' = '4', )); $this-hasColumn('name', 'string', 32, array( 'type' = 'string', 'notnull' = true, 'length' = '32', )); } } Thanks so much. -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] problems with the built-in SwiftMailer when multiple SMTP servers are needed
using symfony version 1.4.2-DEV Propel for database access I am writing a site that manages my personal data. On the site, I need to send emails from different accounts. ex. 1. a...@dfg.local 2. h...@klm.local 3. n...@qrs.local *emails are different from one to another. even the domain name. When I looked at factories.yml and also http://www.symfony-project.org/jobeet/1_4/Doctrine/en/, I couldn't figure out how to set up multiple transports (SMTP server info.) I searched this group and found a thread below http://groups.google.com/group/symfony-users/browse_thread/thread/9308ce66846ebb87/1d02184b3fdddf7c?hl=enlnk=gstq=multiple+swift#1d02184b3fdddf7c so I think at this point, there is no way to use factories.yml to set up multiple SMTP accounts and choose an appropriate Mailer (ex. $this-getMailer() in an Action class) to send messages from. my requirements 1. I need to configure SMTP transport for numbers of different SMTP servers to send messages from an appropriate sender. 2. I need to be able to spool the messages To solve the problem, I don't think the symfony's built-in SwiftMailer is not the choice. I think I will need to create my own set by using the original SwiftMailer. Along with that, I am thinking to override Swift_PropelSpool or Swift_ConfigurableSpool to build my own email spooler, but if there is anyone who had the same problem and has already built something to accomplish, I would like to know the smart ways to archive it, and possibly avoid the reinvent the wheel dilemma. 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 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: Embed optional form
Hi! I have/had the same problem here and spent the last hours on this (i would say simple) problem :). Anyway overwriting the save method in the model doesn't work, I get a SQLSTATE[23000]: Integrity constraint violation. So I was thinking of overwriting the saveEmbeddedForms function in the parent-form (the one that embeds the proposals in your example). I can't imagine this is the smartest solution, but it works: code public function saveEmbeddedForms($con = null, $forms = null) { if (is_null($con)) { $con = $this-getConnection(); } if (is_null($forms)) { $forms = $this-embeddedForms; } foreach ($forms as $form) { if ($form instanceof sfFormDoctrine) { if (!($form-getObject() instanceof NoeQuizProposal)) { $form-getObject()-save($con); $form-saveEmbeddedForms($con); } // condition to find out if the form is empty else if (strlen(trim((string)$form-getObject()-label)) 0) { $form-getObject()-save($con); $form-saveEmbeddedForms($con); } } else { $this-saveEmbeddedForms($con, $form-getEmbeddedForms()); } } } /code -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] No content
I've installed a project in my local server - WampServer and it works successfully. I added test content and uploaded it into server (www.linuxpl.com) and it doesn't show anything. -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] PROBLEM WITH SFJQUERYRELOADEDPLUGIN
Hello everyone, I'm using the jqueryreloadedplugin and I want to submit the form by AJAX. It works but when I try to use an indicator to show when the form is being processed, so that the end user can tell that something is going on, it just doesn't seem to work any longer. Does anyone have sample code for this and are there any specific instructions like files i should put under the web directory etc? --- ?php echo jq_submit_to_remote('ajax_submit', 'Save Details', array('update' = 'seeker_form_div', 'url' = 'seeker/create'//, // 'loading' = Element.show('indicator'); \$('tag').value = '',--- IF I UNCOMMENT THESE LINES, IT DOESN'T SEEM // 'complete' = Element.hide('indicator');.jq_visual_effect('highlight', 'seeker_form_div')TO WORK ANY LONGER ), array('class' = 'button')) ? --- I just want to give the end user some visual feed back while the form is processing! Thanks for all the help!!! -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] No content
On Thu, 21 Jan 2010, Pax95 wrote: I've installed a project in my local server - WampServer and it works successfully. I added test content and uploaded it into server (www.linuxpl.com) and it doesn't show anything. Look at your web server error logs. -- -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] No content
This happens sometimes when you have a fatal php error in the template (or a method called from the template) Am 21.01.2010 17:24, schrieb Pax95: I've installed a project in my local server - WampServer and it works successfully. I added test content and uploaded it into server (www.linuxpl.com) and it doesn't show anything. -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] No content
Did you re-configure id for the new server environment (config/ database.yml etc... ) and a ./symfony doctrine:build --all --all-classes --no-confirmation Am 21.01.2010 um 20:30 schrieb Georg Gell: This happens sometimes when you have a fatal php error in the template (or a method called from the template) Am 21.01.2010 17:24, schrieb Pax95: I've installed a project in my local server - WampServer and it works successfully. I added test content and uploaded it into server (www.linuxpl.com) and it doesn't show anything. -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en . -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] processing hidden input in forms
hi, basically what i'm trying to do is hide two fields from the form Stock in the admin then when the user is creating or editing a new stock object. there is some background calculation that is done then passed as a request before the form is processed. The code am trying to process is this in /lib/model/doctrine/Stock.class public function calculateTax($price) { $afterTax = $price * sfConfig::get('app_tax_rate'); return $afterTax; } i then pass this function to a stockActions class using this code public function executeUpdate(sfWebRequest $request) { $this-stock = $this-getRoute()-getObject(); $this-form = this-configuration-getForm($this-stock); $price = $request-getParameter('price'); $mystock = new Stock(); $taxRate = $mystock-calculateTax($price); $request-setParameter('vat', $taxRate); $request-setParameter('amount_with_vat', ($taxRate+$price)); $this-processForm($request, $this-form); $this-setTemplate('edit'); } what am trying to do is overide the default update function by getting and calculating the appropriate parameters before the form is processed. However, the values am calculating are not being processed with the form. what am i doing wrong? or is there another way to do this? 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 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: actAs Timestampable requiring created_at in update
Guys, I made a database/model rebuild, then reloaded the data, and the problem disappeared. Strange, uh?! I mean, I never touched the Base models, only the custom ones, but rebuilding brought my system back. I'm trying to remember if there was some part I shouldn't have messed with but did it anyway... Well, problem solved! :-) Thank you, guys! Diogo On 20 jan, 16:37, Dennis gear...@sbcglobal.net wrote: Very interesting problem. Sounds like you might need to use a debugger or a lot of 'die(got here at.__LINE__);' statements in the symfony libraray if his tip doesn't work. On Jan 20, 4:44 am, diogobaeder diogobae...@gmail.com wrote: Hi, Benoit, I'll try your tip, but it's strange because it started to happen just these days, and I've been developing the website for about a month now... and the website at a test environment works correctly, even with actAsTimestampable. At this test environment, the updated query built, seen in the log, doesn't contain the created_at field, so the update works, but at my local environment it contains the field and passes a null value in the update, and that's what makes the update fail. I searched thoroughly for diffs in the directories, comparing local to remote test folders, but didn't find the problem. Also, this problem only happens to one model in the system, the others that contain actAsTimestampable work flawlessly. Any clues of why it started to happen? Thanks! On Jan 20, 8:46 am, Benoit Montuelle benoit.montue...@gmail.com wrote: It's perfectly normal. These 2 field added by actAsTimestampable Behavior are not to be editable by users. You should remove them in your form class configure() method : unset($this['created_at']); unset($this['updated_at']); Hope this helps Regards, Benoit Le 20 janv. 2010 à 06:09, diogobaeder diogobae...@gmail.com a écrit : Hi, guys, I don't know why, but a website I'm developing started to pass the created_at field in the update query when I try to save an edited admin form with a null value, so I cannot save the data anymore. Any idea of what might be wrong? I'm using Symfony 1.4. Thanks! Diogo -- 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, visit this group athttp://groups.google.com/group/symfony-users?hl=en . -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: processing hidden input in forms
ive modified the code in the controller so that it can set the parameters before create or update like so private function processTax(sfWebRequest $request) { $price = $request-getParameter('price'); $mystock = new Stock(); $taxRate = $mystock-calculateTax($price); $request-setParameter('vat', $taxRate); $request-setParameter('amount_with_vat', ($taxRate+$price)); } public function executeCreate(sfWebRequest $request) { $this-processTax($request); $this-form = $this-configuration-getForm(); $this-stock = $this-form-getObject(); $this-processForm($request, $this-form); $this-setTemplate('new'); } public function executeUpdate(sfWebRequest $request) { $this-processTax($request); $this-stock = $this-getRoute()-getObject(); $this-form = $this-configuration-getForm($this-stock); $this-processForm($request, $this-form); $this-setTemplate('edit'); } i dont get any error when i do this but the processTax function does not seem to execute since i dont find the values in the db. Any ideas? On 21 Jan, 23:28, el-sid sydneyari...@gmail.com wrote: hi, basically what i'm trying to do is hide two fields from the form Stock in the admin then when the user is creating or editing a new stock object. there is some background calculation that is done then passed as a request before the form is processed. The code am trying to process is this in /lib/model/doctrine/Stock.class public function calculateTax($price) { $afterTax = $price * sfConfig::get('app_tax_rate'); return $afterTax; } i then pass this function to a stockActions class using this code public function executeUpdate(sfWebRequest $request) { $this-stock = $this-getRoute()-getObject(); $this-form = this-configuration-getForm($this-stock); $price = $request-getParameter('price'); $mystock = new Stock(); $taxRate = $mystock-calculateTax($price); $request-setParameter('vat', $taxRate); $request-setParameter('amount_with_vat', ($taxRate+$price)); $this-processForm($request, $this-form); $this-setTemplate('edit'); } what am trying to do is overide the default update function by getting and calculating the appropriate parameters before the form is processed. However, the values am calculating are not being processed with the form. what am i doing wrong? or is there another way to do this? 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 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] PROBLEM WITH SFJQUERYRELOADEDPLUGIN
hi! 1) Please do not use that CAPS - LOCK in the subject field. Unfortunatelly, it won't make you smarter, and will not attract the user to answer your question. 2) do not post duplicate threads (2 threads containing same content). Most that you can do is to reply in that thread, with a s content like ping? anyone? etc. the duplicate posting will make it harder for others to find solutions to their problems. 3) i haven't used that plugin and i cannot help you out. 4) if you do not get any replyes, it might mean that noone has encounter this. 5) your problem might be from here: url: ...//, 6) view source of the page and see what / how is rendered // paste your piece of code where this is rendered 7) make sure that you have all the ; in place ... 8) to a better check / infestigation use firefox firebug 9) Make sure your jQuery is loaded form a correct location / it is loaded at all.. Alecs On Thu, Jan 21, 2010 at 6:53 PM, Sorom Uzomah delsa...@yahoo.com wrote: Hello everyone, I'm using the jqueryreloadedplugin and I want to submit the form by AJAX. It works but when I try to use an indicator to show when the form is being processed, so that the end user can tell that something is going on, it just doesn't seem to work any longer. Does anyone have sample code for this and are there any specific instructions like files i should put under the web directory etc? --- ?php echo jq_submit_to_remote('ajax_submit', 'Save Details', array('update' = 'seeker_form_div', 'url' = 'seeker/create'//, // 'loading' = Element.show('indicator'); \$('tag').value = '',--- IF I UNCOMMENT THESE LINES, IT DOESN'T SEEM // 'complete' = Element.hide('indicator');.jq_visual_effect('highlight', 'seeker_form_div')TO WORK ANY LONGER ), array('class' = 'button')) ? --- I just want to give the end user some visual feed back while the form is processing! Thanks for all the help!!! -- 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.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Have a nice day! Alecs As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0722 612 280 -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Symfony's Database Session's table structure.
I guess not enough where you reference Eno, because it’s a bit brief there, and I went through that documentation before posting. Looking at the documentation in hindsight, I still didn’t see the complete answer to my question. Anyway I gave 2 more follow up responses stating some other snippets and so on. Dont mean to sound rude in this reply, and I appreciate your response, just wanted to let you know that I looked there before attempting to use PDO based sessions. With Best Regards, Alex Stoneham On Jan 20, 5:58 am, Eno symb...@gmail.com wrote: On Tue, 19 Jan 2010, a...@speedypin.com wrote: I want to use a database managed session system as opposed to filesystem based. My question is : What would symfony expect for the table structure of sessions table to be, both columns and data types? As usual, this is documented: http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Laye... -- -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Coda and symfony
Hey guys, im quite new to symfony and Coda too. Is there a way to get autocompletion for symfony features in Coda. Because its quite anoying to have no autocompletion for symfony features. Maybe someone can point me on a howto or give me a hand on this. Thanks in advance Greetings espo -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Pan and Zoom Javascript Library for Images
Deepak, We are about to add GIF support to Magic Touch. It was designed for pan and zoom of images: http://www.magictoolbox.com/magictouch/ It's easy to use without a plugin, but we could probably create a Symfony plugin for you if you need. Magic Toolbox On Jan 21, 3:11 pm, DEEPAK BHATIA toreachdee...@gmail.com wrote: Hi, I want to give the functionality of pan and zoom of gif images. Do we have specific plugin available for the same in the Symfony ? Regards Deepak Bhatia -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: processing hidden input in forms
Try to debug if processTax() is executed ie. simply do echo I'm here;exit; or something like that. And when you will be sure that it isn't executed or it's executed, then do some more ... On 21 led, 21:46, el-sid sydneyari...@gmail.com wrote: ive modified the code in the controller so that it can set the parameters before create or update like so private function processTax(sfWebRequest $request) { $price = $request-getParameter('price'); $mystock = new Stock(); $taxRate = $mystock-calculateTax($price); $request-setParameter('vat', $taxRate); $request-setParameter('amount_with_vat', ($taxRate+$price)); } public function executeCreate(sfWebRequest $request) { $this-processTax($request); $this-form = $this-configuration-getForm(); $this-stock = $this-form-getObject(); $this-processForm($request, $this-form); $this-setTemplate('new'); } public function executeUpdate(sfWebRequest $request) { $this-processTax($request); $this-stock = $this-getRoute()-getObject(); $this-form = $this-configuration-getForm($this-stock); $this-processForm($request, $this-form); $this-setTemplate('edit'); } i dont get any error when i do this but the processTax function does not seem to execute since i dont find the values in the db. Any ideas? On 21 Jan, 23:28, el-sid sydneyari...@gmail.com wrote: hi, basically what i'm trying to do is hide two fields from the form Stock in the admin then when the user is creating or editing a new stock object. there is some background calculation that is done then passed as a request before the form is processed. The code am trying to process is this in /lib/model/doctrine/Stock.class public function calculateTax($price) { $afterTax = $price * sfConfig::get('app_tax_rate'); return $afterTax; } i then pass this function to a stockActions class using this code public function executeUpdate(sfWebRequest $request) { $this-stock = $this-getRoute()-getObject(); $this-form = this-configuration-getForm($this-stock); $price = $request-getParameter('price'); $mystock = new Stock(); $taxRate = $mystock-calculateTax($price); $request-setParameter('vat', $taxRate); $request-setParameter('amount_with_vat', ($taxRate+$price)); $this-processForm($request, $this-form); $this-setTemplate('edit'); } what am trying to do is overide the default update function by getting and calculating the appropriate parameters before the form is processed. However, the values am calculating are not being processed with the form. what am i doing wrong? or is there another way to do this? 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 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: Pan and Zoom Javascript Library for Images
Hello, Thanks for your mail. I hope this is free. Regards Deepak Bhatia On Fri, Jan 22, 2010 at 11:47 AM, Magic Toolbox themagictool...@googlemail.com wrote: Deepak, We are about to add GIF support to Magic Touch. It was designed for pan and zoom of images: http://www.magictoolbox.com/magictouch/ It's easy to use without a plugin, but we could probably create a Symfony plugin for you if you need. Magic Toolbox On Jan 21, 3:11 pm, DEEPAK BHATIA toreachdee...@gmail.com wrote: Hi, I want to give the functionality of pan and zoom of gif images. Do we have specific plugin available for the same in the Symfony ? Regards Deepak Bhatia -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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, visit this group at http://groups.google.com/group/symfony-users?hl=en.