[symfony-users] Re: Multiple links in a single image slide show..
Post more detail, I don't understand what the problem is. Show some code. Or post some link that We can see your gallery. On 23 čvn, 12:15, Vinay reddy vinayreddy1...@gmail.com wrote: Please..Very urgent..I have created multiple image slide show but it is becoming complex when trying to slide show multiple images with each image having multiple links(Each image are sliced as tables and this images in 3 html pages, each sliced image is having link ) as we can see it inwww.vonage.com/www.unovon.com. Please help me solve this problem. Give me a resource link or some code explanation. I don't want this in Flash but in Jquery or Javascript. Iam a PHP developer. Regards.. -- 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: Foreign keys are not getting populated when saving details records
[SOLVED] The foreign keys in the subforms are not updated. The solution required a combination of several recommendations available on the web. Links to the recommendations are included in the sample source code posted below in case others might benefit from the posted solution. Any recommendations for improving the code are always welcomed. This is my first PHP and first Symfony project and I'm already indebted to many of those that have posted their examples on the web. - Michael - - - sample code - - - The configure () function for the following form is based on the Symfony document 'more with symphony 1.4 en' and so is not included in the example sbelow. class TransactionReceiptForm extends BaseTransactionReceiptForm { /** * Remove embedded forms that have not been used and save the ones that * have data. */ public function saveEmbeddedForms($con = null, $forms = null) { if (is_null($con)) { $con = $this-getConnection(); } if (null === $forms) { $forms = $this-embeddedForms; $forms = $this-unsetUnusedEmbeddedForms($forms); } foreach ($forms as $form) { if ($form instanceof sfFormDoctrine) { // Workaround for foreign key update issue: // (reference: http://snippets.symfony-project.org/snippet/354) $foreign_key = 'receipt_id'; if ($form-getObject()-contains($foreign_key)) { $method_name = 'set' . sfInflector::camelize($foreign_key); $form-getObject()-$method_name($this-getObject()-getReceiptId()); } // End workaround $form-getObject()-save($con); $form-saveEmbeddedForms($con); } else { $this-saveEmbeddedForms($con, $form-getEmbeddedForms()); } } } /** * Check each of the forms collections for unused forms and then remove * them if unused. The forms in the forms collections have numeric keys, * but each collection also contains a csrf form that should not be unset. * Check for numeric subform keys in order to ensure that only transaction * details forms are unset. The csrf form is for security. */ public function unsetUnusedEmbeddedForms($forms) { foreach ($this-embeddedForms['newPurchases'] as $key = $form) { if (is_numeric($key) $this-taintedValues['newPurchases'][$key]['fee_name'] == '') { unset($forms['newPurchases'][$key]); } } foreach ($this-embeddedForms['newPayments'] as $key = $form) { if (is_numeric($key) $this-taintedValues['newPayments'][$key]['payment_type'] == '') { unset($forms['newPayments'][$key]); } } return $forms; } - - - passing the foreign key as a hidden parameter was a crucial observation. the following is the form that is embedded in the collection form. class PurchaseDetailForm extends BasePurchaseDetailForm { public function configure() { $this-useFields(array( 'fee_name', . . . 'receipt_id', )); /** * Foreign key must be passed as hidden field in order for Doctrine to * include it in the INSERT statement that it generates. * (reference: http://forum.symfony-project.org/index.php/m/97279/) */ $this-setWidget('receipt_id', new sfWidgetFormInputHidden()); $this-setValidator('receipt_id', new sfValidatorPass()); $this-widgetSchema['fee_name'] = new sfWidgetFormChoice(array( 'choices' = Doctrine::getTable('StudentFee')-getFeeTypes() )); } - - - and my relationship was defined incorrectly. Correction is PurchaseDetail: columns: purchase_id: { type: integer, primary: true, autoincrement: true } receipt_id: { type: integer, notnull: true } . . . relations: TransactionReceipt: local: receipt_id foreign: receipt_id foreignAlias: Purchases foreignType: many . . . On Sat, Jun 12, 2010 at 8:23 PM, Michael Hodges mhodg...@gmail.com wrote: Hello all, I have a problem with Foreign keys are not getting populated when saving details records. The relationships (a pair of 1-n's) look correct, but does anyone see something I'm overlooking? Thanks for any advice. My environment is Symfony 1.4.4 with Doctrine running under XAMPP on Mac OSX 10.6. I have followed the 'more with symphony 1.4 en' example with great care and have been very successful with all aspects of the project except for the the foreign keys. The schema involves a master record, Transaction Receipt (master form), and two detail records: PurchaseDetail (Purchases) and PaymentDetail (Payments), supported with embedded forms. In my case, 'receipt_id' is not assigned a value in PurchaseDetail or PaymentDetail when all the forms are saved to the db. The schema is as follows (essentials only for readability):
[symfony-users] Re: Plugin from Embedded form in new window
What about a little different solution: - When you click on the plus only an input will be shown next to the plus (this input can be defined as hidden and shown by javascript). You will write a new Poll name into this input and it will be used instead of the choice. This new Poll will be added into the table after the form submit. I think this is a standard solution and there should be no problem in realizing it in Symfony. On 25 čvn, 15:14, Leandro leandro.jac...@gmail.com wrote: For example from django, open related form for quick add ando auto populate choice with added data, for example view image. 2010/6/25 Leandro Jácome leandro.jac...@gmail.com Hello friends, I need plugin or widget from show button add on right side widget sfWidgetFormDoctrineChoice for open embed form in new window. Anybody know one solution from this problem? tks! -- Leandro Jácome Desenvolvedor Web leandro.jac...@gmail.com mobile: +55 62 8178-0415 talk/msn: lean...@globitec.com.br twitter: @leandrojacome admin10.png 14KZobrazitStáhnout -- 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: importing a symfony made website back into symfony??
On 26 Giu, 18:47, martyn b...@worldonline.nl wrote: how can we fix a handfull of errors, without needing to hack/break into the php code cause it might cause severe probs elsewhere. Well, the answer is simple: just do tests. Unit tests, functional tests. When your test coverage will be good, you can change what you want without fear. cheers Massimiliano -- 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: Switch database sf 1.4 doctrine
Something is here (but not much) http://symfonyexperts.com/question/show/id/38 http://groups.google.com/group/symfony-users/browse_thread/thread/3b09221615b51919/dc44e4d364bdc9b2?lnk=gstq=multiple+databases#dc44e4d364bdc9b2 On 25 čvn, 21:30, stakovicz stakov...@gmail.com wrote: Hi ! How can I switch database by domain ? Is it a function to set database schema ? Thanks for your clues ! -- 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: giving 500 internal server error after symfony setup
Hi, thanks for the response.. actually that was happening due to a very silly mistake of accidently deleting a folder! Okay so now i am getting the 'Symfony Project Created' page but without the css.. main.css file is found but the following files are giving 404 not found error... screen.css , sfTLogo.png and ok48.png I checked the uri for these in the source. its in some dir called /sf/ sf_default which doent seem to be present. i am assuming the directory alias in the apache conf file is doing this routing my directory structure is as follows public_html has all projects as well as the framework libraries.. each project having it own virtual host so symfony core dir is here along with the sfproject which is a project generated using symfony, which means there is no sfprojects/ jobeet/ but only sfproject/ i checked the lines of rules in the apache conf file for this vhost which are Alias /sf /home/sfproject/lib/vendor/symfony/data/web/sf Directory /home/sfproject/lib/vendor/symfony/data/web/sf AllowOverride All Allow from All /Directory i observe that the '/home/sfproject/lib/vendor/' dir doesnt exist as well ... what am i missing here ? Thanks a lot.. On Jun 28, 1:13 pm, catchamonkey ch...@sedlmayr.co.uk wrote: Hi, Have you taken a look at your apache logs? If you are getting a 500 response there could be a more helpful message there. Chris On Jun 28, 8:23 am, vineet naik naik...@gmail.com wrote: Hi, I am new to symfony, and trying to set up a project for the first time. I installed it almost as per the getting started section of the practical symfony for doctrine and created virtual host on my local server. But when i go to the address, it shows a blank page. The firebugs 'Net' shows 500 internal server error. print statements in the /web/index.php file before dispatch also work which means that its reaching there. I followed all the instructions in the getting started section of the docs but i didnt do it exactly as mentioned , i mean i have used different names for a few directories while taking care that the right names are included wherever required. If it doesnt get solved i ll do it exactly as given in the docs. Any pointers on what might be wrong before i reinstall ? Please help Regards -- 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: giving 500 internal server error after symfony setup
Hi, Yes, the Alias declaration makes the sf files available to your project via apache. Can you paste the entire vhost for me? I think you will just need to point the Alias to the correct location and restart apace. Where are the symfony libraries stored on your server? Do you have a single copy? Or is it within the project folder under / lib/vendor ? Chris On Jun 28, 9:39 am, vineet naik naik...@gmail.com wrote: Hi, thanks for the response.. actually that was happening due to a very silly mistake of accidently deleting a folder! Okay so now i am getting the 'Symfony Project Created' page but without the css.. main.css file is found but the following files are giving 404 not found error... screen.css , sfTLogo.png and ok48.png I checked the uri for these in the source. its in some dir called /sf/ sf_default which doent seem to be present. i am assuming the directory alias in the apache conf file is doing this routing my directory structure is as follows public_html has all projects as well as the framework libraries.. each project having it own virtual host so symfony core dir is here along with the sfproject which is a project generated using symfony, which means there is no sfprojects/ jobeet/ but only sfproject/ i checked the lines of rules in the apache conf file for this vhost which are Alias /sf /home/sfproject/lib/vendor/symfony/data/web/sf Directory /home/sfproject/lib/vendor/symfony/data/web/sf AllowOverride All Allow from All /Directory i observe that the '/home/sfproject/lib/vendor/' dir doesnt exist as well ... what am i missing here ? Thanks a lot.. On Jun 28, 1:13 pm, catchamonkey ch...@sedlmayr.co.uk wrote: Hi, Have you taken a look at your apache logs? If you are getting a 500 response there could be a more helpful message there. Chris On Jun 28, 8:23 am, vineet naik naik...@gmail.com wrote: Hi, I am new to symfony, and trying to set up a project for the first time. I installed it almost as per the getting started section of the practical symfony for doctrine and created virtual host on my local server. But when i go to the address, it shows a blank page. The firebugs 'Net' shows 500 internal server error. print statements in the /web/index.php file before dispatch also work which means that its reaching there. I followed all the instructions in the getting started section of the docs but i didnt do it exactly as mentioned , i mean i have used different names for a few directories while taking care that the right names are included wherever required. If it doesnt get solved i ll do it exactly as given in the docs. Any pointers on what might be wrong before i reinstall ? Please help Regards -- 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: giving 500 internal server error after symfony setup
Hi, symfony library directory is stored separately and is sibling of the project directory. where is the lib/vendor located btw.. could not find it.. or do i need to create it ?.. where in that case ? this is the vhost file Listen 127.0.0.1:8080 VirtualHost sfproject.kp DocumentRoot /home/vineet/public_html/sfproject/web DirectoryIndex index.php Directory /home/public_html/sfprojects/web AllowOverride All Allow from All /Directory Alias /sf /home/sfproject/lib/vendor/symfony/data/web/sf Directory /home/sfproject/lib/vendor/symfony/data/web/sf AllowOverride All Allow from All /Directory /VirtualHost Thanks On Jun 28, 1:45 pm, catchamonkey ch...@sedlmayr.co.uk wrote: Hi, Yes, the Alias declaration makes the sf files available to your project via apache. Can you paste the entire vhost for me? I think you will just need to point the Alias to the correct location and restart apace. Where are the symfony libraries stored on your server? Do you have a single copy? Or is it within the project folder under / lib/vendor ? Chris On Jun 28, 9:39 am, vineet naik naik...@gmail.com wrote: Hi, thanks for the response.. actually that was happening due to a very silly mistake of accidently deleting a folder! Okay so now i am getting the 'Symfony Project Created' page but without the css.. main.css file is found but the following files are giving 404 not found error... screen.css , sfTLogo.png and ok48.png I checked the uri for these in the source. its in some dir called /sf/ sf_default which doent seem to be present. i am assuming the directory alias in the apache conf file is doing this routing my directory structure is as follows public_html has all projects as well as the framework libraries.. each project having it own virtual host so symfony core dir is here along with the sfproject which is a project generated using symfony, which means there is no sfprojects/ jobeet/ but only sfproject/ i checked the lines of rules in the apache conf file for this vhost which are Alias /sf /home/sfproject/lib/vendor/symfony/data/web/sf Directory /home/sfproject/lib/vendor/symfony/data/web/sf AllowOverride All Allow from All /Directory i observe that the '/home/sfproject/lib/vendor/' dir doesnt exist as well ... what am i missing here ? Thanks a lot.. On Jun 28, 1:13 pm, catchamonkey ch...@sedlmayr.co.uk wrote: Hi, Have you taken a look at your apache logs? If you are getting a 500 response there could be a more helpful message there. Chris On Jun 28, 8:23 am, vineet naik naik...@gmail.com wrote: Hi, I am new to symfony, and trying to set up a project for the first time. I installed it almost as per the getting started section of the practical symfony for doctrine and created virtual host on my local server. But when i go to the address, it shows a blank page. The firebugs 'Net' shows 500 internal server error. print statements in the /web/index.php file before dispatch also work which means that its reaching there. I followed all the instructions in the getting started section of the docs but i didnt do it exactly as mentioned , i mean i have used different names for a few directories while taking care that the right names are included wherever required. If it doesnt get solved i ll do it exactly as given in the docs. Any pointers on what might be wrong before i reinstall ? Please help Regards -- 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: giving 500 internal server error after symfony setup
Hi, Ok, so you need to point the Alias to the symfony libraries. Alias /sf /path/tp/your/symfony/library/folder/data/web/sf and the same within the following Directory declaration. As the symfony images and css files are stored in the library it just allows your site to use them through the /sf alias. So yoursite.com/sf/ has access to the web files it needs. Chris On Jun 28, 10:00 am, vineet naik naik...@gmail.com wrote: Hi, symfony library directory is stored separately and is sibling of the project directory. where is the lib/vendor located btw.. could not find it.. or do i need to create it ?.. where in that case ? this is the vhost file Listen 127.0.0.1:8080 VirtualHost sfproject.kp DocumentRoot /home/vineet/public_html/sfproject/web DirectoryIndex index.php Directory /home/public_html/sfprojects/web AllowOverride All Allow from All /Directory Alias /sf /home/sfproject/lib/vendor/symfony/data/web/sf Directory /home/sfproject/lib/vendor/symfony/data/web/sf AllowOverride All Allow from All /Directory /VirtualHost Thanks On Jun 28, 1:45 pm, catchamonkey ch...@sedlmayr.co.uk wrote: Hi, Yes, the Alias declaration makes the sf files available to your project via apache. Can you paste the entire vhost for me? I think you will just need to point the Alias to the correct location and restart apace. Where are the symfony libraries stored on your server? Do you have a single copy? Or is it within the project folder under / lib/vendor ? Chris On Jun 28, 9:39 am, vineet naik naik...@gmail.com wrote: Hi, thanks for the response.. actually that was happening due to a very silly mistake of accidently deleting a folder! Okay so now i am getting the 'Symfony Project Created' page but without the css.. main.css file is found but the following files are giving 404 not found error... screen.css , sfTLogo.png and ok48.png I checked the uri for these in the source. its in some dir called /sf/ sf_default which doent seem to be present. i am assuming the directory alias in the apache conf file is doing this routing my directory structure is as follows public_html has all projects as well as the framework libraries.. each project having it own virtual host so symfony core dir is here along with the sfproject which is a project generated using symfony, which means there is no sfprojects/ jobeet/ but only sfproject/ i checked the lines of rules in the apache conf file for this vhost which are Alias /sf /home/sfproject/lib/vendor/symfony/data/web/sf Directory /home/sfproject/lib/vendor/symfony/data/web/sf AllowOverride All Allow from All /Directory i observe that the '/home/sfproject/lib/vendor/' dir doesnt exist as well ... what am i missing here ? Thanks a lot.. On Jun 28, 1:13 pm, catchamonkey ch...@sedlmayr.co.uk wrote: Hi, Have you taken a look at your apache logs? If you are getting a 500 response there could be a more helpful message there. Chris On Jun 28, 8:23 am, vineet naik naik...@gmail.com wrote: Hi, I am new to symfony, and trying to set up a project for the first time. I installed it almost as per the getting started section of the practical symfony for doctrine and created virtual host on my local server. But when i go to the address, it shows a blank page. The firebugs 'Net' shows 500 internal server error. print statements in the /web/index.php file before dispatch also work which means that its reaching there. I followed all the instructions in the getting started section of the docs but i didnt do it exactly as mentioned , i mean i have used different names for a few directories while taking care that the right names are included wherever required. If it doesnt get solved i ll do it exactly as given in the docs. Any pointers on what might be wrong before i reinstall ? Please help Regards -- 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: importing a symfony made website back into symfony to make changes??
I'm using Netbeans. You can import an existing site copy Fernando Navarro Páez On 26 jun, 18:46, Martyn b...@worldonline.nl wrote: hello symfony users, my programmer made an excellent website using Symfony with MySQL appl. due to a family occurance he is off the project- and I mean OFF. i think he's left the city as well as the continent. i have a back-up of the complete project exactly as it was orig. made by Symfony. my new programmer [new to Symfony, but advanced in php mysql] wants to know... how can we fix a handfull of errors, without needing to hack/break into the php code cause it might cause severe probs elsewhere. can we start a 'NEW' symfony project, then import the project back-up [orig. made in symfony] in it?? we are fairly certain any changes should be made within- and content-driven by- Symfony, not simply within the project using netbeans.. [am i correct??] any suggestions will be m-IT-ghtely appreciated. Martyn Biesheuvel Amsterdam -- 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: .htaccess - redirect example.com/index.php to example.com
it should be ok if you put that rule in the following order: == RewriteCond %{REQUEST_URI} index\.php [NC] RewriteRule ^index.php$ http://www.example.com/ [L,R=301] # no, so we redirect to our front web controller RewriteRule ^(.*)$ index.php [QSA,L] == gabriel On Jun 28, 12:23 pm, Mickael HOAREAU mickael.hoar...@bysoft.fr wrote: Hello, In the default .htaccess of symfony we have: Options +FollowSymLinks +ExecCGI IfModule mod_rewrite.c RewriteEngine On # uncomment the following line, if you are having trouble # getting no_script_name to work #RewriteBase / # we skip all files with .something #RewriteCond %{REQUEST_URI} \..+$ #RewriteCond %{REQUEST_URI} !\.html$ #RewriteRule .* - [L] # we check if the .html version is here (caching) RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f # no, so we redirect to our front web controller RewriteRule ^(.*)$ index.php [QSA,L] /IfModule I would like to redirectwww.example.com/index.phptowww.example.com with a 301 redirection. One solution would be to add the following rule in the htaccess: RewriteCond %{REQUEST_URI} index\.php [NC] RewriteRule ^index.php$http://www.example.com/[L,R=301] But this rule makes a conflict with the rule : RewriteRule ^(.*)$ index.php [QSA,L] It provokes an infinite loop. Another option would to rename the script index.php to another name like frontend.php in the web folder. But before to do that i want to make sure that there is no other way to do this only by modifying the htaccess. Does anybody have an idea ? Thanks in advance for your help. Mickael -- 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: backend module
Thank you very much. It works for me On Jun 26, 1:37 pm, Daniel Lohse annismcken...@googlemail.com wrote: Maybe this will help you:http://www.symfony-project.org/tutorial/1_4/en/whats-new#chapter_a2fa... Yes, it only talks about adding a new field and how to write the method involved but you can do that too. Just unset the field you want to have a text field for and take this approach instead, you'll be finished in no time. :) Cheers, Daniel On 26.06.2010, at 14:20, Martin Henits wrote: I clicked on the logs and realised the error is in this line: execute : SELECT COUNT(*) AS num_results FROM myTable m WHERE m.user_id = ? - () displayed error is: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined any suggestion? I want to show an edit box instead of drop-down menu in a backend module's filter. On Jun 26, 1:11 pm, Martin Henits martin.hen...@gmail.com wrote: Thanks, I changed the filter according to your suggestion and as it was desired I can see an edit box instead of a drop-down menu. But whenever I want to search for something (i.e. whenever I click on the filter button), even with an empty form for search, I see this error: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined On Jun 23, 7:30 am, slau susan@gmx.de wrote: Hi, for 1) seehttp://www.symfony-project.org/jobeet/1_4/Doctrine/en/12#chapter_12_t... you can copy out of your cache folder /cache/APP/ENV/modules/MODULENAME/templates/_list_actions.php to your module template folder and then remove the link for 2) then just change the filter in the corresponding class by replacing the widget $this-widgetSchema['user_id'] = new sfWidgetFormFilterInput(array('with_empty' = false)) Hope that helps Susan -- 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] automated response
Merci de votre message. Je suis présentement absent du bureau. Je serai de retour le 5 juillet 2010. L'accès à mes courriels pourrait être limité durant cette période. En cas d'urgence, veuillez contacter Tisha au 514 987-9992 #150 ou par courriel à ti...@twistimage.com. Cordialement, Saad Tazi - - - - - - - - - - - - - Thank you for your message. I am currently out of the office and will return on Monday July 5th. I will have limited access to my e-mail during this period. For urgent matters, please contact Tisha at 514 987-9992 #150 or email ti...@twistimage.com. Best regards, Saad Tazi | Senior Web Developer Twist Image | www.twistimage.com T - 514 987 9992 x.158 407, rue McGill, 2e étage, Montréal (Québec) H2Y 2G3 -- 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: importing a symfony made website back into symfony??
james i understand what you're saying, you've made by far the most comprehensible suggestion. can i call you so see if you can fix it as developper? yours sincerely, Martyn Biesheuvel. vlgde mail waarsch dus in t nl.! -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of James Cauwelier Sent: zondag 27 juni 2010 21:35 To: symfony users Subject: [symfony-users] Re: importing a symfony made website back into symfony?? It 's difficult to answer these questions without a clue to the nature of these problems. First thing to check is indeed how it was installed, which version and from there you could consult the docs for the symfony version you use. Importing won 't be necessary, but it could be that you have to move some library files and add some include statements. I would suggest to pay a developer who can find out how to proceed. This is probably too much work and will cost you far too much time to do all this on a mailing list. You are free to contact me to sort it all out. I have tons of experience with symfony starting from the 1.0 release to the current stable 1.4 release and got some really big database driven website running with this (tables with +2.000.000 rows). I speak dutch too. Once you 've got the project running again or have fixed the problems, your new programmer can take it from there. I am happy to provide information without being the actual developer on the job. And I am sure many on this mailinglist are too. From your explanation I understand that the application uses the code generation features of symfony? In that case, you really need somebody with symfony experience to fix the problems. This means your developer will certainly have to read the appropiate docs. It would be unfair to just post the problems and code here and expect ready- made fixes. Please, don 't misunderstand my suggestion. I am more than happy to provide information for free on this mailinglist, but I suspect that this will be rather ineffective and time consuming. Best of luck, James On 27 jun, 12:39, pghoratiu pghora...@gmail.com wrote: First check how was symfony installed, it was installed via PEAR or it is a local installation available in directory lib/vendor. In case of local installation you have everything in place. Otherwise find out which symfony version was used (1.0.x, .1.1.x, 1.2.x, 1.3.x, 1.4.x) and download/install the required version (via PEAR or into lib/vendor). The documentation should help you, again it's good to know the symfony version used to develop the application and study the documentation according to that version. If you have errors in you apps you will probably have to change the PHP code. You don't have to create a new project and insert into it, just use the existing one if all the environment dependencies are in place. gabriel On Jun 26, 7:47 pm, martyn b...@worldonline.nl wrote: hello symfony users, my programmer made an excellent website using Symfony with MySQL appl. due to a family occurance he is off the project- and I mean OFF. i think he's left the city as well as the continent. i have a back-up of the complete project exactly as it was orig. made by Symfony. my new programmer [new to Symfony, but advanced in php mysql] wants to know... how can we fix a handfull of errors, without needing to hack/break into the php code cause it might cause severe probs elsewhere. can we start a 'NEW' symfony project, then import the project back-up [orig. made in symfony] in it?? we are fairly certain any changes should be made within- and content- driven by- Symfony, not simply within the project using netbeans.. [am i correct??] any suggestions will be m-IT-ghtely appreciated. Martyn Biesheuvel Amsterdam -- 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
Re: [symfony-users] Output a excel file with phpexcel
thanks for answer but it still not working, i use your solutions but nothing the file is empty, and give me the same mistake do you believe that is an error from the library maybe is not recognize the library but i put it in lib directory the principal 2010/6/27 Michael Steinboeck michael.steinbo...@gmail.com 2010/6/25 diana catalina tobar lara catalina.tobar.l...@gmail.com: this-getResponse()-setHttpHeader('Content-Type:','application/ msexcel'); AFAIK this is not the proper mime type. Try : .xls application/vnd.ms-excel .xls application/x-excel .xls application/x-msexcel To create an excel, you dont need phpexcel, but create a regular html file, containing a table with your content, and put the excel-headers on top. -- LG, Michael Steinböck -- 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.comsymfony-users%2bunsubscr...@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] searchable + count-views-update = 100+ DB-Queries
Hi! =) I use the doctrine Searchable-behavior. I implemented a ViewCountable behavior, which always does this when viewing a record: $invoker-setNbViews($invoker-getNbViews() + 1); $invoker-save(); Well, the hook of the Searchable is executed by this and that causes 133 (and more!) DB-Queries when _viewing_ a record... that's bad^^ How can I bypass the Searchable-behavior on this save()? Thanks! comb -- 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: searchable + count-views-update = 100+ DB-Queries
I found out myself, if someone needs it: // increment $invoker-setNbViews($invoker-getNbViews() + 1); // save $q = Doctrine::getTable(get_class($invoker))-createQuery(); $q-update() -set($q-getRootAlias().'.nb_views', '?', $invoker-getNbViews()) -where($q-getRootAlias().'.id = ?', $invoker-getId()) -execute(); On 29 Jun., 00:20, comb sa...@gmx.net wrote: Hi! =) I use the doctrine Searchable-behavior. I implemented a ViewCountable behavior, which always does this when viewing a record: $invoker-setNbViews($invoker-getNbViews() + 1); $invoker-save(); Well, the hook of the Searchable is executed by this and that causes 133 (and more!) DB-Queries when _viewing_ a record... that's bad^^ How can I bypass the Searchable-behavior on this save()? Thanks! comb -- 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: .htaccess - redirect example.com/index.php to example.com
Hello Gabriel, Thanks for your answer. I tried this, but it provokes an infinite loop. Here the exact content of my .htaccess: === Options +FollowSymLinks +ExecCGI IfModule mod_rewrite.c RewriteEngine On RewriteCond %{REQUEST_URI} index\.php [NC] RewriteRule ^index.php$ http://www.example.com/ [L,R=301] RewriteCond %{REQUEST_FILENAME} !-f # no, so we redirect to our front web controller RewriteRule ^(.*)$ index.php [QSA,L] /IfModule === Mickael On 28 juin, 20:30, pghoratiu pghora...@gmail.com wrote: it should be ok if you put that rule in the following order: == RewriteCond %{REQUEST_URI} index\.php [NC] RewriteRule ^index.php$http://www.example.com/[L,R=301] # no, so we redirect to our front web controller RewriteRule ^(.*)$ index.php [QSA,L] == gabriel On Jun 28, 12:23 pm, Mickael HOAREAU mickael.hoar...@bysoft.fr wrote: Hello, In the default .htaccess of symfony we have: Options +FollowSymLinks +ExecCGI IfModule mod_rewrite.c RewriteEngine On # uncomment the following line, if you are having trouble # getting no_script_name to work #RewriteBase / # we skip all files with .something #RewriteCond %{REQUEST_URI} \..+$ #RewriteCond %{REQUEST_URI} !\.html$ #RewriteRule .* - [L] # we check if the .html version is here (caching) RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f # no, so we redirect to our front web controller RewriteRule ^(.*)$ index.php [QSA,L] /IfModule I would like to redirectwww.example.com/index.phptowww.example.com with a 301 redirection. One solution would be to add the following rule in the htaccess: RewriteCond %{REQUEST_URI} index\.php [NC] RewriteRule ^index.php$http://www.example.com/[L,R=301] But this rule makes a conflict with the rule : RewriteRule ^(.*)$ index.php [QSA,L] It provokes an infinite loop. Another option would to rename the script index.php to another name like frontend.php in the web folder. But before to do that i want to make sure that there is no other way to do this only by modifying the htaccess. Does anybody have an idea ? Thanks in advance for your help. Mickael -- 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: .htaccess - redirect example.com/index.php to example.com
I m not sure about your problembut have you tried no_script_name: true in settings.yml .. (use true for symfony version greater than 1.2 else use yes/no) On Jun 28, 2:23 pm, Mickael HOAREAU mickael.hoar...@bysoft.fr wrote: Hello, In the default .htaccess of symfony we have: Options +FollowSymLinks +ExecCGI IfModule mod_rewrite.c RewriteEngine On # uncomment the following line, if you are having trouble # getting no_script_name to work #RewriteBase / # we skip all files with .something #RewriteCond %{REQUEST_URI} \..+$ #RewriteCond %{REQUEST_URI} !\.html$ #RewriteRule .* - [L] # we check if the .html version is here (caching) RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f # no, so we redirect to our front web controller RewriteRule ^(.*)$ index.php [QSA,L] /IfModule I would like to redirectwww.example.com/index.phptowww.example.com with a 301 redirection. One solution would be to add the following rule in the htaccess: RewriteCond %{REQUEST_URI} index\.php [NC] RewriteRule ^index.php$http://www.example.com/[L,R=301] But this rule makes a conflict with the rule : RewriteRule ^(.*)$ index.php [QSA,L] It provokes an infinite loop. Another option would to rename the script index.php to another name like frontend.php in the web folder. But before to do that i want to make sure that there is no other way to do this only by modifying the htaccess. Does anybody have an idea ? Thanks in advance for your help. Mickael -- 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