Re: [symfony-users] Re: symfony 1.4 install
On Ne, 2010-04-18 at 21:42 -0700, Angel Robert Marquez wrote: Starting httpd: Warning: DocumentRoot [/home/sfprojects/jobeet/web] does not exist heh, obviously apache dont think so:) 1.) try: --- chmod 777 home chmod 777 sfprojects chmod 777 jobeet chmod 777 web if it not works try default conf as I suggested peter This file does exist pwd: /home/sfproject/jobeet/web total 28 drwxr-xr-x. 2 root root 4096 2010-04-17 15:47 css -rw-r--r--. 1 root root 595 2010-04-17 15:48 frontend_dev.php drwxr-xr-x. 2 root root 4096 2010-04-17 15:47 images -rw-r--r--. 1 root root 236 2010-04-17 15:48 index.php drwxr-xr-x. 2 root root 4096 2010-04-17 15:47 js -rw-r--r--. 1 root root 26 2010-04-17 15:47 robots.txt drwxrwxrwx. 3 root root 4096 2010-04-17 15:47 uploads On Sun, Apr 18, 2010 at 9:34 PM, Angel Robert Marquez angel.marq...@gmail.com wrote: okey, i have ubuntu so i dont know if it is different in fedora. but i remember also that i had problem with port 8080 or 8000 because for localhost it was set in /etc/apache2/ports.conf to listen on port 80. This is how I got things up and running on fedora: http://fedorasolved.org/server-solutions/lamp-stack It looks like port 80 was configured. -when you restart apache server it is without errors? service httpd restart Stopping httpd: [ OK ] Starting httpd: Warning: DocumentRoot [/home/sfprojects/jobeet/web] does not exist httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName [ OK ] (/etc/init.d/apache2 restart) -bash: /etc/init.d/apache2: No such file or directory -i also used the commands a2dissite default and a2ensite www and left Looking into these commands. No man by default. Do I need to install them? httpd.conf file blanc (attached file) Looking at this. -i would try to reinstall apache and try to run symfony in default configuration and default directory /var/www/web (have to edit default conf maybe) and if it works try to use diferent settings I'll do this when I have a moment and let you know what happens. Thank you! peter On So, 2010-04-17 at 16:11 -0700, angel.marquez wrote: Okay, I removed the initial install, logged in as root, svn co, modified the httpd.conf file, confirmed the port 8080 is in LISTEN column, checked the permissions on the directories, restarted mysql server and checked the url(s). I'm going to try on my mac next. Any ideas? Appreciate the help. /etc/httpd/conf # Be sure to only have this line once in your configuration NameVirtualHost 127.0.0.1:8080 # This is the configuration for your project Listen 8080 VirtualHost 127.0.0.1:8080 ServerName www.jobeet.com.localhost DocumentRoot /home/sfprojects/jobeet/web DirectoryIndex index.php Directory /home/sfprojects/jobeet/web AllowOverride All Allow from All /Directory Alias /sf /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf Directory /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf AllowOverride All Allow from All /Directory /VirtualHost netstat -tlnp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 7654/mysqld tcp0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1003/rpcbind tcp0
[symfony-users] Re: help_foreign key
Where is the question? On 15 dub, 14:04, safa boubekri boubekri.s...@gmail.com wrote: hello i need your help thank you very much in my schema i have field as foreign key but in the forms i must to write this field but normaly it will be written automatically because it is foreign key -- 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: changed fields
Where do you need to check this? If you are using doctrine, than you can do use in model $this- getModified(true/false) method On 18 dub, 12:58, Tamas Amon sajta...@gmail.com wrote: Hello, Something s misunderstood? On 15 April 2010 15:02, Tamas Amon sajta...@gmail.com wrote: Hello, I like to know if a form saved by update, which field is changed. How can I know this? Thanks -- Ámon Tamás -- Ámon Tamás -- 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: configuration problem!?
What about symfony check_configuration.php script? On 15 dub, 14:38, Andris andris.ve...@gmail.com wrote: When issuing command: symfony propel:data-load it fails with notice -- Unable to find adapter for datasource [i2]. I use symfony 1.4.5-DEV with latest sfPropel15Plugin. (XAMPP 1.7.4 on Windows 7 (64bit) environment) a) in phpMyAdmin set password for root user b) Created project with --orm=Propel c) Configured DB, using {php symfony configure:database mysql:host=localhost;dbname=i2 root rootpass} d) Later as written in plugin readme enabled plugin sfPropel15Plugin instead of sfPropelPlugin, and updated propel.ini propel.ini contents http://pastie.org/921089 databases.yml contents http://pastie.org/921096 my schema.xml contents http://pastie.org/921057 fixtures.yml contents http://pastie.org/921055 _ _ _ Please share your thoughts on this. Thank you for your time. -- 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: sort with paging
alright this works thanks a lot but now i'm having another problem i want to also sort on a variable that is first calculated in the object and then returned (so this is not present in the database) is there a way to sort the result from the pager? greetings On 16 apr, 13:43, Gareth McCumskey gmccums...@gmail.com wrote: Store the table parameters as a session variable with symfony's $this-getUser()-setAttribute() methods that can be called everytime you need to rebuild the table. We had to do this on our rather complex data table that has filtering by column values, sorting by column and pagination. It works really well. On Fri, Apr 16, 2010 at 2:40 PM, kim thechosendra...@gmail.com wrote: normaly that would be a good solution but in my case it isn't because you also have a search for this and the parameters are in a post but this is not in the same form and can't be in the same form so this will not work. On 16 apr, 12:09, Gareth McCumskey gmccums...@gmail.com wrote: I did mention this before on another question like this. Just create a link on the header to an action that then amends the criteria with an order by for the query each time and rerun the query with that new order by. On Fri, Apr 16, 2010 at 12:26 PM, kim thechosendra...@gmail.com wrote: oh yeah maybe i should also say it must be sorted by clicking the headers not just directly sort (cause this is just adding a order by and this is already done but i want them to be able by clicking the header it gets sorted on that table just like the standard admin does) On 16 apr, 11:21, kim thechosendra...@gmail.com wrote: thanks for you response i'm already using the sfDoctrinePager but i don't know how to use the addSortOrder? how do you use this? thanks :) greetings On 16 apr, 11:11, Alexandru-Emil Lupu gang.al...@gmail.com wrote: use the sfPager, sfPropelPager or sfDoctrinePager. It has a option like : addSortOrder or, you can use a custom Query to solve the problem. On Fri, Apr 16, 2010 at 12:34 PM, kim thechosendra...@gmail.com wrote: hi, I made a program with a table that you can search on and use pagination but now i want to sort it (like in the admin control but when i look at this code i can't finde the templates to see how it is done in there) and i couldn't use the admin because then i wouldn't have the liberty to change things and this is really needed for this project does anyone know how to do this sorting in symfony? i tried the jquery sorter but this one only sorts the page that is shown but i need to sort everything. Thanks greetings -- 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 -- Have a nice day! Alecs Certified ScrumMaster There are no cannibals alive! I have ate the last one yesterday ... 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 621 280 -- 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-Tekstuitoorspronkelijk bericht niet weergeven - - Tekst uit oorspronkelijk bericht weergeven - -- 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-Tekstuit oorspronkelijk bericht niet weergeven - - Tekst uit oorspronkelijk bericht weergeven - -- 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] Re: doctrine routing and slash problem - %2F
http://www.devcomments.com/Escape-2f-in-URL-solution-at105103.htm On 17 dub, 11:40, alexmm misiekaleksan...@gmail.com wrote: I database in column 'link' I have for example: documents/proposals documents/contracts And when I write ($link is an object which represents row in above table): link_to('some title', 'documents_route', $link); It converts slash to %2F so I have links: documents%2Fproposals documents%2Fcontracts How can I solve this ? -- 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] Form decorator
Thanks for the awesome write-up! :) Really helpful, cheers, Daniel On 19.04.2010, at 07:24, Gareth McCumskey wrote: So As I said before, I was going to do a blog post on this to sum up the entire thing. I have now finally done it if anyone is interested: http://www.synaq.com/news-releases/advanced-form-techniques-for-symfony Thanks again to Sid for the help On Tue, Feb 23, 2010 at 10:32 AM, Sid Bachtiar sid.bacht...@gmail.com wrote: and I know the names can cause some giggles but hey :P LOL ... so ... any interesting website project lately? :P Happy coding and bye for now. On Tue, Feb 23, 2010 at 9:20 PM, Gareth McCumskey gmccums...@gmail.com wrote: Well just to conclude this, I saw an example on one of the symfony docs about overwriting the formatRow method. Firstly, my big thanks to you Sid as I would not have gotten this far without your help the community again has come to the rescue. Now for anyone that may find this useful in future here is how it looks in the end: My form consists of some dynamic form fields created based on values sent in an array when the form is constructed: public function __construct($extra_inputs = array()) { $this-extra_inputs = $extra_inputs; parent::__construct(); } In addition I had to create my own custom widget which is essentially just an ajax link to an action that forwards the value of one input box to the action, adds that value to a session array, sends the session array to the form using the $extra_inputs parameter above and redisplays the form in the div with the new input box for that value added. So, my difficulty was that each new extra_input needed to use that ajax link widget again alongside it but would forward to a Remove action to remove that input from the session variable and hence from the form. What I needed was that each new dynamic extra_input and its associated Remove ajax link widget to be displayed one per line. My decorator class hence looks like such and I know the names can cause some giggles but hey :P : class mailAnalByRecip extends sfWidgetFormSchemaFormatter { protected $rowFormat = \n%error%\nspan class=\formRow\\nspan class=\formLabel\%label%/span\nspan class=\formField\%field%\n%help%/span/span\n%hidden_fields%, $helpFormat = 'span class=fieldHelp%help%/span', $errorRowFormat = span\n%errors%br //span\n, $errorListFormatInARow = ul%errors%/ul\n, $errorRowFormatInARow = li class=\error\darr; %error% darr;/li\n, $namedErrorRowFormatInARow = li class=\error\darr; %error% darr;/li\n, $decoratorFormat = %content%; protected $fields_to_format = array(); public function __construct(sfWidgetFormSchema $widgetSchema, $fields_to_format) { $this-fields_to_format = $fields_to_format; parent::__construct($widgetSchema); } public function formatRow($label, $field, $errors = array(), $help = '', $hiddenFields = null) { foreach ($this-fields_to_format as $field_name) { if (strpos($field, $field_name) !== false strpos($field, 'type=text') !== false) { $field = 'span class=field_row'.$field; } else if (strpos($field, $field_name) !== false strpos($field, 'a') !== false) { $field = $field.'/span'; } } $row = parent::formatRow($label, $field, $errors, $help, $hiddenFields); return $row; } } And in my form class at the very end of the configure() method: $decorator = new mailAnalByRecip($this-widgetSchema, $this-extra_inputs); $this-widgetSchema-addFormFormatter('custom', $decorator); $this-widgetSchema-setFormFormatterName('custom'); So there we go. A form class that dynamically creates widgets based on values in an array, as well as dynamically creating a custom ajax link widget and keeping the input and its ajax link widget associated visually using a custom form decorator class to add spans before and after the two widgets. WHEW! That was one HELLUVA learning experience LOL On Tue, Feb 23, 2010 at 10:09 AM, Sid Bachtiar sid.bacht...@gmail.com wrote: You attach your decorator class to your form, e.g.: class yourForm extends sfForm { function configure() { /* configure your fields */ $decorator = new yourFormFormatter($this-widgetSchema); $this-widgetSchema-addFormFormatter('custom', $decorator); $this-widgetSchema-setFormFormatterName('custom'); } } On Tue, Feb 23, 2010 at 8:55 PM, Gareth McCumskey gmccums...@gmail.com wrote: Just a question if I overwrite the formatRow method how do I return the newly formatted row to wherever eg
[symfony-users] Re: Colum alias in an aggregate query / Doctrine
This works for me. $q = $this-createQuery('p') -select('MAX(p.teid) as maxid'); return $q-fetchOne()-maxid; On 17 dub, 17:32, NOOVEO - Christophe Brun c.b...@nooveo.fr wrote: Hi Andrei, most unfortunately, it doesn't work either. My alias is still v__0 :o( De : symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] De la part de Andrei Dziahel Envoyé : samedi 17 avril 2010 17:08 À : symfony-users@googlegroups.com Objet : Re: [symfony-users] Colum alias in an aggregate query / Doctrine hi. -select('MAX(v.rang) AS max_rang, v.*') should do the job. Alias is not set because there's nothing to attach alias to. Because only one column is fetched by SELECT - an aggregate column itself. 2010/4/17 NOOVEO - Christophe Brun c.b...@nooveo.fr After the Doctrine documentation,http://www.doctrine-project.org/documentation/manual/1_2/en/dql-doctr... I'm trying a query like this : $vp = Doctrine_Query::create() -select('MAX(v.rang) AS max_rang') -from('VitrineParagraphe v') -where('v.vitrine_id = ?', $vitrineId) -execute(); The executed query, is after the logs : SELECT MAX(v.rang) AS v__0 FROM vitrine_paragraphe v WHERE (v.vitrine_id = ?) - (17) and of course, the further $vp-max_rang used to retrieve the desired value fails. Any ideas why the alias is not set ? -- 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 mailto:symfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- With the best regards, Andrei. -- 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 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] help_sfPhpExcelPlugi
hi, i have installed sfPhpexcel Plugin and set the default properties in config/phpexcel.yml, i got an error like this when i executed the command *$php plugins/sfPhpExcelPlugin/examples_1_2/01simple.php * after Create new PHPExcel object Fatal error: Class 'sfConfig' not found in /home/sfprojects/jobeet/plugins/sfPhpExcelPlugin/lib/sfPhpEx cel.class.php on line 9 i don't no were i went wrong... help me.. -- 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] help_sfPhpExcelPlugi
You're supposed to use it via symfony, not standalone. On Mon, Apr 19, 2010 at 13:42, safa boubekri boubekri.s...@gmail.com wrote: hi, i have installed sfPhpexcel Plugin and set the default properties in config/phpexcel.yml, i got an error like this when i executed the command $php plugins/sfPhpExcelPlugin/examples_1_2/01simple.php after Create new PHPExcel object Fatal error: Class 'sfConfig' not found in /home/sfprojects/jobeet/plugins/sfPhpExcelPlugin/lib/sfPhpEx cel.class.php on line 9 i don't no were i went wrong... help me.. -- 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] :-( please help. ajax problem - noob to ajax -probably simple
Hi, If anyone can help me I would be very grateful, I'm over my head but I think it is probably a simple thing i'm missing. I've got this far using the jobeet tutorial and various jQuery and symfony resources but I'm stuck. I'm trying to get an ajax jQuery treeMenu to work in symfony and I think I might be lacking basic understanding about how to set it up in Symfony. I'm using 1.4 and have installed the jQueryReloaded plugin so no problems there. Currently I am doing this in the show template which is where the tree should show. ?php echo javascript_include_tag('/js/jqueryFileTree/ jqueryFileTree') ; echo jq_javascript_tag( $(document).ready( function() { $('#fileTreeDemo_1').css('background-color','#999'); $('#fileTreeDemo_1').fileTree({ root: '/', script: '/folder/tree/ id/.$CmsFolder-getId().' }, function(file) { alert(file); }); }); ); ? This calls the jquery file tree thing fine. By interrupting the process in the script I can see that the div gets updated with the loading image so that's not the problem but looking in firebug I can see that there is a 404 happening, it says: POST http://www.domain.com/folder/tree/id/1 . If I access this action (which is the one supposed to return the stuff for the ajax) I get a 500 error, no template found (treeSuccess.php). I don't want a template, I just want to get the raw output of this action into this javascript function and I figure this is the problem. Just for reference. The tree menu script is here: http://pastebin.com/R1yW0C9t Thanks for taking a look, I'm tearing my hair out! -- 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: :-( please help. ajax problem - noob to ajax -probably simple
On 19 Apr, 14:43, Tofuwarrior psbur...@googlemail.com wrote: I don't want a template, I just want to get the raw output of this action into this javascript function and I figure this is the problem. So, you replied yourself: just skip the view in your action. You can do it with return $this-renderText('your js stuff') 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
Re: [symfony-users] :-( please help. ajax problem - noob to ajax -probably simple
All symfony actions will attempt to return the output of a template based on teh action name unless otherwise told. So if an action has the name tree (executeTree) it will attempt to render the template treeSuccess.php by default. If, however, you want to return your own content and not the default template you can override this functionality by using: return $this-renderText('Text content here even JSON'); On Mon, Apr 19, 2010 at 2:43 PM, Tofuwarrior psbur...@googlemail.com wrote: Hi, If anyone can help me I would be very grateful, I'm over my head but I think it is probably a simple thing i'm missing. I've got this far using the jobeet tutorial and various jQuery and symfony resources but I'm stuck. I'm trying to get an ajax jQuery treeMenu to work in symfony and I think I might be lacking basic understanding about how to set it up in Symfony. I'm using 1.4 and have installed the jQueryReloaded plugin so no problems there. Currently I am doing this in the show template which is where the tree should show. ?php echo javascript_include_tag('/js/jqueryFileTree/ jqueryFileTree') ; echo jq_javascript_tag( $(document).ready( function() { $('#fileTreeDemo_1').css('background-color','#999'); $('#fileTreeDemo_1').fileTree({ root: '/', script: '/folder/tree/ id/.$CmsFolder-getId().' }, function(file) { alert(file); }); }); ); ? This calls the jquery file tree thing fine. By interrupting the process in the script I can see that the div gets updated with the loading image so that's not the problem but looking in firebug I can see that there is a 404 happening, it says: POST http://www.domain.com/folder/tree/id/1 . If I access this action (which is the one supposed to return the stuff for the ajax) I get a 500 error, no template found (treeSuccess.php). I don't want a template, I just want to get the raw output of this action into this javascript function and I figure this is the problem. Just for reference. The tree menu script is here: http://pastebin.com/R1yW0C9t Thanks for taking a look, I'm tearing my hair out! -- 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 -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- 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] :-( please help. ajax problem - noob to ajax -probably simple
In addition there are other things you can do too like tell it to use a different template to the one that it will automatically look for (great for re-using a template you've created before) by doing: $this-setTemplate('templatefilename'); //Note no return word in fron and no Success.php at the end of the template name You can also instruct an action to load a partial instead for those AJAX responses where you need content rendered: return $this-renderPartial('partialname', array('variable1'=$variable1)); On Mon, Apr 19, 2010 at 2:43 PM, Tofuwarrior psbur...@googlemail.com wrote: Hi, If anyone can help me I would be very grateful, I'm over my head but I think it is probably a simple thing i'm missing. I've got this far using the jobeet tutorial and various jQuery and symfony resources but I'm stuck. I'm trying to get an ajax jQuery treeMenu to work in symfony and I think I might be lacking basic understanding about how to set it up in Symfony. I'm using 1.4 and have installed the jQueryReloaded plugin so no problems there. Currently I am doing this in the show template which is where the tree should show. ?php echo javascript_include_tag('/js/jqueryFileTree/ jqueryFileTree') ; echo jq_javascript_tag( $(document).ready( function() { $('#fileTreeDemo_1').css('background-color','#999'); $('#fileTreeDemo_1').fileTree({ root: '/', script: '/folder/tree/ id/.$CmsFolder-getId().' }, function(file) { alert(file); }); }); ); ? This calls the jquery file tree thing fine. By interrupting the process in the script I can see that the div gets updated with the loading image so that's not the problem but looking in firebug I can see that there is a 404 happening, it says: POST http://www.domain.com/folder/tree/id/1 . If I access this action (which is the one supposed to return the stuff for the ajax) I get a 500 error, no template found (treeSuccess.php). I don't want a template, I just want to get the raw output of this action into this javascript function and I figure this is the problem. Just for reference. The tree menu script is here: http://pastebin.com/R1yW0C9t Thanks for taking a look, I'm tearing my hair out! -- 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 -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- 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] Check object relations
Is it possible to check for an object if there are any foreign key restrictions in effect? So deletion of that object is not possible? -- 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] help_sfPhpExcelPlugi
yes because i developped projet with symfony1.3.3 i think thak i have problèmwith php_zip.dlland php_xml.dll it is not full i have this messag php statup: unable to load dynamic library C:\wamp\bin\php\php5.3.0\ext\ php_zip because theRequirements to use this plugin is that Requirements - PHP version 5.2 or higher - PHP extension php_zip enabled - PHP extension php_xml enabled -- 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] isValid always showing false
hello, To see if a object is correct i put it in a form (but never show it) then i try the isValid() function but this always shows false i tried to check global errors, errors but all arrays are empty this is my code: $form = new paperForm($paper); $form-disableCSRFProtection(); if($form-isValid()){ echo 'correct'; }else{ echo 'incorrect'; } PaperForm.Class public function configure() { $this-validatorSchema['email'] = new sfValidatorAnd(array($this- validatorSchema['email'], new sfValidatorEmail())); } it always shows incorrect. and when i echo $form-isValid(); it just shows nothing thanks Greetings -- 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: :-( please help. ajax problem - noob to ajax -probably simple
Thanks all, I knew about changing the template but not about the render text. I'm just off to try these things out now. Much appreciated. As a general principle is my approach ( ie pull the data from an action into the jQuery) correct. Thanks, Paul On 19 Apr, 14:17, Gareth McCumskey gmccums...@gmail.com wrote: In addition there are other things you can do too like tell it to use a different template to the one that it will automatically look for (great for re-using a template you've created before) by doing: $this-setTemplate('templatefilename'); //Note no return word in fron and no Success.php at the end of the template name You can also instruct an action to load a partial instead for those AJAX responses where you need content rendered: return $this-renderPartial('partialname', array('variable1'=$variable1)); On Mon, Apr 19, 2010 at 2:43 PM, Tofuwarrior psbur...@googlemail.com wrote: Hi, If anyone can help me I would be very grateful, I'm over my head but I think it is probably a simple thing i'm missing. I've got this far using the jobeet tutorial and various jQuery and symfony resources but I'm stuck. I'm trying to get an ajax jQuery treeMenu to work in symfony and I think I might be lacking basic understanding about how to set it up in Symfony. I'm using 1.4 and have installed the jQueryReloaded plugin so no problems there. Currently I am doing this in the show template which is where the tree should show. ?php echo javascript_include_tag('/js/jqueryFileTree/ jqueryFileTree') ; echo jq_javascript_tag( $(document).ready( function() { $('#fileTreeDemo_1').css('background-color','#999'); $('#fileTreeDemo_1').fileTree({ root: '/', script: '/folder/tree/ id/.$CmsFolder-getId().' }, function(file) { alert(file); }); }); ); ? This calls the jquery file tree thing fine. By interrupting the process in the script I can see that the div gets updated with the loading image so that's not the problem but looking in firebug I can see that there is a 404 happening, it says: POSThttp://www.domain.com/folder/tree/id/1 . If I access this action (which is the one supposed to return the stuff for the ajax) I get a 500 error, no template found (treeSuccess.php). I don't want a template, I just want to get the raw output of this action into this javascript function and I figure this is the problem. Just for reference. The tree menu script is here:http://pastebin.com/R1yW0C9t Thanks for taking a look, I'm tearing my hair out! -- 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 -- Gareth McCumskeyhttp://garethmccumskey.blogspot.com twitter: @garethmcc -- 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] sfGuardUserProfile fixtures file population - possible?
Hi all, Perhaps I'm being dumb but shouldn't it be possible to do this? sfGuardUser: sfGuardUser_1: username: clearintent password: Muaddib is_super_admin: true sfGuardUserProfile: first_name: Clear last_name: Intent email: m...@mail.com in the sfGuard fixtures file so it populates the profile table as well. schema is: sf_guard_user_profile: _attributes: { phpName: sfGuardUserProfile } id: user_id: { type: integer, foreignTable: sf_guard_user, foreignReference: id, required: true, onDelete: cascade } email: type: varchar(100) notnull: true unique: true first_name: varchar(30) last_name: varchar(50) I get Unable to parse line 7 ( sfGuardUserProfile:) - :-( Anyone? P -- 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: :-( please help. ajax problem - noob to ajax -probably simple
Hi all, So, some progress but still, not working and 2 seperate issues I think. 1) When I return renderText the output still been decorated by the debug toolbar. This is when i access /folder/tree/id/1 directly. - Is this because I am not calling this with jq_remote_function ?(I read somethign about ajax calls being automatically detected by symfony and so it bypassing decorating with debug toolbar etc. I'm just doing this echo jq_javascript_tag( $(document).ready( function() { $('#fileTreeDemo_1').css('background-color','#999'); $('#fileTreeDemo_1').fileTree({ root: '/', script: '/folder/tree/ id/.$CmsFolder-getId().' }, function(file) { alert(file); }); }); ); So will symfony still detect the xmlhttprequest status in the same way. 2) When I call this url from the function firebug still shows JQuery reporting receiving a 404 from the same url above that was accessed fine directly - ?!?!? Erm. You guys/gals got any ideas on how I couold proceed? Cheers, Paul On 19 Apr, 15:46, Tofuwarrior psbur...@googlemail.com wrote: Thanks all, I knew about changing the template but not about the render text. I'm just off to try these things out now. Much appreciated. As a general principle is my approach ( ie pull the data from an action into the jQuery) correct. Thanks, Paul On 19 Apr, 14:17, Gareth McCumskey gmccums...@gmail.com wrote: In addition there are other things you can do too like tell it to use a different template to the one that it will automatically look for (great for re-using a template you've created before) by doing: $this-setTemplate('templatefilename'); //Note no return word in fron and no Success.php at the end of the template name You can also instruct an action to load a partial instead for those AJAX responses where you need content rendered: return $this-renderPartial('partialname', array('variable1'=$variable1)); On Mon, Apr 19, 2010 at 2:43 PM, Tofuwarrior psbur...@googlemail.com wrote: Hi, If anyone can help me I would be very grateful, I'm over my head but I think it is probably a simple thing i'm missing. I've got this far using the jobeet tutorial and various jQuery and symfony resources but I'm stuck. I'm trying to get an ajax jQuery treeMenu to work in symfony and I think I might be lacking basic understanding about how to set it up in Symfony. I'm using 1.4 and have installed the jQueryReloaded plugin so no problems there. Currently I am doing this in the show template which is where the tree should show. ?php echo javascript_include_tag('/js/jqueryFileTree/ jqueryFileTree') ; echo jq_javascript_tag( $(document).ready( function() { $('#fileTreeDemo_1').css('background-color','#999'); $('#fileTreeDemo_1').fileTree({ root: '/', script: '/folder/tree/ id/.$CmsFolder-getId().' }, function(file) { alert(file); }); }); ); ? This calls the jquery file tree thing fine. By interrupting the process in the script I can see that the div gets updated with the loading image so that's not the problem but looking in firebug I can see that there is a 404 happening, it says: POSThttp://www.domain.com/folder/tree/id/1 . If I access this action (which is the one supposed to return the stuff for the ajax) I get a 500 error, no template found (treeSuccess.php). I don't want a template, I just want to get the raw output of this action into this javascript function and I figure this is the problem. Just for reference. The tree menu script is here:http://pastebin.com/R1yW0C9t Thanks for taking a look, I'm tearing my hair out! -- 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 -- Gareth McCumskeyhttp://garethmccumskey.blogspot.com twitter: @garethmcc -- 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
[symfony-users] performance problem with sfDoctrinePage on symfony 1.2
Hi all, I have a performance problem on a page using sfDoctrinePager. It takes more than 5 seconds to display the page on local server. Let's see the code in my actions.class about the pager : $this-product = $this-getRoute()-getObject(); $this-pager = new sfDoctrinePager( 'Product', sfConfig::get('app_max_products_on_shop')); $this-pager-setQuery($this-product-getShopProductsQuery($tri)); $this-pager-setPage($request-getParameter('page',1)); $this-pager-init(); In my template I'm using a partial : ?php include_partial('shop/list',array('products' = $pager-getResults())); ? And in my partial list I have this : ?php foreach ($products as $i = $product): ? !-- code to display product list -- ?php endforeach; ? Have anybody an idea about this performance problem ? -- 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] sfGuardUserProfile fixtures file population - possible?
It is possible, but from what i am seeing, your schema is malformed. sfGuardUser: sfGuardUser_1: username: clearintent password: Muaddib is_super_admin: true sfGuardUserProfile: # here you had several spaces more than it was needed first_name: Clear # here you had several spaces more than it was needed last_name: Intent # here you had several spaces more than it was needed email: m...@mail.com # here you had several spaces more than it was needed On Mon, Apr 19, 2010 at 5:50 PM, Tofuwarrior psbur...@googlemail.com wrote: Hi all, Perhaps I'm being dumb but shouldn't it be possible to do this? sfGuardUser: sfGuardUser_1: username: clearintent password: Muaddib is_super_admin: true sfGuardUserProfile: first_name: Clear last_name: Intent email: m...@mail.com in the sfGuard fixtures file so it populates the profile table as well. schema is: sf_guard_user_profile: _attributes: { phpName: sfGuardUserProfile } id: user_id: { type: integer, foreignTable: sf_guard_user, foreignReference: id, required: true, onDelete: cascade } email: type: varchar(100) notnull: true unique: true first_name: varchar(30) last_name: varchar(50) I get Unable to parse line 7 ( sfGuardUserProfile:) - :-( Anyone? P -- 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 -- Have a nice day! Alecs Certified ScrumMaster There are no cannibals alive! I have ate the last one yesterday ... 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 621 280 -- 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: sfGuardUserProfile fixtures file population - possible?
Thanks, that sorted that problem, great. now it says Call to undefined method: setSfGuardUserProfile Not quite sure what I should change it too, any idea? TW On 19 Apr, 16:22, Alexandru-Emil Lupu gang.al...@gmail.com wrote: It is possible, but from what i am seeing, your schema is malformed. sfGuardUser: sfGuardUser_1: username: clearintent password: Muaddib is_super_admin: true sfGuardUserProfile: # here you had several spaces more than it was needed first_name: Clear # here you had several spaces more than it was needed last_name: Intent # here you had several spaces more than it was needed email: m...@mail.com # here you had several spaces more than it was needed On Mon, Apr 19, 2010 at 5:50 PM, Tofuwarrior psbur...@googlemail.com wrote: Hi all, Perhaps I'm being dumb but shouldn't it be possible to do this? sfGuardUser: sfGuardUser_1: username: clearintent password: Muaddib is_super_admin: true sfGuardUserProfile: first_name: Clear last_name: Intent email: m...@mail.com in the sfGuard fixtures file so it populates the profile table as well. schema is: sf_guard_user_profile: _attributes: { phpName: sfGuardUserProfile } id: user_id: { type: integer, foreignTable: sf_guard_user, foreignReference: id, required: true, onDelete: cascade } email: type: varchar(100) notnull: true unique: true first_name: varchar(30) last_name: varchar(50) I get Unable to parse line 7 ( sfGuardUserProfile:) - :-( Anyone? P -- 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 -- Have a nice day! Alecs Certified ScrumMaster There are no cannibals alive! I have ate the last one yesterday ... 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 621 280 -- 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: :-( please help. ajax problem - noob to ajax -probably simple
OK, I think I'm nearly there. If i use the bundled php connector for the treeMenu script it works fine so I know it works. $('#fileTreeDemo_1').fileTree({ root: '/', script: '/js/jqueryFileTree/ connectors/jqueryFileTree.php?id=.$CmsFolder-getId().' }, function(file) { BUT when I substitute my own $('#fileTreeDemo_1').fileTree({ root: '/', script: '/folder/tree/id/. $CmsFolder-getId().' }, function(file) { for the bundled one firebug shows a 404 error for that url. I can access the url fine directly and it outputs the same format ulliblah blah/li/ul as the bundled connector except with the web debug attached to it but I presume that is because when i access it directly xmlHttpRequest is false so symfony decorates it with the debug stuff. Anyone got any ideas of where to look? Thanks, TW On 19 Apr, 15:46, Tofuwarrior psbur...@googlemail.com wrote: Thanks all, I knew about changing the template but not about the render text. I'm just off to try these things out now. Much appreciated. As a general principle is my approach ( ie pull the data from an action into the jQuery) correct. Thanks, Paul On 19 Apr, 14:17, Gareth McCumskey gmccums...@gmail.com wrote: In addition there are other things you can do too like tell it to use a different template to the one that it will automatically look for (great for re-using a template you've created before) by doing: $this-setTemplate('templatefilename'); //Note no return word in fron and no Success.php at the end of the template name You can also instruct an action to load a partial instead for those AJAX responses where you need content rendered: return $this-renderPartial('partialname', array('variable1'=$variable1)); On Mon, Apr 19, 2010 at 2:43 PM, Tofuwarrior psbur...@googlemail.com wrote: Hi, If anyone can help me I would be very grateful, I'm over my head but I think it is probably a simple thing i'm missing. I've got this far using the jobeet tutorial and various jQuery and symfony resources but I'm stuck. I'm trying to get an ajax jQuery treeMenu to work in symfony and I think I might be lacking basic understanding about how to set it up in Symfony. I'm using 1.4 and have installed the jQueryReloaded plugin so no problems there. Currently I am doing this in the show template which is where the tree should show. ?php echo javascript_include_tag('/js/jqueryFileTree/ jqueryFileTree') ; echo jq_javascript_tag( $(document).ready( function() { $('#fileTreeDemo_1').css('background-color','#999'); $('#fileTreeDemo_1').fileTree({ root: '/', script: '/folder/tree/ id/.$CmsFolder-getId().' }, function(file) { alert(file); }); }); ); ? This calls the jquery file tree thing fine. By interrupting the process in the script I can see that the div gets updated with the loading image so that's not the problem but looking in firebug I can see that there is a 404 happening, it says: POSThttp://www.domain.com/folder/tree/id/1 . If I access this action (which is the one supposed to return the stuff for the ajax) I get a 500 error, no template found (treeSuccess.php). I don't want a template, I just want to get the raw output of this action into this javascript function and I figure this is the problem. Just for reference. The tree menu script is here:http://pastebin.com/R1yW0C9t Thanks for taking a look, I'm tearing my hair out! -- 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 -- Gareth McCumskeyhttp://garethmccumskey.blogspot.com twitter: @garethmcc -- 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
[symfony-users] Question regarding HTTP-only cookie feature
Hi all, I am a security researcher at University of Virginia, I am currently doing research on HTTP-only cookie deployment. May I ask do symfony support HTTP-only cookies, if yes, what is the default configuration for symfony? In other words, do the HTTP servers need to set HTTP-only manually or it applies automatically? Many thanks in advance, Yuchen -- 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] Troubleshooting view loading extremely slowly.
Hi, I posted this thread on the forum, and was wondering if anyone here could perhaps help with the problem? http://forum.symfony-project.org/index.php/t/26796/ Several of my views are loading in an unreasonably slow time on the production controller. I was wondering if anyone has seen this issue and knows what causes it? I will repost the logs from the original post here: I have turned logging on for the frontend production controller, and the log clearly shows where the time goes: Apr 16 14:56:38 symfony [info] {sfViewCacheManager} Cache for @sf_cache_partial?module=resultstableaction=_list_th_ta bularsf_cache_key=0ad0c7db2785e069bcc3b51950782727 does not exist Apr 16 14:56:38 symfony [info] {sfPartialView} Render /var/www// httpdocs/apps/front/modules/resultstable/templ ates/ _list_th_tabular.php Apr 16 14:56:38 symfony [info] {sfViewCacheManager} Save cache for @sf_cache_partial?module=resultstableaction=_list_th_ta bularsf_cache_key=0ad0c7db2785e069bcc3b51950782727 Apr 16 14:58:06 symfony [info] {sfPHPView} Decorate content with /var/ www//httpdocs/apps/front/templates/layout.php Apr 16 14:58:06 symfony [info] {sfPHPView} Render /var/www// httpdocs/apps/front/templates/layout.php Apr 16 14:58:06 symfony [info] {main} Call element-executeHeader() You can see that Symfony is processing some caching then stops for around 90 seconds. Here's another log with the caching turned off completely for the frontend application: Apr 16 15:25:35 symfony [info] {sfPartialView} Render /var/www// httpdocs/apps/front/modules/resultstable/templ ates/_filters.php Apr 16 15:25:36 symfony [info] {sfPartialView} Render /var/www// httpdocs/apps/front/modules/resultstable/templ ates/ _list_th_tabular.php Apr 16 15:27:12 symfony [info] {sfPHPView} Decorate content with /var/ www//httpdocs/apps/front/templates/layout.php Apr 16 15:27:12 symfony [info] {sfPHPView} Render /var/www// httpdocs/apps/front/templates/layout.php Any ideas would be gratefully received. Eris -- 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] installation problem with php_posix extension
During my configuration check I get the following: -- php.ini used by PHP: C:\Program Files\PHP\php.ini ** Mandatory requirements ** OKPHP version is at least 5.2.4 (5.2.5) ** Optional checks ** OKPDO is installed [[WARNING]] PDO has some drivers installed: : FAILED *** Install PDO drivers (mandatory for Propel and Doctrine) *** OKPHP-XML module is installed OKXSL module is installed OKThe token_get_all() function is available OKThe mb_strlen() function is available OKThe iconv() function is available OKThe utf8_decode() is available [[WARNING]] The posix_isatty() is available: FAILED *** Install and enable the php_posix extension (used to colorized the CLI output) *** OKA PHP accelerator is installed OKphp.ini has short_open_tag set to off OKphp.ini has magic_quotes_gpc set to off OKphp.ini has register_globals set to off OKphp.ini has session.auto_start set to off OKPHP version is not 5.2.9 --- 1. Where can I get the php_posix extension - it is not on my system in extension folder, and how do I fix the PDO driver message? 2. How do I use the symfony command line on windows ? Thanks, Bill -- 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: isValid always showing false
Form validates only during sfForm::bind and only values given to sfForm::bind, ie try $form = new paperForm(); $form-bind( array( 'paper' = $paper )); if ( $form-isValid() ){ } But are you sure to use form for purposes? sfForm is designed for user input, not for another things On Apr 19, 5:37 pm, kim thechosendra...@gmail.com wrote: hello, To see if a object is correct i put it in a form (but never show it) then i try the isValid() function but this always shows false i tried to check global errors, errors but all arrays are empty this is my code: $form = new paperForm($paper); $form-disableCSRFProtection(); if($form-isValid()){ echo 'correct'; }else{ echo 'incorrect'; } PaperForm.Class public function configure() { $this-validatorSchema['email'] = new sfValidatorAnd(array($this-validatorSchema['email'], new sfValidatorEmail())); } it always shows incorrect. and when i echo $form-isValid(); it just shows nothing thanks Greetings -- 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] Oracle Clob return Resource id #3
Hi, my name is Cristian, At the moment, I am working with Symfony Framework and I´ve a problem with the fields type Clob (Oracle). This type Clob return me Resource id#3. I would like that you can help me with this problem. schema: DocumentTplSection: actAs: { Timestampable: ~ } columns: id: type: integer unsigned: true primary: true notnull: true autoincrement: true name: type: string(64) notes: type: clob content: type: clob query: $q = new Doctrine_Query(); $this-result = $q-select('ds.*') -from('DocumentTplSection ds') -where('ds.id = ?', 7) -execute()-getFirst(); sintaxis: $result-DocumentTplSection[0]-get('content'); Result: Resource id #3 Thanks, -- 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] help_sfPhpExcelPlugi
Hi, Use the same example in an action of a module. It will work perfectly. But prior to that do php symfony cc to autoload the sfPhpExcel Plugin. Regards Deepak Bhatia On Mon, Apr 19, 2010 at 5:12 PM, safa boubekri boubekri.s...@gmail.comwrote: hi, i have installed sfPhpexcel Plugin and set the default properties in config/phpexcel.yml, i got an error like this when i executed the command *$php plugins/sfPhpExcelPlugin/examples_1_2/01simple.php * after Create new PHPExcel object Fatal error: Class 'sfConfig' not found in /home/sfprojects/jobeet/plugins/sfPhpExcelPlugin/lib/sfPhpEx cel.class.php on line 9 i don't no were i went wrong... help me.. -- 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] Re: Troubleshooting view loading extremely slowly.
Hello! My suspicion is that you have some I/O timeout when the cache is created first, due to insufficient access rights. Check if the permissions for the cache folder are set up correctly. Second you should do some tests with that disk, copying files around to check the speed of the HDD. Try your code also on a second machine to exclude hardware problems. gabriel On Apr 19, 12:32 am, ErisDS eri...@gmail.com wrote: Hi, I posted this thread on the forum, and was wondering if anyone here could perhaps help with the problem? http://forum.symfony-project.org/index.php/t/26796/ Several of my views are loading in an unreasonably slow time on the production controller. I was wondering if anyone has seen this issue and knows what causes it? I will repost the logs from the original post here: I have turned logging on for the frontend production controller, and the log clearly shows where the time goes: Apr 16 14:56:38 symfony [info] {sfViewCacheManager} Cache for @sf_cache_partial?module=resultstableaction=_list_th_ta bularsf_cache_key=0ad0c7db2785e069bcc3b51950782727 does not exist Apr 16 14:56:38 symfony [info] {sfPartialView} Render /var/www// httpdocs/apps/front/modules/resultstable/templ ates/ _list_th_tabular.php Apr 16 14:56:38 symfony [info] {sfViewCacheManager} Save cache for @sf_cache_partial?module=resultstableaction=_list_th_ta bularsf_cache_key=0ad0c7db2785e069bcc3b51950782727 Apr 16 14:58:06 symfony [info] {sfPHPView} Decorate content with /var/ www//httpdocs/apps/front/templates/layout.php Apr 16 14:58:06 symfony [info] {sfPHPView} Render /var/www// httpdocs/apps/front/templates/layout.php Apr 16 14:58:06 symfony [info] {main} Call element-executeHeader() You can see that Symfony is processing some caching then stops for around 90 seconds. Here's another log with the caching turned off completely for the frontend application: Apr 16 15:25:35 symfony [info] {sfPartialView} Render /var/www// httpdocs/apps/front/modules/resultstable/templ ates/_filters.php Apr 16 15:25:36 symfony [info] {sfPartialView} Render /var/www// httpdocs/apps/front/modules/resultstable/templ ates/ _list_th_tabular.php Apr 16 15:27:12 symfony [info] {sfPHPView} Decorate content with /var/ www//httpdocs/apps/front/templates/layout.php Apr 16 15:27:12 symfony [info] {sfPHPView} Render /var/www// httpdocs/apps/front/templates/layout.php Any ideas would be gratefully received. Eris -- 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] ayuda con __string()
ya eh hecho lo que dice la guia de jobeet para cambiar la salida de la clave Externa de mi aplicacion, pero al querer que mi usuario salga con nombres y apellido siempre me muestra el id, no se que estoy haciendo mal, el perfile me lo muestra bien porque tiene como nombre de campo title y el lo toma por defecto. mi schema.yml es el siguiente: Usuario: tableName: usuarios columns: id: type: integer(4) primary: true notnull: true autoincrement: true nombre: type: string(50) notnull: true apellido_p: type: string(50) notnull: true apellido_m: type: string(50) notnull: true nick: type: string(50) notnull: true password: type: string(90) notnull: true direccion: type: string(90) notnull: true telefono: type: string(20) notnull: true email: type: string(255) notnull: true celular: type: string(20) notnull: true estadosusu_id: type: integer(4) notnull: true numdoc: type: string(25) notnull: true tipodocumento_id: type: integer(4) notnull: true Perfilesusuario: columns: id: type: integer(4) primary: true notnull: true autoincrement: true perfiles_id: type: integer(4) notnull: true usuarios_id: type: integer(4) notnull: true relations: perfiles_: class: Perfile local: perfiles_id foreign: id foreignAlias: Perfiles usuarios_: class: Usuario local: usuarios_id foreign: id foreignAlias: Usuarioes mi archivo lib/model/Perfilesusuario.class.php es el siguiente: class Perfilesusuario extends BasePerfilesusuario { public function __toString() { return $this-getNombre(). .$this-getApellidoP(). .$this- getApellidoM(); } } mi archivo lib/form/doctrine/PerfilesusuarioForm.class.php es el siguiente: class PerfilesusuarioForm extends BasePerfilesusuarioForm { public function configure() { } } mi archivo lib/form/doctrine/base/BasePerfilesusuarioForm.class.php es el siguiente: abstract class BasePerfilesusuarioForm extends BaseFormDoctrine { public function setup() { $this-setWidgets(array( 'id' = new sfWidgetFormInputHidden(), 'perfiles_id' = new sfWidgetFormDoctrineChoice(array('model' = $this-getRelatedModelName('perfiles_'), 'add_empty' = false)), 'usuarios_id' = new sfWidgetFormDoctrineChoice(array('model' = $this-getRelatedModelName('usuarios_'), 'add_empty' = false)), )); $this-setValidators(array( 'id' = new sfValidatorDoctrineChoice(array('model' = $this-getModelName(), 'column' = 'id', 'required' = false)), 'perfiles_id' = new sfValidatorDoctrineChoice(array('model' = $this-getRelatedModelName('perfiles_'))), 'usuarios_id' = new sfValidatorDoctrineChoice(array('model' = $this-getRelatedModelName('usuarios_'))), )); $this-widgetSchema-setNameFormat('perfilesusuario[%s]'); $this-errorSchema = new sfValidatorErrorSchema($this- validatorSchema); $this-setupInheritance(); parent::setup(); } public function getModelName() { return 'Perfilesusuario'; } } serian muy amables se se pudiese despegar esta duda -- 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] Taille d'un Array dans doctrine
Bonjour, Je voudrais connaître le taille (nombre d'élément maximal) pour un champ de type Array dans doctrine. Car j'ai beau mettre : words: { type: array(1000) } le champ reste toujours mediumtext. Peut être que je m'y prend mal... Merci d'avance ! Cordialement, -- 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] Jquery and AJAX symfony 1.4
Hello, I want to call a simple action without passing any argument inside a jquery function. No argument because a random function is called inside the action. The routing (in input and output) is this: plantyourtree: url: /tree/plantyourtree param: { module: tree, action: new } the js file looks like this: $(document).ready(function() { $('#change').click(function(){ ? }); }); The action associated with is: public function executeNew(sfWebRequest $request) { $this-zulu_tree_sample = Doctrine::getTable('ZuluTree')- find(rand(1,Doctrine::getTable('ZuluTree')-count())); $this-form = new ZuluTreeForm(); if ($request-isXmlHttpRequest()) { ? } } In the template newSuccess.php, there is a form and a div where we display information relative to zulu_tree_sample and which needs to be refreshed each time we push the change button. The template associated with is: div id=left_column ?php echo $zulu_tree_sample-getName() ? /div input type=submit id=change value=Change div id=right_column ?php include_partial('form', array('form' = $form)) ? /div I dont' know what to put instead of ?? 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] isValid always showing false
You need to bind values to it or a form cannot say if it's valid or not. ;-) What are you validating with it? I mean, what code should be executed when you validating the object? Daniel Sent from my iPhone On Apr 19, 2010, at 4:37 PM, kim thechosendra...@gmail.com wrote: hello, To see if a object is correct i put it in a form (but never show it) then i try the isValid() function but this always shows false i tried to check global errors, errors but all arrays are empty this is my code: $form = new paperForm($paper); $form-disableCSRFProtection(); if($form-isValid()){ echo 'correct'; }else{ echo 'incorrect'; } PaperForm.Class public function configure() { $this-validatorSchema['email'] = new sfValidatorAnd(array($this- validatorSchema['email'], new sfValidatorEmail())); } it always shows incorrect. and when i echo $form-isValid(); it just shows nothing thanks Greetings -- 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] Jquery and AJAX symfony 1.4
Well, it's very easy, use ajax like a single php file. View: Use a the helper ?php echo url_for('YOUR_MODULE/index'); ? to decide for what URL to send, inside your script tag, assign to a javascript variable Controller (action) $this-getResponse()-setHttpHeader('Content-type','text/json'); return $this-renderText('SOMETHING VERY USEFULLY); All the other interactions will be equal, 2010/4/19 trankh juliend1...@gmail.com Hello, I want to call a simple action without passing any argument inside a jquery function. No argument because a random function is called inside the action. The routing (in input and output) is this: plantyourtree: url: /tree/plantyourtree param: { module: tree, action: new } the js file looks like this: $(document).ready(function() { $('#change').click(function(){ ? }); }); The action associated with is: public function executeNew(sfWebRequest $request) { $this-zulu_tree_sample = Doctrine::getTable('ZuluTree')- find(rand(1,Doctrine::getTable('ZuluTree')-count())); $this-form = new ZuluTreeForm(); if ($request-isXmlHttpRequest()) { ? } } In the template newSuccess.php, there is a form and a div where we display information relative to zulu_tree_sample and which needs to be refreshed each time we push the change button. The template associated with is: div id=left_column ?php echo $zulu_tree_sample-getName() ? /div input type=submit id=change value=Change div id=right_column ?php include_partial('form', array('form' = $form)) ? /div I dont' know what to put instead of ?? 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.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Welington da Veiga Silva --- Há pessoas que transformam o sol numa simples mancha amarela, mas há aquelas que fazem de uma simples mancha amarela o próprio sol. ( Pablo Picasso ) -- 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] google analytics trackPageview and ajax helpers
I was wondering if there was anyone who had built the google analytics pageview tracking call into the jquery ajax helpers (or done something else to track ajax through google analytics). google analytics allows you to manually trigger a pageview that you can use to track ajax page loads: http://www.google.com/support/googleanalytics/bin/answer.py?answer=55521 This code could ideally be generated when the link helpers build code. Has anyone out there done this? ashton -- 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] help_sfPhpExcelPlugi
i do it symfony cc but the same msg -- 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: Jquery and AJAX symfony 1.4
I'm sorry but i prefer you write the code because i don't get it. Why do you use json? Thanks On 19 avr, 20:40, Welington Veiga welington.ve...@gmail.com wrote: Well, it's very easy, use ajax like a single php file. View: Use a the helper ?php echo url_for('YOUR_MODULE/index'); ? to decide for what URL to send, inside your script tag, assign to a javascript variable Controller (action) $this-getResponse()-setHttpHeader('Content-type','text/json'); return $this-renderText('SOMETHING VERY USEFULLY); All the other interactions will be equal, 2010/4/19 trankh juliend1...@gmail.com Hello, I want to call a simple action without passing any argument inside a jquery function. No argument because a random function is called inside the action. The routing (in input and output) is this: plantyourtree: url: /tree/plantyourtree param: { module: tree, action: new } the js file looks like this: $(document).ready(function() { $('#change').click(function(){ ? }); }); The action associated with is: public function executeNew(sfWebRequest $request) { $this-zulu_tree_sample = Doctrine::getTable('ZuluTree')- find(rand(1,Doctrine::getTable('ZuluTree')-count())); $this-form = new ZuluTreeForm(); if ($request-isXmlHttpRequest()) { ? } } In the template newSuccess.php, there is a form and a div where we display information relative to zulu_tree_sample and which needs to be refreshed each time we push the change button. The template associated with is: div id=left_column ?php echo $zulu_tree_sample-getName() ? /div input type=submit id=change value=Change div id=right_column ?php include_partial('form', array('form' = $form)) ? /div I dont' know what to put instead of ?? 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.comsymfony-users%2bunsubscr...@goog legroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Welington da Veiga Silva --- Há pessoas que transformam o sol numa simples mancha amarela, mas há aquelas que fazem de uma simples mancha amarela o próprio sol. ( Pablo Picasso ) -- 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: help_sfPhpExcelPlugi
Hello maybe you can settle with something simpler. My tip is http://snippets.symfony-project.org/snippet/364 On 19 abr, 17:04, safa boubekri boubekri.s...@gmail.com wrote: i do it symfony cc but the same msg -- 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] help_sfPhpExcelPlugi
Hi, I am saying use the code in the action of a module. Please let me know if you understand action of a module. public function executeFiledownload($request) { // Create new PHPExcel object $objPHPExcel = new sfPhpExcel(); // Set active sheet index to the first sheet, so Excel opens this as the first sheet $objPHPExcel-setActiveSheetIndex(0); // Set properties $objPHPExcel-getProperties()-setCreator(Maarten Balliauw); $objPHPExcel-getProperties()-setLastModifiedBy(Maarten Balliauw); $objPHPExcel-getProperties()-setTitle(Office 2007 XLSX Test Document); $objPHPExcel-getProperties()-setSubject(Office 2007 XLSX Test Document); $objPHPExcel-getProperties()-setDescription(Test document for Office 2007 XLSX, generated using PHP classes.); $objPHPExcel-getProperties()-setKeywords(office 2007 openxml php); $objPHPExcel-getProperties()-setCategory(Test result file); // Set default font $objPHPExcel-getActiveSheet()-getDefaultStyle()-getFont()-setName('Arial'); $objPHPExcel-getActiveSheet()-getDefaultStyle()-getFont()-setSize(12); $objPHPExcel-getActiveSheet()-getColumnDimension('A')-setWidth(6); $objPHPExcel-getActiveSheet()-getColumnDimension('B')-setWidth(25); $objPHPExcel-getActiveSheet()-getColumnDimension('C')-setWidth(22); $objPHPExcel-getActiveSheet()-getColumnDimension('D')-setWidth(13); $objPHPExcel-getActiveSheet()-getColumnDimension('E')-setWidth(12); // Save Excel 2007 file $objWriter = new PHPExcel_Writer_Excel5($objPHPExcel); $todaydate = date(d-m-y); $todaydate = $todaydate.'-'.date(H-i-s); $filename = 'Reports'; $filename = $filename.'-'.$todaydate; $filename = $filename.'.xls'; $filename = '/var/tmp/'.$filename; $objWriter-save($filename); } On Tue, Apr 20, 2010 at 1:34 AM, safa boubekri boubekri.s...@gmail.comwrote: i do it symfony cc but the same msg -- 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
Re: [symfony-users] Security user problem[New to Symfony] sfBasicSecurityUser
Read the doc, and wont be bad to have a look in the auth plugins. The rest is up to symfony internals. sent via htc magic On Apr 20, 2010 2:50 AM, Andro Fumero fugitive...@yahoo.com wrote: hello users-helpers, Im already done with setting up security: all: is_secure: true credentials: [admin] can someone give me a hint where to start in creating security of the page. I don't want to use any plugins which i already read of few like sfDoctrineGuardPlugin , i want to understand the concept about this one before moving on. public function executeUser(sfWebRequest $request) { $q = Doctrine_Query::create() -select('u.username, u.profileid,u.realname') -from('User as u') -leftJoin('u.Profile p') -where('u.username = ?', $request-getParameter('username')) -andWhere('u.pword = ?', $request-getParameter('pword')); $this-users = $q-execute(); } what will i need to do next since I already had the result of the following query? when do i start using $user-setAuthenticated(true); and how does it become global? can some one make me understand. im very fresh and very frustrated in understanding this. Thank you in advance. God bless helping symfony-users. -- 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
Re: [symfony-users] Taille d'un Array dans doctrine
Please use english on this list, or look for french list. Thanks. sent via htc magic On Apr 19, 2010 8:46 PM, kassak albin.kes...@gmail.com wrote: Bonjour, Je voudrais connaître le taille (nombre d'élément maximal) pour un champ de type Array dans doctrine. Car j'ai beau mettre : words: { type: array(1000) } le champ reste toujours mediumtext. Peut être que je m'y prend mal... Merci d'avance ! Cordialement, -- 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