[symfony-users] Forms with pictures
Hi I'm developing my site with symfony and everything is working well and I'm learning faster. I did a lot of forms to allow clients input data without problems but I've now some doubts. I need to make a form where the user will input some data and where I should allow the user to upload pictures related with that data. As I'm a middleware software developer and I'm not sure which is the recommended way to that having in mind usability. My first idea is the easy way for me: first let the user input data and when data is inside the system, let it to upload pictures. In that way I avoid to have some lost pictures. Nevertheless, this kind of data input in two steps could be not user friendly. I'm not sure of my b plan. Should I use ajax ? Flex ? So, I wonder if somebody accostumed to web development could give some tips about this matter. Thanks in advance C --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re : [symfony-users] Propel query : dynamically set fields
Check constant function - Message d'origine De : Olivier Revollat [EMAIL PROTECTED] À : symfony-users@googlegroups.com Envoyé le : Mercredi, 5 Septembre 2007, 12h51mn 16s Objet : [symfony-users] Propel query : dynamically set fields public function getClientByField($field,$pattern) { $con = Propel::getConnection(ClientsPeer::DATABASE_NAME); $c = new Criteria(); $c-add( ClientsPeer::$field,'%'.$pattern.'%',Criteria::LIKE); ... how can I pass the field to propel dynamically ? Thanks... ;) _ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Output an excel file from an action
Hello everyone. I am trying to serve an excel file from an action. The content is dynamically generated with PHPExcel library. Before starting to generate content, I disable the layout and set the content type of the response to application/vnd.ms-excel - $this-setLayout(false); $this-getResponse()-setContentType('application/vnd.ms-excel'); Also, the action returns sfView::NONE. The problem is that a warning is issued saying: Warning: Cannot modify header information - headers already sent by (output started at /home/anakreon/ekby_site/lib/PHPExcel/Shared/OLE/ OLE_Root.php:254) in /usr/share/php/symfony/response/ sfWebResponse.class.php on line 264 Also, the page ends with content type text/html. Is there a solution to this problem? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Output an excel file from an action
On 9/5/07, anakreon [EMAIL PROTECTED] wrote: (output started at /home/anakreon/ekby_site/lib/PHPExcel/Shared/OLE/ OLE_Root.php:254) what do you see at this line in the file ? it's probably just a whitespace problem : cleanup PHPExcel or make use of output buffering. Also, the page ends with content type text/html. that's related to previous problem : headers are not sent, so your content-type is not taken into account. ++ tristan --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Output an excel file from an action
On Sep 5, 2:59 pm, Tristan Rivoallan [EMAIL PROTECTED] wrote: On 9/5/07, anakreon [EMAIL PROTECTED] wrote: (output started at /home/anakreon/ekby_site/lib/PHPExcel/Shared/OLE/ OLE_Root.php:254) what do you see at this line in the file ? It ends the command which makes the first attempt to write content. it's probably just a whitespace problem : cleanup PHPExcel or make use of output buffering. It doesn't seem to have any whitespace in what the command writes. I tried buffering too without success. There were two attempts. The first would set the content type and layout before the call to ob_start and the second after the call of ob_start. I call ob_end_flush() in the end of the action. The result is the same as before except that now it does not report the line number in the OLE_Root.php file. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Flexy Templating Plugin?
Hello, I have a prototype Flexy templating plugin for Symfony. This is similar to sfSmartyView, but using the Flexy engine: http://pear.php.net/manual/en/package.html.html-template-flexy.php Before making it available (and hence supporting it), I first want to gauge the interest / response of the community. Why a template engine? My company rapidly develops web applications using specialists - our HTML designers don't usually know a lick of PHP, though they often scream if the developers get a pixel out of place. We used to spend a lot of time recoding HTML - templates, and that time is better spent on developing the application. With Flexy and the right layout file layout, we can actually use the same .html documents as the templates, with very little changes - and usually none that stop it from rendering correctly when viewed straight in a browser. This is a BIG gain all around for us. Why Flexy? First, compared to other templating engines, Flexy's syntax allows us to gain the advantages above. Simple looping can be handled in the tags themselves, rather than external constructs (meaning layout don't move out of place when rendering the template file directly in the browser). Like other templating engines, variables are visible to the browser: {sf_content} HTML people get that's a placeholder, and can see it. When using generated CRUD, all that has to be done is add one line to the top of each template to make it work nearly identically to the standard PHP templates. (Symfony can understand ?php ? tags, so things just work) This means all the symfony PHP helpers and idioms are still available to use as necessary. What's next? The code is definately prototype - it works, but not optimally. If there is an interest in using Flexy with symfony, I'll make a few updates and release the prototype. I'm still unsure on the best ways to do certain things, for example make native symfony helpers native to Flexy. And there's a lot that can be done to make it integrate even more tightly, for example add an alternate crud-generation that would use native Flexy templates. I'd like to see this fly, so let me know if you are interested in either using or helping develop the plugin. Thanks, Nick --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Flexy Templating Plugin?
On Sep 5, 10:47 am, Tristan Rivoallan [EMAIL PROTECTED] wrote: flexy is really my favourite templating engine, but i have a few concerns : Mine too, and both concerns you bring up are important considerations. * is it still actively maintained ? There has not been a release in many nearly a year, and not much activity on the Pear site, either. * is it a real PHP5 system ? No, however neither are the alternatives I've found to date. The need for actively supporting the plugin - and hence the underlying engine - is clear. While I don't have a silver bullet yet, I have some ideas that I am pursuing along those lines. Nick --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] mysql_error
hi, how can I get db-error in ORM? esp. if my db is MySQL? Should I use sfExceptions thanks.. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: mysql_error
sfDatabaseException, oki I found :) On 5 Eylül, 18:28, tolga [EMAIL PROTECTED] wrote: hi, how can I get db-error in ORM? esp. if my db is MySQL? Should I use sfExceptions thanks.. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Two new plugins: polling and rating
Hi, FYI I've just added two plugins in the Symfony Trac: sfPropelPollsPlugin: sfPropelPollsPlugin is a Symfony plugin which make polling a piece of cake (well, I wish.) http://trac.symfony-project.com/trac/wiki/sfPropelPollsPlugin sfPropelActAsRatableBehaviorPlugin: This plugin aims at providing rating capabilities to any Propel object with the help of a dedicated Propel behavior. http://trac.symfony-project.com/trac/wiki/sfPropelActAsRatableBehaviorPlugin Feel free to give feedback and/or contribute :) ++ -- Nicolas Perriaulthttp://www.clever-age.com Clever Age - conseil en architecture technique GSM: +33 6 60 92 08 67 TÈl: +33 1 53 34 66 10 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Flexy Templating Plugin?
I am sorry I will changing the topic a little but by reading your reasons to use Flexy and your concerns about it being developed and PHP5 compatible why not take a look at PHPTal. There is a not very recent symofny plugin for it that I took a look at some time ago. http://tracfort.jp/projects/symfony-phptal/wiki You get all the benefits of using WYSIWYG editors, you get the symfony php helpers, loops, etc. I am personally more into using template engines that do not depend on editors rather than Zend Studio so I am using the template engine I ported from Ruby (http://trac.symfony-project.com/trac/wiki/sfHamlViewPlugin). Again, sorry for the out of topic email :) Kupo commercemeister wrote: Hello, I have a prototype Flexy templating plugin for Symfony. This is similar to sfSmartyView, but using the Flexy engine: http://pear.php.net/manual/en/package.html.html-template-flexy.php Before making it available (and hence supporting it), I first want to gauge the interest / response of the community. Why a template engine? My company rapidly develops web applications using specialists - our HTML designers don't usually know a lick of PHP, though they often scream if the developers get a pixel out of place. We used to spend a lot of time recoding HTML - templates, and that time is better spent on developing the application. With Flexy and the right layout file layout, we can actually use the same .html documents as the templates, with very little changes - and usually none that stop it from rendering correctly when viewed straight in a browser. This is a BIG gain all around for us. Why Flexy? First, compared to other templating engines, Flexy's syntax allows us to gain the advantages above. Simple looping can be handled in the tags themselves, rather than external constructs (meaning layout don't move out of place when rendering the template file directly in the browser). Like other templating engines, variables are visible to the browser: {sf_content} HTML people get that's a placeholder, and can see it. When using generated CRUD, all that has to be done is add one line to the top of each template to make it work nearly identically to the standard PHP templates. (Symfony can understand ?php ? tags, so things just work) This means all the symfony PHP helpers and idioms are still available to use as necessary. What's next? The code is definately prototype - it works, but not optimally. If there is an interest in using Flexy with symfony, I'll make a few updates and release the prototype. I'm still unsure on the best ways to do certain things, for example make native symfony helpers native to Flexy. And there's a lot that can be done to make it integrate even more tightly, for example add an alternate crud-generation that would use native Flexy templates. I'd like to see this fly, so let me know if you are interested in either using or helping develop the plugin. Thanks, Nick --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Flexy Templating Plugin?
On 05 Sep 2007, at 17:32, Kiril Angov wrote: I am sorry I will changing the topic a little but by reading your reasons to use Flexy and your concerns about it being developed and PHP5 compatible why not take a look at PHPTal. There is a not very recent symofny plugin for it that I took a look at some time ago. http://tracfort.jp/projects/symfony-phptal/wiki You get all the benefits of using WYSIWYG editors, you get the symfony php helpers, loops, etc. I am personally more into using template engines that do not depend on editors rather than Zend Studio so I am using the template engine I ported from Ruby (http://trac.symfony-project.com/trac/wiki/sfHamlViewPlugin). Again, sorry for the out of topic email :) I'll take this opportunity to ask another related though off topic question... Generally speaking, if the developer(s) are also the designer(s) (no matter how awful that may turn out to be ;) as in my case, would you still recommend using a template engine? Cheers, Alexander --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: automated code audit
On 29 Aug 2007, at 20:29, Tristan Rivoallan wrote: On 8/29/07, Jack Bates [EMAIL PROTECTED] wrote: I wonder if any code already exists for checking symfony's code standards? pear's codesniffer can provide a very good basis for implementing this. http://pear.php.net/package/PHP_CodeSniffer I'm using symfony's coding standards for my project too. Jack, are you working on this? If not, I might put some extra time in this - but I'd hate to be duplicating efforts. Perhaps someone already has symfony coding standard Sniffs? Alexander --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Two new plugins: polling and rating
Hi, Woot, thats soo cruel.. I invested so much time into a ugly hacky rating solution. Now I will have to remove it and use your Behavior. From its description it reads exactly what I need. Ill contact you after I integrated it. Well done! .: Fabian -Original Message- From: [EMAIL PROTECTED] om [mailto:[EMAIL PROTECTED] groups.com] On Behalf Of Nicolas Perriault Sent: Mittwoch, 5. September 2007 17:39 To: symfony-users@googlegroups.com Subject: [symfony-users] Two new plugins: polling and rating Hi, FYI I've just added two plugins in the Symfony Trac: sfPropelPollsPlugin: sfPropelPollsPlugin is a Symfony plugin which make polling a piece of cake (well, I wish.) http://trac.symfony-project.com/trac/wiki/sfPropelPollsPlugin sfPropelActAsRatableBehaviorPlugin: This plugin aims at providing rating capabilities to any Propel object with the help of a dedicated Propel behavior. http://trac.symfony-project.com/trac/wiki/sfPropelActAsRatableBehaviorPlugin Feel free to give feedback and/or contribute :) ++ -- Nicolas Perriaulthttp://www.clever-age.com Clever Age - conseil en architecture technique GSM: +33 6 60 92 08 67 TÈl: +33 1 53 34 66 10 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Flexy Templating Plugin?
Alexander Deruwe wrote: On 05 Sep 2007, at 17:32, Kiril Angov wrote: I am sorry I will changing the topic a little but by reading your reasons to use Flexy and your concerns about it being developed and PHP5 compatible why not take a look at PHPTal. There is a not very recent symofny plugin for it that I took a look at some time ago. http://tracfort.jp/projects/symfony-phptal/wiki You get all the benefits of using WYSIWYG editors, you get the symfony php helpers, loops, etc. I am personally more into using template engines that do not depend on editors rather than Zend Studio so I am using the template engine I ported from Ruby (http://trac.symfony-project.com/trac/wiki/sfHamlViewPlugin). Again, sorry for the out of topic email :) I'll take this opportunity to ask another related though off topic question... Generally speaking, if the developer(s) are also the designer(s) (no matter how awful that may turn out to be ;) as in my case, would you still recommend using a template engine? Cheers, Alexander Well, this is exactly my case. I am really not the designer but I get some templates or prototypes, even photoshop files only and I know enough to make them look the same as the photoshop files without using 1000 divs and what not :) And yes, I would recommend using a templates engine if you know there will be somebody else coming along the way to work with you. I really had no problems doing HTML + PHP. It is my personal preference that Haml templates are really clean and are really easy even for non programmers (proven by the Ruby community where they say designers are using Haml without problems, I personally do not have direct experience). I came from a world of using Smarty and I would not accept anything worse than Smarty. really nice templating engine that gives designers exactly the control they need and not more. My current project became a mess because the designer was writing html with who knows what program and the sources were such a mess that it became a pain to make it work in all browsers and it even caused problems of layers flying around, etc, because we could not see the structure of the html because of the bad indentation and bad html writing as a whole. I tried to talk them into writing well structured HTML because html is structured language (think XML) but what I get is yes and then the same as before. Now you give them Haml where you write less and you mess up the indentation and the syntax and you are forced to fix it or it does not work. And is it hard to write, no, it is logical and it maybe closely resembles YAML which we came to love for config files. For every train there are passengers and just see for your needs. As I said all was good with simple PHP as templating engine but it proved to be flawed when you do not have professionals for colleagues (and luckily they are not reading this list :))) i hope you got my point and please decide for your needs and I like the fact that I can mix Haml and PHP templates and thus chose the best from both worlds if needed. Kupo --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: automated code audit
Jack, I would be happy if you share that unit test code with us when you are done or if you want some help, put it online and I will be also happy to contribute. Kupo Jack Bates wrote: I'm working on an automated code audit, to check our code conforms to symfony's code standards. I'm currently implementing it as a unit test, so we check our code with: symfony test-unit audit I wonder if any code already exists for checking symfony's code standards? Thanks, Jack --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Two new plugins: polling and rating
Francois Zaninotto a écrit : May I suggest a component in the Ratable plugin to allow, for instance, 5 stars Ajax Rating, which would allow for a screenshot to be added to the plugin's page ? No helper is provided for the moment but it's planned. I'll add a TODO section in the dedicated wiki page. I'll ask Fabien for a SVN account, too, I'm too used to work with externals rather than pear packager ;) ++ -- Nicolas Perriaulthttp://www.clever-age.com Clever Age - conseil en architecture technique GSM: +33 6 60 92 08 67 TÈl: +33 1 53 34 66 10 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: automated code audit
I would suggest that plugins are the best place for all additional development of symfony. That way the core stays as lightweight as possible and users can choose what elements suite their development practices. For exmaple the control pannel is now a plugin and the audit could be part of this. I think that some form of continuous integration system would also be useful? Ali On 05/09/07, Kiril Angov [EMAIL PROTECTED] wrote: Now when I think about it, should this be part of symfony itself? A symfony tasks that will be easy to run as 'symfony codelint' or something along those lines. Do people think this is important especially for larger teams where you want to be sure standards are being followed? Kupo Alexander Deruwe wrote: On 29 Aug 2007, at 20:29, Tristan Rivoallan wrote: On 8/29/07, Jack Bates [EMAIL PROTECTED] wrote: I wonder if any code already exists for checking symfony's code standards? pear's codesniffer can provide a very good basis for implementing this. http://pear.php.net/package/PHP_CodeSniffer I'm using symfony's coding standards for my project too. Jack, are you working on this? If not, I might put some extra time in this - but I'd hate to be duplicating efforts. Perhaps someone already has symfony coding standard Sniffs? Alexander --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Flexy Templating Plugin?
On Sep 5, 11:47 am, Alexander Deruwe [EMAIL PROTECTED] wrote: I'll take this opportunity to ask another related though off topic question... Generally speaking, if the developer(s) are also the designer(s) (no matter how awful that may turn out to be ;) as in my case, would you still recommend using a template engine? TIMTOWTDI You can read all over the net debates on the pros and cons of template engines, especially in the PHP world where you commonly hear PHP _is_ a templating engine. For purposes of this discussion, I have specific requirements where I receive designs from people who know HTML, and it is our responsibility to cut up those designs for use in web applications, and more often than not, send the templates back to designers who then make changes - then repeat. When the designs require little to no fixup before adding to the application, and the customer gets exactly what they see in the mockup - my life becomes much easier. In this specific case, Flexy's syntax works the best of the engines we've evaluated so far. Whether it works well for you basically boils down to whether you are more comfortable with HTML or PHP - or a hybrid. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] sfGuard redirect after logout
How can i configure sfGuard to redirect to a custom module/action after the logout action instead of redirecting to the refferer. Also when im visiting a secure page without being logged in i get a 404 page, is that correct ? shouldn't i get the not enough credentials page ? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Two new plugins: polling and rating
Great work! I need this functionality for my current project the next days and i was afraid, that i have to do all the work alone. But so, you saved me lots of hours of work! Thanks! - Frank Am 05.09.2007 um 18:21 schrieb Nicolas Perriault: Francois Zaninotto a écrit : May I suggest a component in the Ratable plugin to allow, for instance, 5 stars Ajax Rating, which would allow for a screenshot to be added to the plugin's page ? No helper is provided for the moment but it's planned. I'll add a TODO section in the dedicated wiki page. I'll ask Fabien for a SVN account, too, I'm too used to work with externals rather than pear packager ;) ++ -- Nicolas Perriaulthttp://www.clever-age.com Clever Age - conseil en architecture technique GSM: +33 6 60 92 08 67 TÈl: +33 1 53 34 66 10 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfGuard redirect after logout
Hi, If you want to redirect the user to his profile after a success login or define a logout site. You can change the redirect values in app.yml: all: sf_guard_plugin: success_signin_url: @my_route?param=value # the plugin use the referer as default success_signout_url: module/action # the plugin use the referer as default Regards, Serkan 2007/9/5, Kostas Papadimitriou [EMAIL PROTECTED]: How can i configure sfGuard to redirect to a custom module/action after the logout action instead of redirecting to the refferer. Also when im visiting a secure page without being logged in i get a 404 page, is that correct ? shouldn't i get the not enough credentials page ? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Flexy Templating Plugin?
Alexander... Nice to see the HAML port. Personally though im not so much interested in HAML templates as I am SASS for CSS. Did you manage to implement SASS? I know that last time I looked phphaml hadnt finished it off yet or support was lacking form what I could tell. On 9/5/07 12:12 PM, Kiril Angov [EMAIL PROTECTED] wrote: Alexander Deruwe wrote: On 05 Sep 2007, at 17:32, Kiril Angov wrote: I am sorry I will changing the topic a little but by reading your reasons to use Flexy and your concerns about it being developed and PHP5 compatible why not take a look at PHPTal. There is a not very recent symofny plugin for it that I took a look at some time ago. http://tracfort.jp/projects/symfony-phptal/wiki You get all the benefits of using WYSIWYG editors, you get the symfony php helpers, loops, etc. I am personally more into using template engines that do not depend on editors rather than Zend Studio so I am using the template engine I ported from Ruby (http://trac.symfony-project.com/trac/wiki/sfHamlViewPlugin). Again, sorry for the out of topic email :) I'll take this opportunity to ask another related though off topic question... Generally speaking, if the developer(s) are also the designer(s) (no matter how awful that may turn out to be ;) as in my case, would you still recommend using a template engine? Cheers, Alexander Well, this is exactly my case. I am really not the designer but I get some templates or prototypes, even photoshop files only and I know enough to make them look the same as the photoshop files without using 1000 divs and what not :) And yes, I would recommend using a templates engine if you know there will be somebody else coming along the way to work with you. I really had no problems doing HTML + PHP. It is my personal preference that Haml templates are really clean and are really easy even for non programmers (proven by the Ruby community where they say designers are using Haml without problems, I personally do not have direct experience). I came from a world of using Smarty and I would not accept anything worse than Smarty. really nice templating engine that gives designers exactly the control they need and not more. My current project became a mess because the designer was writing html with who knows what program and the sources were such a mess that it became a pain to make it work in all browsers and it even caused problems of layers flying around, etc, because we could not see the structure of the html because of the bad indentation and bad html writing as a whole. I tried to talk them into writing well structured HTML because html is structured language (think XML) but what I get is yes and then the same as before. Now you give them Haml where you write less and you mess up the indentation and the syntax and you are forced to fix it or it does not work. And is it hard to write, no, it is logical and it maybe closely resembles YAML which we came to love for config files. For every train there are passengers and just see for your needs. As I said all was good with simple PHP as templating engine but it proved to be flawed when you do not have professionals for colleagues (and luckily they are not reading this list :))) i hope you got my point and please decide for your needs and I like the fact that I can mix Haml and PHP templates and thus chose the best from both worlds if needed. Kupo --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Two new plugins: polling and rating
Great job!! I'm been thinking about adding a rating system to our current site, and the only think holding me back was the time it would take to knock together the prototype, as we arnt sure it would add that much value to the site, however this is ideal! A helper would be a fantastic idea just to make it that little bit easier to use. Well done, Mat -Original Message- From: Frank Stelzer [mailto:[EMAIL PROTECTED] Sent: 05 September 2007 20:05 To: symfony-users@googlegroups.com Subject: [symfony-users] Re: Two new plugins: polling and rating Great work! I need this functionality for my current project the next days and i was afraid, that i have to do all the work alone. But so, you saved me lots of hours of work! Thanks! - Frank Am 05.09.2007 um 18:21 schrieb Nicolas Perriault: Francois Zaninotto a écrit : May I suggest a component in the Ratable plugin to allow, for instance, 5 stars Ajax Rating, which would allow for a screenshot to be added to the plugin's page ? No helper is provided for the moment but it's planned. I'll add a TODO section in the dedicated wiki page. I'll ask Fabien for a SVN account, too, I'm too used to work with externals rather than pear packager ;) ++ -- Nicolas Perriaulthttp://www.clever-age.com Clever Age - conseil en architecture technique GSM: +33 6 60 92 08 67 TÈl: +33 1 53 34 66 10 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---