[symfony-users] Re: Dependency injection and sfEventDispatcher
Hello, I'm not sure about how to do that, but a simple trick would be to have a static method in your ProjectConfiguration class which will return the dispatcher: // in your ProjectConfiguration.class.php public static function getEventDispatcherInstance() { return self::getActive()-getEventDispatcher() } // and in your services.yml dispatcher: class: ProjectConfiguratition constructor: getEventDispatcherInstance On Thu, Sep 17, 2009 at 12:42 AM, david.stendardi david.stenda...@gmail.com wrote: Hello folks, I'am integrating the dependeny injection on a project and i must say it is very efficient. I discovered the constructor option that allowed me to connect existing symfony singleton to my component by writing something like this in my service.yml : context: class: sfContext constructor: getInstance my.service: class: myServiceClass arguments: [...@context] Anyway, i don't like very much the idea to be dependant of sfContext, and i would like to now if there is a way to create a dependency to sfEventDispatcher used by the project configuration, without having to refer to a specific content ? Cheers ! However i would like -- Noël GUILBERT http://www.noelguilbert.com/ http://www.sensiolabs.com http://www.symfony-project.com Sensio Labs Tél: +33 1 40 99 80 80 --~--~-~--~~~---~--~~ 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: Dependency Injection and Imports
I have just added this possibility. Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 Bernhard Schussek wrote: Hi, I just read the documentation of the Dependency Injection Container and wonder whether it is possible to load several files at once (contrary to importing): e.g.: $loader-load('model.xml', 'application.xml'); Spring has this ability, and combining multiple bean definitions this way is considered better than hard-coding the imports[1], because the bean definition files don't need to be aware of each other. This can be important if you, for instance, want to use model.xml in production and test environments, but want to combine it with different other XML files. So is this possible? Bernhard [1] http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-factory-xml-import --~--~-~--~~~---~--~~ 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: Is sfWeatherPlugin Unreliable?
I dont know anything about the sfWeatherPlugin, but I use the weather channel xml api from time to time and I have found it easy to use and reliable. It even comes with its own icon sets/codes so you can provide nice little icons with the weather should you choose. The url is https://registration.weather.com/ursa/xmloap/step1 . They don't give a ton of information on the site about it, but when you sign up there is a fairly informative pdf that you can download. Good luck. On Sep 17, 8:01 pm, avani pujara avani.v.puj...@gmail.com wrote: Hey Frieds, I want to add weather information to my site. I want to use sfWeatherPlugin. But I heard that it's unreliable? is it so? What is good solution to show weather information? Thanks in advance !!! --~--~-~--~~~---~--~~ 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: sfDoctrineGuardPlugin schema options: collate charset
May be I've posted it in wrong place? Where I should move it? On Sep 15, 11:56 pm, nord_ua ryabenko.ser...@gmail.com wrote: Is it possible to add options to tables: sfGuardGroup, sfGuardPermission, sfGuardUser? options: collate: utf8_unicode_ci charset: utf8 I'm using UTF8, so when I'm using DoctrineGuardPlugin and create some roles I got exception: SQLSTATE[HY000]: General error: 1267 Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Configure a virtual host to access multiple symfony projects
Hi everybody, Lately I've been doing many experiments with symfony, creating differents projects for each of them. I usually create an apache dedicated virtual host, with a defined server name, link to the web/ directory of symfony, and add a row to the /etc/hosts file to match the new server name. I'm sure this is not the best way to achieve the result... Indeed, I was thinking that it would be cool to reach multiple symfony projects with url like http://project1.localhost/ http://project2.localhost/ Where Apache understands that project1 is a directory, and builds the path like this /var/www/symfony_projects/:project/web So I could simply create a new directory with a symfony project inside, and it would be ready to go. My point is: is there any way to configure Apache to make this happen? And the file /etc/hosts supports wildcard hosts? I'm a PHP programmer, and I'm not familiar with the Apache configuration. I simply copy and paste the virtual host file and change a few things to match this or that directory. I'd really love to set up Apache this way, hope you guys can help. 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Configure a virtual host to access multiple symfony projects
Hi, You should look about the apache module mod_vhost_alias : http://httpd.apache.org/docs/2.0/mod/mod_vhost_alias.html On Fri, Sep 18, 2009 at 9:48 AM, Davide Borsatto lloy...@gmail.com wrote: Hi everybody, Lately I've been doing many experiments with symfony, creating differents projects for each of them. I usually create an apache dedicated virtual host, with a defined server name, link to the web/ directory of symfony, and add a row to the /etc/hosts file to match the new server name. I'm sure this is not the best way to achieve the result... Indeed, I was thinking that it would be cool to reach multiple symfony projects with url like http://project1.localhost/ http://project2.localhost/ Where Apache understands that project1 is a directory, and builds the path like this /var/www/symfony_projects/:project/web So I could simply create a new directory with a symfony project inside, and it would be ready to go. My point is: is there any way to configure Apache to make this happen? And the file /etc/hosts supports wildcard hosts? I'm a PHP programmer, and I'm not familiar with the Apache configuration. I simply copy and paste the virtual host file and change a few things to match this or that directory. I'd really love to set up Apache this way, hope you guys can help. Thanks! -- Noël GUILBERT http://www.noelguilbert.com/ http://www.sensiolabs.com http://www.symfony-project.com Sensio Labs Tél: +33 1 40 99 80 80 --~--~-~--~~~---~--~~ 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: Is sfWeatherPlugin Unreliable?
Ohk Thanks Casey for your feedback. I ll try this one. !!! On Sep 18, 3:08 pm, Casey casey.cam...@gmail.com wrote: I dont know anything about the sfWeatherPlugin, but I use the weather channel xml api from time to time and I have found it easy to use and reliable. It even comes with its own icon sets/codes so you can provide nice little icons with the weather should you choose. The url ishttps://registration.weather.com/ursa/xmloap/step1. They don't give a ton of information on the site about it, but when you sign up there is a fairly informative pdf that you can download. Good luck. On Sep 17, 8:01 pm, avani pujara avani.v.puj...@gmail.com wrote: Hey Frieds, I want to add weather information to my site. I want to use sfWeatherPlugin. But I heard that it's unreliable? is it so? What is good solution to show weather information? Thanks in advance !!!- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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] Lime testing problem
Dear everybody. I am blocked on day 8 of propel-jobeet tutorials. Lime seems to don't execute the php commands. When I type : r...@ubuntu:/home/sfproject/jobeet# php symfony test:unit Jobeet == it writes require_once dirname(__FILE__).'/../bootstrap/unit.php'; $t = new lime_test(6, new lime_output_color()); $t-is(Jobeet::slugify('Sensio'), 'sensio'); $t-is(Jobeet::slugify('sensio labs'), 'sensio-labs'); $t-is(Jobeet::slugify('sensio labs'), 'sensio-labs'); $t-is(Jobeet::slugify('paris,france'), 'paris-france'); $t-is(Jobeet::slugify(' sensio'), 'sensio'); $t-is(Jobeet::slugify('sensio '), 'sensio'); I am on Ubuntu 9.04 - Jaunty Jackalope -- Apache2 installed on PHP Version 5.2.6-3ubuntu4.2 and symfony 1.2 Thanks for any help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-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: make get in doctrine model class
Hi, If you have the same problem, that's my solution... Maybe there is a better way : public function getWidth() { $width = $this-rawGet('width'); return $width != '0' ? $width : ''; } public function getHeight() { $height = $this-rawGet('height'); return $height != '0' ? $height : ''; } ciao, On 16 sep, 15:06, smellycat37 charley.mail...@gmail.com wrote: Hi, I try to make a get function in a doctrine model class of an existed field table... That's my schema.yml : Media: columns: id: {type: integer(4), primary: true, autoincrement: true, sequence: media_id} name: {type: string(50)} title: {type: string(50)} alt: {type: string(50)} source: {type: string(255)} width: {type: integer(4)} # this is my field than I try to get height: {type: integer(4)} That's my model class : class Media extends BaseMedia { public function getWidth() { $width = $this-get('width'); //make a loop error #$width = $this-width; //$this-width doesn't exist return $width != '0' ? $width : ''; } } --~--~-~--~~~---~--~~ 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: Lime testing problem
You seem to lack ?php at the beginning of the Jobeet unit test file. On Fri, Sep 18, 2009 at 09:54, ereallstaff ereallst...@gmail.com wrote: Dear everybody. I am blocked on day 8 of propel-jobeet tutorials. Lime seems to don't execute the php commands. When I type : r...@ubuntu:/home/sfproject/jobeet# php symfony test:unit Jobeet == it writes require_once dirname(__FILE__).'/../bootstrap/unit.php'; $t = new lime_test(6, new lime_output_color()); $t-is(Jobeet::slugify('Sensio'), 'sensio'); $t-is(Jobeet::slugify('sensio labs'), 'sensio-labs'); $t-is(Jobeet::slugify('sensio labs'), 'sensio-labs'); $t-is(Jobeet::slugify('paris,france'), 'paris-france'); $t-is(Jobeet::slugify(' sensio'), 'sensio'); $t-is(Jobeet::slugify('sensio '), 'sensio'); I am on Ubuntu 9.04 - Jaunty Jackalope -- Apache2 installed on PHP Version 5.2.6-3ubuntu4.2 and symfony 1.2 Thanks for any help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-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: Configure a virtual host to access multiple symfony projects
Seems like what I need, I'll check the docs later. Thanks anyway for the suggestion On Sep 18, 10:05 am, noel guilbert noelguilb...@gmail.com wrote: Hi, You should look about the apache module mod_vhost_alias :http://httpd.apache.org/docs/2.0/mod/mod_vhost_alias.html On Fri, Sep 18, 2009 at 9:48 AM, Davide Borsatto lloy...@gmail.com wrote: Hi everybody, Lately I've been doing many experiments with symfony, creating differents projects for each of them. I usually create an apache dedicated virtual host, with a defined server name, link to the web/ directory of symfony, and add a row to the /etc/hosts file to match the new server name. I'm sure this is not the best way to achieve the result... Indeed, I was thinking that it would be cool to reach multiple symfony projects with url like http://project1.localhost/ http://project2.localhost/ Where Apache understands that project1 is a directory, and builds the path like this /var/www/symfony_projects/:project/web So I could simply create a new directory with a symfony project inside, and it would be ready to go. My point is: is there any way to configure Apache to make this happen? And the file /etc/hosts supports wildcard hosts? I'm a PHP programmer, and I'm not familiar with the Apache configuration. I simply copy and paste the virtual host file and change a few things to match this or that directory. I'd really love to set up Apache this way, hope you guys can help. Thanks! -- Noël GUILBERThttp://www.noelguilbert.com/http://www.sensiolabs.comhttp://www.symfony-project.com Sensio Labs Tél: +33 1 40 99 80 80 --~--~-~--~~~---~--~~ 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: publication project on the server - where place files ?
switch to the dev mode, and make sure that you have in your (config/ProjectConfiguration.php ) the rights paths to symfony. Also, if you are uploading the project on a shared server that have a cpanel, then you'll already have a /web symlink somewhere. make sure that your symfony web dir is the same with account's web dir On Fri, Sep 18, 2009 at 12:14 PM, mini_alexander aoohra...@gmail.comwrote: ok I have done what you said but now I see blank page. On 17 Wrz, 23:37, Stefan Koopmanschap stefan.koopmansc...@symfony- project.com wrote: Hi, No, the document root of your webserver should point to symfony's web directory. Everything outside of that should not be included in your document root (otherwise people could for instance access config/ databases.yml file and see your database credentials). Stefan On Sep 17, 7:38 pm, mini_alexander aoohra...@gmail.com wrote: As I understand I must place all Symfony files and folders in folder 'public_html' ? Because in Zend Framework in folder 'public_html' on the server I must place only content of Zend Framework folder 'public' . -- As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 --~--~-~--~~~---~--~~ 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: publication project on the server - where place files ?
clear cache worked ;) But now my backend application doesn't work (frontend works). For example: http://.pl/backend.php/start/index I have an error that this site doesn't exist - but I have this site !! On 18 Wrz, 12:30, Alexandru-Emil Lupu gang.al...@gmail.com wrote: switch to the dev mode, and make sure that you have in your (config/ProjectConfiguration.php ) the rights paths to symfony. Also, if you are uploading the project on a shared server that have a cpanel, then you'll already have a /web symlink somewhere. make sure that your symfony web dir is the same with account's web dir On Fri, Sep 18, 2009 at 12:14 PM, mini_alexander aoohra...@gmail.comwrote: ok I have done what you said but now I see blank page. On 17 Wrz, 23:37, Stefan Koopmanschap stefan.koopmansc...@symfony- project.com wrote: Hi, No, the document root of your webserver should point to symfony's web directory. Everything outside of that should not be included in your document root (otherwise people could for instance access config/ databases.yml file and see your database credentials). Stefan On Sep 17, 7:38 pm, mini_alexander aoohra...@gmail.com wrote: As I understand I must place all Symfony files and folders in folder 'public_html' ? Because in Zend Framework in folder 'public_html' on the server I must place only content of Zend Framework folder 'public' . -- As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter:http://twitter.com/alecslupu I am on linkedIn:http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 --~--~-~--~~~---~--~~ 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: publication project on the server - where place files ?
ooops - again sry - I again published website and I again forgot about clear cache. xD Now is ok. As I understand in backend files I must everywhere in each link write: /BACKEND.php/controller/action yes ? For example a href=/backend.php/start.index home/a or form action=?php echo url_for('/backend.php/users/index') ? / ??? Because generated links by symfony look for example: url_for('/users/index') so I must everything change by myself ?? On 18 Wrz, 12:43, mini_alexander aoohra...@gmail.com wrote: clear cache worked ;) But now my backend application doesn't work (frontend works). For example:http://.pl/backend.php/start/index I have an error that this site doesn't exist - but I have this site !! On 18 Wrz, 12:30, Alexandru-Emil Lupu gang.al...@gmail.com wrote: switch to the dev mode, and make sure that you have in your (config/ProjectConfiguration.php ) the rights paths to symfony. Also, if you are uploading the project on a shared server that have a cpanel, then you'll already have a /web symlink somewhere. make sure that your symfony web dir is the same with account's web dir On Fri, Sep 18, 2009 at 12:14 PM, mini_alexander aoohra...@gmail.comwrote: ok I have done what you said but now I see blank page. On 17 Wrz, 23:37, Stefan Koopmanschap stefan.koopmansc...@symfony- project.com wrote: Hi, No, the document root of your webserver should point to symfony's web directory. Everything outside of that should not be included in your document root (otherwise people could for instance access config/ databases.yml file and see your database credentials). Stefan On Sep 17, 7:38 pm, mini_alexander aoohra...@gmail.com wrote: As I understand I must place all Symfony files and folders in folder 'public_html' ? Because in Zend Framework in folder 'public_html' on the server I must place only content of Zend Framework folder 'public' . -- As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter:http://twitter.com/alecslupu I am on linkedIn:http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 --~--~-~--~~~---~--~~ 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] Application or module
Hi, I'm starting a new (my first with symfony) project which has a forum and a blog. I'd like to have a static home page that links to the two and to have cross links between blog and forum. Is it better to create a frontend app with forum and blog modules or to create two different applications? And why? for the backend i'll create a different app. thanks a lot Marco --~--~-~--~~~---~--~~ 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: Application or module
In my opinion same project seperate modules. Getting two seperate applications to talk can sometimes be tricky On Fri, Sep 18, 2009 at 1:09 PM, mbernasocchi mbernasoc...@gmail.comwrote: Hi, I'm starting a new (my first with symfony) project which has a forum and a blog. I'd like to have a static home page that links to the two and to have cross links between blog and forum. Is it better to create a frontend app with forum and blog modules or to create two different applications? And why? for the backend i'll create a different app. thanks a lot Marco -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-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: Lime testing problem
OMG many thanks for help I don't know if file should be corrected in tutorial as here also miss ?php Thanks anyway hope can help someone else! On Sep 18, 11:09 am, Gábor Fási maerl...@gmail.com wrote: You seem to lack ?php at the beginning of the Jobeet unit test file. On Fri, Sep 18, 2009 at 09:54, ereallstaff ereallst...@gmail.com wrote: Dear everybody. I am blocked on day 8 of propel-jobeet tutorials.Limeseems to don't execute the php commands. When I type : r...@ubuntu:/home/sfproject/jobeet# php symfony test:unit Jobeet == it writes require_once dirname(__FILE__).'/../bootstrap/unit.php'; $t = new lime_test(6, new lime_output_color()); $t-is(Jobeet::slugify('Sensio'), 'sensio'); $t-is(Jobeet::slugify('sensio labs'), 'sensio-labs'); $t-is(Jobeet::slugify('sensio labs'), 'sensio-labs'); $t-is(Jobeet::slugify('paris,france'), 'paris-france'); $t-is(Jobeet::slugify(' sensio'), 'sensio'); $t-is(Jobeet::slugify('sensio '), 'sensio'); I am on Ubuntu 9.04 - Jaunty Jackalope -- Apache2 installed on PHP Version 5.2.6-3ubuntu4.2 and symfony 1.2 Thanks for any help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-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: Application or module
Modules because I think basically if two things share users, they should be in the same apps as modules. On Fri, Sep 18, 2009 at 11:42 PM, Gareth McCumskey gmccums...@gmail.com wrote: In my opinion same project seperate modules. Getting two seperate applications to talk can sometimes be tricky On Fri, Sep 18, 2009 at 1:09 PM, mbernasocchi mbernasoc...@gmail.com wrote: Hi, I'm starting a new (my first with symfony) project which has a forum and a blog. I'd like to have a static home page that links to the two and to have cross links between blog and forum. Is it better to create a frontend app with forum and blog modules or to create two different applications? And why? for the backend i'll create a different app. thanks a lot Marco -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~-~--~~~---~--~~ 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] Problem with sfPropelPager.class.php
I got a problem with the pager: Fatal error: __clone method called on non-object in /symfony/sf1.2/lib/ plugins/sfPropelPlugin/lib/addon/sfPropelPager.class.php on line 40 This is my code: public function executeOverview(sfWebRequest $oRequest){ $oPager = new sfPropelPager('Estate', 3); $oPager-setCriteria(EstatePeer::getOverview()); $oPager-setPage($oRequest-getParameter('page', 1)); $oPager-init(); $this-pager = $oPager; } Does someone know what is wrong? --~--~-~--~~~---~--~~ 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: Problem with sfPropelPager.class.php
What's in EstatePeer::getOverview() ? On Fri, Sep 18, 2009 at 11:51 PM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I got a problem with the pager: Fatal error: __clone method called on non-object in /symfony/sf1.2/lib/ plugins/sfPropelPlugin/lib/addon/sfPropelPager.class.php on line 40 This is my code: public function executeOverview(sfWebRequest $oRequest){ $oPager = new sfPropelPager('Estate', 3); $oPager-setCriteria(EstatePeer::getOverview()); $oPager-setPage($oRequest-getParameter('page', 1)); $oPager-init(); $this-pager = $oPager; } Does someone know what is wrong? -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~-~--~~~---~--~~ 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] Routing doesn't take place
Hi everyone! I have a problem with my routing.yml. My URL is still /vastgoed? page=3, despite my routing configuration: estate_page: url: /vastgoed/:page param: { module: page, action: estate } This is how I build the URL: ?php echo url_for('page/estate?page=' . $page) ? Who knows how I can fix this? Thank you! --~--~-~--~~~---~--~~ 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: Problem with sfPropelPager.class.php
Ah, problem solved. Problem with my criteria. On 18 sep, 13:53, Sid Bachtiar sid.bacht...@gmail.com wrote: What's in EstatePeer::getOverview() ? On Fri, Sep 18, 2009 at 11:51 PM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I got a problem with the pager: Fatal error: __clone method called on non-object in /symfony/sf1.2/lib/ plugins/sfPropelPlugin/lib/addon/sfPropelPager.class.php on line 40 This is my code: public function executeOverview(sfWebRequest $oRequest){ $oPager = new sfPropelPager('Estate', 3); $oPager-setCriteria(EstatePeer::getOverview()); $oPager-setPage($oRequest-getParameter('page', 1)); $oPager-init(); $this-pager = $oPager; } Does someone know what is wrong? -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz --~--~-~--~~~---~--~~ 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: Routing doesn't take place
First of all, don't forget to run symfony cc Secondly, try: ?php echo url_for('@estate_page?page=' . $page) ? On Sat, Sep 19, 2009 at 12:24 AM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Hi everyone! I have a problem with my routing.yml. My URL is still /vastgoed? page=3, despite my routing configuration: estate_page: url: /vastgoed/:page param: { module: page, action: estate } This is how I build the URL: ?php echo url_for('page/estate?page=' . $page) ? Who knows how I can fix this? Thank you! -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~-~--~~~---~--~~ 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: Routing doesn't take place
Thx! On 18 sep, 14:27, Sid Bachtiar sid.bacht...@gmail.com wrote: First of all, don't forget to run symfony cc Secondly, try: ?php echo url_for('@estate_page?page=' . $page) ? On Sat, Sep 19, 2009 at 12:24 AM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Hi everyone! I have a problem with my routing.yml. My URL is still /vastgoed? page=3, despite my routing configuration: estate_page: url: /vastgoed/:page param: { module: page, action: estate } This is how I build the URL: ?php echo url_for('page/estate?page=' . $page) ? Who knows how I can fix this? Thank you! -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz --~--~-~--~~~---~--~~ 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: PHP mail function not working
If your exchange machine requires TLS, you need to use something other than Swift. If you use phpMailer, the authentication code is.. $this-IsSMTP(); $this-SMTPDebug = 2; $this-SMTPAuth = true; $this-SMTPSecure = tls; $this-Host = smtp.yourexchangehost.com; $this-Username = 'yourdomain\yourusername'; // setup this way if you are using domain authentication $this-Password = '*'; If you don't need TLS to connect to exchange, then you just need to test that the mail() function works on your server, like Eno said. On Fri, Sep 18, 2009 at 12:53 AM, DEEPAK BHATIA toreachdee...@gmail.comwrote: Hi, Shall I use PHP Mailer or Swift Mail ? Regards Deepak On Thu, Sep 17, 2009 at 11:37 PM, Patrick Cummins patwcumm...@gmail.com wrote: Yes... I was talking about sending through SMTP (on an exchange server). Some exchange servers require TLS, not just SSL. On Thu, Sep 17, 2009 at 12:40 PM, DEEPAK BHATIA toreachdee...@gmail.com wrote: Hi, Do you mean SSL ? But I am not taking about TLS. The mail function of PHP uses sendmail on linux. When I execute above php page, the mail is not going to the recipietn. I hope we understand each other. Regards Deepak On Thu, Sep 17, 2009 at 9:04 PM, pcummins patwcumm...@gmail.com wrote: Deepak, I shared your gripes. Swift mailer does not support TLS yet, which is required for many exchange servers. PHPMailer does On Sep 17, 8:46 am, Eno symb...@gmail.com wrote: On Thu, 17 Sep 2009, DEEPAK BHATIA wrote: How do we set Fully Qualified Domain Name the /etc/hosts file. Have you tried sending an email from the command line using the 'mail' command? If so, does it work? If not, then your server is not configured properly. -- --~--~-~--~~~---~--~~ 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: PHP mail function not working
TLS used to work with swift mail - has support been dropped? On Fri, 18 Sep 2009 14:50:36 +0200, Patrick Cummins patwcumm...@gmail.com wrote: If your exchange machine requires TLS, you need to use something other than Swift. If you use phpMailer, the authentication code is.. $this-IsSMTP(); $this-SMTPDebug = 2; $this-SMTPAuth = true; $this-SMTPSecure = tls; $this-Host = smtp.yourexchangehost.com; $this-Username = 'yourdomain\yourusername'; // setup this way if you are using domain authentication $this-Password = '*'; If you don't need TLS to connect to exchange, then you just need to test that the mail() function works on your server, like Eno said. On Fri, Sep 18, 2009 at 12:53 AM, DEEPAK BHATIA toreachdee...@gmail.comwrote: Hi, Shall I use PHP Mailer or Swift Mail ? Regards Deepak On Thu, Sep 17, 2009 at 11:37 PM, Patrick Cummins patwcumm...@gmail.com wrote: Yes... I was talking about sending through SMTP (on an exchange server). Some exchange servers require TLS, not just SSL. On Thu, Sep 17, 2009 at 12:40 PM, DEEPAK BHATIA toreachdee...@gmail.com wrote: Hi, Do you mean SSL ? But I am not taking about TLS. The mail function of PHP uses sendmail on linux. When I execute above php page, the mail is not going to the recipietn. I hope we understand each other. Regards Deepak On Thu, Sep 17, 2009 at 9:04 PM, pcummins patwcumm...@gmail.com wrote: Deepak, I shared your gripes. Swift mailer does not support TLS yet, which is required for many exchange servers. PHPMailer does On Sep 17, 8:46 am, Eno symb...@gmail.com wrote: On Thu, 17 Sep 2009, DEEPAK BHATIA wrote: How do we set Fully Qualified Domain Name the /etc/hosts file. Have you tried sending an email from the command line using the 'mail' command? If so, does it work? If not, then your server is not configured properly. -- -- Using Opera's revolutionary e-mail client: http://www.opera.com/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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony has definitely become too complicated framework
Well, could you share what you tried to do? On Fri, Sep 18, 2009 at 10:58, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: PHP mail function not working
In the original 4.0 release, it wasn't working, but according to the documentation, it's now supported! http://swiftmailer.org/docs/smtp-transport That's great news, because the library is so much more powerful that phpMailer. Sorry for the misinformation. On Fri, Sep 18, 2009 at 9:29 AM, david da...@inspiredthinking.co.uk wrote: TLS used to work with swift mail - has support been dropped? On Fri, 18 Sep 2009 14:50:36 +0200, Patrick Cummins patwcumm...@gmail.com wrote: If your exchange machine requires TLS, you need to use something other than Swift. If you use phpMailer, the authentication code is.. $this-IsSMTP(); $this-SMTPDebug = 2; $this-SMTPAuth = true; $this-SMTPSecure = tls; $this-Host = smtp.yourexchangehost.com; $this-Username = 'yourdomain\yourusername'; // setup this way if you are using domain authentication $this-Password = '*'; If you don't need TLS to connect to exchange, then you just need to test that the mail() function works on your server, like Eno said. On Fri, Sep 18, 2009 at 12:53 AM, DEEPAK BHATIA toreachdee...@gmail.comwrote: Hi, Shall I use PHP Mailer or Swift Mail ? Regards Deepak On Thu, Sep 17, 2009 at 11:37 PM, Patrick Cummins patwcumm...@gmail.com wrote: Yes... I was talking about sending through SMTP (on an exchange server). Some exchange servers require TLS, not just SSL. On Thu, Sep 17, 2009 at 12:40 PM, DEEPAK BHATIA toreachdee...@gmail.com wrote: Hi, Do you mean SSL ? But I am not taking about TLS. The mail function of PHP uses sendmail on linux. When I execute above php page, the mail is not going to the recipietn. I hope we understand each other. Regards Deepak On Thu, Sep 17, 2009 at 9:04 PM, pcummins patwcumm...@gmail.com wrote: Deepak, I shared your gripes. Swift mailer does not support TLS yet, which is required for many exchange servers. PHPMailer does On Sep 17, 8:46 am, Eno symb...@gmail.com wrote: On Thu, 17 Sep 2009, DEEPAK BHATIA wrote: How do we set Fully Qualified Domain Name the /etc/hosts file. Have you tried sending an email from the command line using the 'mail' command? If so, does it work? If not, then your server is not configured properly. -- -- Using Opera's revolutionary e-mail client: http://www.opera.com/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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony has definitely become too complicated framework
It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~-~--~~~---~--~~ 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] Symfony has definitely become too complicated framework
It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
Hi. Well, for me essence and purpose of symfony is to reduce efforts while developing and adjusting complicated and mid-size to large applications. According to my experience, symfony does this job almost perfectly. And yes, I've once tried to build wordpress-like blog with symfony, but abandoned it, since Tumblr and Disqus fit my needs. 2009/9/18 bghost bggho...@gmail.com It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- With the best regards, Andy. --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
You mean parameters to the command line? On Fri, Sep 18, 2009 at 11:29, bghost bggho...@gmail.com wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
You say that symfony became too complicated, which implies it was not before. Can you give us some examples of what became more complicated? That will help us improve the framework. For instance, we have less and less configuration files. Since 1.0, we removed a lot of them, and removed some parameters also. Thanks, Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 bghost wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
I thought on all parameters: in the command line, and various configuration parameters in various configuration files. On Sep 18, 4:38 pm, Sid Ferreira sid@gmail.com wrote: You mean parameters to the command line? On Fri, Sep 18, 2009 at 11:29, bghost bggho...@gmail.com wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
I think that maybe the problem may be, and then I agree, that in jobeet you see tons of parameters (all with their reasons) to almos all tasks. For instance the security pass for creating an app... On Fri, Sep 18, 2009 at 11:43, Fabien Potencier fabien.potenc...@symfony-project.com wrote: You say that symfony became too complicated, which implies it was not before. Can you give us some examples of what became more complicated? That will help us improve the framework. For instance, we have less and less configuration files. Since 1.0, we removed a lot of them, and removed some parameters also. Thanks, Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 bghost wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
Well, we will always have this problem: If you want a lot of options, you need a way to configure it. IMHO symfony is great cause always on possible it uses arrays, so you don't need a lot of in line parameters. But indeed, sometimes it get a bit boring. But, it saves a lot of time. For instance: make a field accept image upload takes less than 5 minutes, including the thumbnail generation On Fri, Sep 18, 2009 at 11:45, bghost bggho...@gmail.com wrote: I thought on all parameters: in the command line, and various configuration parameters in various configuration files. On Sep 18, 4:38 pm, Sid Ferreira sid@gmail.com wrote: You mean parameters to the command line? On Fri, Sep 18, 2009 at 11:29, bghost bggho...@gmail.com wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Sidney G B Ferreira Desenvolvedor Web -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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] url's in backend application
As I understand in backend application in files I must everywhere in each link write at the beginning /backend.php - for example: a href=/backend.php/start/index home/a or form action=?php echo url_for('/backend.php/users/index') ? / yes ??? Because generated links by symfony look for example: url_for('/users/index') so I must everything change by myself adding /backend.php ?? yes or not ? xD I would like to know because maybe I am loosing time for that ? or maybe not ? :) --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
Hi Fabien, - With the introduction of the Doctrine ORM, number of parameters and configuration options are increased manifold. Therefore, the developer must first learn all about the Doctrine ORM. Is that good? Doctrine ORM already providing a fairly good possibilities and options without Symfony. - Symfony WEB forms are a bit too complicated and their relations with the rest of a Symfony application is often unclear. WBR, Ghost3D On Sep 18, 4:43 pm, Fabien Potencier fabien.potenc...@symfony- project.com wrote: You say that symfony became too complicated, which implies it was not before. Can you give us some examples of what became more complicated? That will help us improve the framework. For instance, we have less and less configuration files. Since 1.0, we removed a lot of them, and removed some parameters also. Thanks, Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 bghost wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Symfony becomes too complicated? If you have no experience in using design patterns design patterns, If you have no experience in using design patterns OOP in PHP, If you have no experience in write and work with reusable code (following the DRY paradigm), them Yes, sf it's a complicated framework... But, only for you. Symfony is a very good and adaptable framework, is completely decoupled; if you don't like the render filter, simply comment that filter in config/filter.yml, and then you will not have to know anything about him... The same in other filters... And now, with the new reference book, The symfony Reference Book, with ALL config files explained, and ALL parameters and options documented... If you make the statement Symfony has definitely become too complicated framework is that you have not read all the existing documentation. Another explanation for your statement, is to know whether your application requires a framework, or not ... To make a hello world you don't need a framework Sid Ferreira escribió: Well, could you share what you tried to do? On Fri, Sep 18, 2009 at 10:58, bghost bggho...@gmail.com mailto:bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Sidney G B Ferreira Desenvolvedor Web -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEcBAEBAgAGBQJKs6QnAAoJEFlRSentq+j0jgAH/1Y+ucmx+swRVZWNDMT0Nj25 wMVIc6hGBN51TDHmcxzP2Jn9kOXyy/ac/15YHznAOT08GCxf1TOQvxY9gIciRo03 rT/ZCwFNE6QfDB5+VNUjr44VSvuVsw0bSR0YWHMG0o75znBAWBGt74GvxpPjjzWs Qtxwjb7Q4hr74UwC4ZINg/b4M4LAXam6a8JwJ/l/PTMnWuK5CPLH/aTDJRYT54xZ gbfZJaBS/1TdcBRxByafwL2r4xwE7S9bZyHxVQ0AQVoJs7nfMg9RWB8GS/HGBY4i uC9wev6cp0K2Q/gf40TGDFWSDzKXPIGTMzJHYyuN3kNmjQ1LExw7YrizGkFlumk= =Q8wA -END PGP SIGNATURE- --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
It kinda makes sense... but is also hard how to handle that... Maybe a small intro about Doctrine, but you must remember that using About forms, well, they are classes, if you dig up you find everything, but without any IDE, it's madness... Maybe a 'Symfony for Dummies' was needed, in order to hookup people that doesn't have the minimum knowledge (as Prieto just said) On Fri, Sep 18, 2009 at 12:04, bghost bggho...@gmail.com wrote: Hi Fabien, - With the introduction of the Doctrine ORM, number of parameters and configuration options are increased manifold. Therefore, the developer must first learn all about the Doctrine ORM. Is that good? Doctrine ORM already providing a fairly good possibilities and options without Symfony. - Symfony WEB forms are a bit too complicated and their relations with the rest of a Symfony application is often unclear. WBR, Ghost3D On Sep 18, 4:43 pm, Fabien Potencier fabien.potenc...@symfony- project.com wrote: You say that symfony became too complicated, which implies it was not before. Can you give us some examples of what became more complicated? That will help us improve the framework. For instance, we have less and less configuration files. Since 1.0, we removed a lot of them, and removed some parameters also. Thanks, Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 bghost wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
Options generally, by their very nature, are optional. Many of the default values are sensible and well chosen. Complications when starting to use framework aren't generally due to sf but usually due to how much experience people have with developing against MVC frameworks generally. I guess that some people find the tutorials too complex - because it tends to explain the reasoning behind each stage. When following Jobeet - it's best to run through it quickly without trying to understand the behind the scenes explanation once, and then to repeat it once again to get a better understanding of the who, what, when and why. On Fri, 18 Sep 2009 17:04:08 +0200, bghost bggho...@gmail.com wrote: Hi Fabien, - With the introduction of the Doctrine ORM, number of parameters and configuration options are increased manifold. Therefore, the developer must first learn all about the Doctrine ORM. Is that good? Doctrine ORM already providing a fairly good possibilities and options without Symfony. - Symfony WEB forms are a bit too complicated and their relations with the rest of a Symfony application is often unclear. WBR, Ghost3D On Sep 18, 4:43 pm, Fabien Potencier fabien.potenc...@symfony- project.com wrote: You say that symfony became too complicated, which implies it was not before. Can you give us some examples of what became more complicated? That will help us improve the framework. For instance, we have less and less configuration files. Since 1.0, we removed a lot of them, and removed some parameters also. Thanks, Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 bghost wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Using Opera's revolutionary e-mail client: http://www.opera.com/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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony has definitely become too complicated framework
Dear Jose, I am a programmer for almost 20 years. I worked in almost all known programming languages - from assembler language for many CPU families, through Pascal, C, C++, C #, Ruby, Python, Java, and PHP-a. Believe me that I long ago ceased to write applications such as hello world. WBR, Ghost3D On Sep 18, 5:15 pm, Jose R. Prieto joser.pri...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Symfony becomes too complicated? If you have no experience in using design patterns design patterns, If you have no experience in using design patterns OOP in PHP, If you have no experience in write and work with reusable code (following the DRY paradigm), them Yes, sf it's a complicated framework... But, only for you. Symfony is a very good and adaptable framework, is completely decoupled; if you don't like the render filter, simply comment that filter in config/filter.yml, and then you will not have to know anything about him... The same in other filters... And now, with the new reference book, The symfony Reference Book, with ALL config files explained, and ALL parameters and options documented... If you make the statement Symfony has definitely become too complicated framework is that you have not read all the existing documentation. Another explanation for your statement, is to know whether your application requires a framework, or not ... To make a hello world you don't need a framework Sid Ferreira escribió: Well, could you share what you tried to do? On Fri, Sep 18, 2009 at 10:58, bghost bggho...@gmail.com mailto:bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Sidney G B Ferreira Desenvolvedor Web -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org iQEcBAEBAgAGBQJKs6QnAAoJEFlRSentq+j0jgAH/1Y+ucmx+swRVZWNDMT0Nj25 wMVIc6hGBN51TDHmcxzP2Jn9kOXyy/ac/15YHznAOT08GCxf1TOQvxY9gIciRo03 rT/ZCwFNE6QfDB5+VNUjr44VSvuVsw0bSR0YWHMG0o75znBAWBGt74GvxpPjjzWs Qtxwjb7Q4hr74UwC4ZINg/b4M4LAXam6a8JwJ/l/PTMnWuK5CPLH/aTDJRYT54xZ gbfZJaBS/1TdcBRxByafwL2r4xwE7S9bZyHxVQ0AQVoJs7nfMg9RWB8GS/HGBY4i uC9wev6cp0K2Q/gf40TGDFWSDzKXPIGTMzJHYyuN3kNmjQ1LExw7YrizGkFlumk= =Q8wA -END PGP SIGNATURE- --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
Yes Sid, Jobeet is an application that should be written in max 2 days. WBR, Ghost3D On Sep 18, 4:46 pm, Sid Ferreira sid@gmail.com wrote: I think that maybe the problem may be, and then I agree, that in jobeet you see tons of parameters (all with their reasons) to almos all tasks. For instance the security pass for creating an app... On Fri, Sep 18, 2009 at 11:43, Fabien Potencier fabien.potenc...@symfony-project.com wrote: You say that symfony became too complicated, which implies it was not before. Can you give us some examples of what became more complicated? That will help us improve the framework. For instance, we have less and less configuration files. Since 1.0, we removed a lot of them, and removed some parameters also. Thanks, Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 bghost wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
Well, that give some strenght to my future plans with sf... On Fri, Sep 18, 2009 at 12:17, bghost bggho...@gmail.com wrote: Yes Sid, Jobeet is an application that should be written in max 2 days. WBR, Ghost3D On Sep 18, 4:46 pm, Sid Ferreira sid@gmail.com wrote: I think that maybe the problem may be, and then I agree, that in jobeet you see tons of parameters (all with their reasons) to almos all tasks. For instance the security pass for creating an app... On Fri, Sep 18, 2009 at 11:43, Fabien Potencier fabien.potenc...@symfony-project.com wrote: You say that symfony became too complicated, which implies it was not before. Can you give us some examples of what became more complicated? That will help us improve the framework. For instance, we have less and less configuration files. Since 1.0, we removed a lot of them, and removed some parameters also. Thanks, Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 bghost wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Sidney G B Ferreira Desenvolvedor Web -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
The forms side of things is complex and cumbersome - but mostly due to the nature of PHP itself. Lacking a decent WYSIWYG IDE does symfony and PHP in general a disservice - but the flip argument is that you're an engineer not a photoshop monkey. From the tutorial perspective Sid's right - there needs to be more - and probably a minimum of 3: 1) Simple, uncomplicated - show the speed and power of sf 2) Jobeet - simple but has the background 3) Complex - detailed The API documentation of SF should be linked back to the tutorials - giving examples of usage and allowing people to refer to examples. On Fri, 18 Sep 2009 17:20:45 +0200, Sid Ferreira sid@gmail.com wrote: It kinda makes sense... but is also hard how to handle that... Maybe a small intro about Doctrine, but you must remember that using About forms, well, they are classes, if you dig up you find everything, but without any IDE, it's madness... Maybe a 'Symfony for Dummies' was needed, in order to hookup people that doesn't have the minimum knowledge (as Prieto just said) On Fri, Sep 18, 2009 at 12:04, bghost bggho...@gmail.com wrote: Hi Fabien, - With the introduction of the Doctrine ORM, number of parameters and configuration options are increased manifold. Therefore, the developer must first learn all about the Doctrine ORM. Is that good? Doctrine ORM already providing a fairly good possibilities and options without Symfony. - Symfony WEB forms are a bit too complicated and their relations with the rest of a Symfony application is often unclear. WBR, Ghost3D On Sep 18, 4:43 pm, Fabien Potencier fabien.potenc...@symfony- project.com wrote: You say that symfony became too complicated, which implies it was not before. Can you give us some examples of what became more complicated? That will help us improve the framework. For instance, we have less and less configuration files. Since 1.0, we removed a lot of them, and removed some parameters also. Thanks, Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 bghost wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Using Opera's revolutionary e-mail client: http://www.opera.com/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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony has definitely become too complicated framework
The most easy thing to understand is something that doesn't need documentation and I believe that THIS is the point that BGhost is talking about.I don't want launch a rocket in 30 days, I want my gallery ready in 12 minutes... On Fri, Sep 18, 2009 at 12:26, Thomas Rabaix thomas.rab...@gmail.comwrote: Symfony has many components, each of them are : - easy to understand - easy to configure - very well documented Now, the only thing complicated is to know how all these components play together. This is the tricky part, but symfony default configuration will be fine for many projects. You just need to go further ... if you have already create/try to implement a framework, you will see that symfony has all STABLE the pieces you need. Try to use an IDE : netbeans or eclipse, these two IDE are great to navigate across the code and understand it. On Fri, Sep 18, 2009 at 5:04 PM, bghost bggho...@gmail.com wrote: Hi Fabien, - With the introduction of the Doctrine ORM, number of parameters and configuration options are increased manifold. Therefore, the developer must first learn all about the Doctrine ORM. Is that good? Doctrine ORM already providing a fairly good possibilities and options without Symfony. - Symfony WEB forms are a bit too complicated and their relations with the rest of a Symfony application is often unclear. WBR, Ghost3D On Sep 18, 4:43 pm, Fabien Potencier fabien.potenc...@symfony- project.com wrote: You say that symfony became too complicated, which implies it was not before. Can you give us some examples of what became more complicated? That will help us improve the framework. For instance, we have less and less configuration files. Since 1.0, we removed a lot of them, and removed some parameters also. Thanks, Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 bghost wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Thomas Rabaix http://rabaix.net -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
David: up! On Fri, Sep 18, 2009 at 12:29, david da...@inspiredthinking.co.uk wrote: The forms side of things is complex and cumbersome - but mostly due to the nature of PHP itself. Lacking a decent WYSIWYG IDE does symfony and PHP in general a disservice - but the flip argument is that you're an engineer not a photoshop monkey. From the tutorial perspective Sid's right - there needs to be more - and probably a minimum of 3: 1) Simple, uncomplicated - show the speed and power of sf 2) Jobeet - simple but has the background 3) Complex - detailed The API documentation of SF should be linked back to the tutorials - giving examples of usage and allowing people to refer to examples. On Fri, 18 Sep 2009 17:20:45 +0200, Sid Ferreira sid@gmail.com wrote: It kinda makes sense... but is also hard how to handle that... Maybe a small intro about Doctrine, but you must remember that using About forms, well, they are classes, if you dig up you find everything, but without any IDE, it's madness... Maybe a 'Symfony for Dummies' was needed, in order to hookup people that doesn't have the minimum knowledge (as Prieto just said) On Fri, Sep 18, 2009 at 12:04, bghost bggho...@gmail.com wrote: Hi Fabien, - With the introduction of the Doctrine ORM, number of parameters and configuration options are increased manifold. Therefore, the developer must first learn all about the Doctrine ORM. Is that good? Doctrine ORM already providing a fairly good possibilities and options without Symfony. - Symfony WEB forms are a bit too complicated and their relations with the rest of a Symfony application is often unclear. WBR, Ghost3D On Sep 18, 4:43 pm, Fabien Potencier fabien.potenc...@symfony- project.com wrote: You say that symfony became too complicated, which implies it was not before. Can you give us some examples of what became more complicated? That will help us improve the framework. For instance, we have less and less configuration files. Since 1.0, we removed a lot of them, and removed some parameters also. Thanks, Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 bghost wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
Actually, each advent callendar could have a small client application.For instance, in jobeet, an affiliate website. On Fri, Sep 18, 2009 at 12:31, Sid Ferreira sid@gmail.com wrote: David: up! On Fri, Sep 18, 2009 at 12:29, david da...@inspiredthinking.co.uk wrote: The forms side of things is complex and cumbersome - but mostly due to the nature of PHP itself. Lacking a decent WYSIWYG IDE does symfony and PHP in general a disservice - but the flip argument is that you're an engineer not a photoshop monkey. From the tutorial perspective Sid's right - there needs to be more - and probably a minimum of 3: 1) Simple, uncomplicated - show the speed and power of sf 2) Jobeet - simple but has the background 3) Complex - detailed The API documentation of SF should be linked back to the tutorials - giving examples of usage and allowing people to refer to examples. On Fri, 18 Sep 2009 17:20:45 +0200, Sid Ferreira sid@gmail.com wrote: It kinda makes sense... but is also hard how to handle that... Maybe a small intro about Doctrine, but you must remember that using About forms, well, they are classes, if you dig up you find everything, but without any IDE, it's madness... Maybe a 'Symfony for Dummies' was needed, in order to hookup people that doesn't have the minimum knowledge (as Prieto just said) On Fri, Sep 18, 2009 at 12:04, bghost bggho...@gmail.com wrote: Hi Fabien, - With the introduction of the Doctrine ORM, number of parameters and configuration options are increased manifold. Therefore, the developer must first learn all about the Doctrine ORM. Is that good? Doctrine ORM already providing a fairly good possibilities and options without Symfony. - Symfony WEB forms are a bit too complicated and their relations with the rest of a Symfony application is often unclear. WBR, Ghost3D On Sep 18, 4:43 pm, Fabien Potencier fabien.potenc...@symfony- project.com wrote: You say that symfony became too complicated, which implies it was not before. Can you give us some examples of what became more complicated? That will help us improve the framework. For instance, we have less and less configuration files. Since 1.0, we removed a lot of them, and removed some parameters also. Thanks, Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 bghost wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- Sidney G B Ferreira Desenvolvedor Web -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: url's in backend application
http://www.symfony-project.org/cookbook/1_2/en/cross-application-links Is this what you want? On Sep 18, 12:02 pm, mini_alexander aoohra...@gmail.com wrote: As I understand in backend application in files I must everywhere in each link write at the beginning /backend.php - for example: a href=/backend.php/start/index home/a or form action=?php echo url_for('/backend.php/users/index') ? / yes ??? Because generated links by symfony look for example: url_for('/users/index') so I must everything change by myself adding /backend.php ?? yes or not ? xD I would like to know because maybe I am loosing time for that ? or maybe not ? :) --~--~-~--~~~---~--~~ 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: url's in backend application
Rather not ;] I am new and I simply would like to know it is normal that I must add to each link in backend application at the beginning: '/backend.php' ? I think yes because frontend is default application, not backend but maybe I am wrong ? On 18 Wrz, 17:39, Sid Ferreira sid@gmail.com wrote: http://www.symfony-project.org/cookbook/1_2/en/cross-application-links Is this what you want? On Sep 18, 12:02 pm, mini_alexander aoohra...@gmail.com wrote: As I understand in backend application in files I must everywhere in each link write at the beginning /backend.php - for example: a href=/backend.php/start/index home/a or form action=?php echo url_for('/backend.php/users/index') ? / yes ??? Because generated links by symfony look for example: url_for('/users/index') so I must everything change by myself adding /backend.php ?? yes or not ? xD I would like to know because maybe I am loosing time for that ? or maybe not ? :) --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
These are general thoughts - and they aren't complete - so try to read between the lines a little :) I've been wondering for a while on how the GUI side of things can be reworked to make things more fluid for devs while also allowing the Dev/Designer team to be more effective. I've been thinking along the lines of GUI based behaviors - that can be applied to views/widgets/components/forms/data-sets. It's best explained by an example that I've suggested in other places (hi J.Wage :)): Take translation - it's something we apply to models and templates. Imagine a Translation behaviour for the UI - you apply it to the view/form/page and it supplements the output with style and JS that displays a GUI helper for inline translation of the page elements. On Fri, 18 Sep 2009 17:33:55 +0200, Sid Ferreira sid@gmail.com wrote: Actually, each advent callendar could have a small client application.For instance, in jobeet, an affiliate website. On Fri, Sep 18, 2009 at 12:31, Sid Ferreira sid@gmail.com wrote: David: up! On Fri, Sep 18, 2009 at 12:29, david da...@inspiredthinking.co.uk wrote: The forms side of things is complex and cumbersome - but mostly due to the nature of PHP itself. Lacking a decent WYSIWYG IDE does symfony and PHP in general a disservice - but the flip argument is that you're an engineer not a photoshop monkey. From the tutorial perspective Sid's right - there needs to be more - and probably a minimum of 3: 1) Simple, uncomplicated - show the speed and power of sf 2) Jobeet - simple but has the background 3) Complex - detailed The API documentation of SF should be linked back to the tutorials - giving examples of usage and allowing people to refer to examples. On Fri, 18 Sep 2009 17:20:45 +0200, Sid Ferreira sid@gmail.com wrote: It kinda makes sense... but is also hard how to handle that... Maybe a small intro about Doctrine, but you must remember that using About forms, well, they are classes, if you dig up you find everything, but without any IDE, it's madness... Maybe a 'Symfony for Dummies' was needed, in order to hookup people that doesn't have the minimum knowledge (as Prieto just said) On Fri, Sep 18, 2009 at 12:04, bghost bggho...@gmail.com wrote: Hi Fabien, - With the introduction of the Doctrine ORM, number of parameters and configuration options are increased manifold. Therefore, the developer must first learn all about the Doctrine ORM. Is that good? Doctrine ORM already providing a fairly good possibilities and options without Symfony. - Symfony WEB forms are a bit too complicated and their relations with the rest of a Symfony application is often unclear. WBR, Ghost3D On Sep 18, 4:43 pm, Fabien Potencier fabien.potenc...@symfony- project.com wrote: You say that symfony became too complicated, which implies it was not before. Can you give us some examples of what became more complicated? That will help us improve the framework. For instance, we have less and less configuration files. Since 1.0, we removed a lot of them, and removed some parameters also. Thanks, Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 bghost wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- Sidney G B Ferreira Desenvolvedor Web -- Using Opera's revolutionary e-mail
[symfony-users] Re: url's in backend application
Ok, I think I got it. See, backend will add the file name for ya On Fri, Sep 18, 2009 at 12:48, mini_alexander aoohra...@gmail.com wrote: Rather not ;] I am new and I simply would like to know it is normal that I must add to each link in backend application at the beginning: '/backend.php' ? I think yes because frontend is default application, not backend but maybe I am wrong ? On 18 Wrz, 17:39, Sid Ferreira sid@gmail.com wrote: http://www.symfony-project.org/cookbook/1_2/en/cross-application-links Is this what you want? On Sep 18, 12:02 pm, mini_alexander aoohra...@gmail.com wrote: As I understand in backend application in files I must everywhere in each link write at the beginning /backend.php - for example: a href=/backend.php/start/index home/a or form action=?php echo url_for('/backend.php/users/index') ? / yes ??? Because generated links by symfony look for example: url_for('/users/index') so I must everything change by myself adding /backend.php ?? yes or not ? xD I would like to know because maybe I am loosing time for that ? or maybe not ? :) -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
No, the crux of what I wanted to say is: Users should not spend more time to learn how some Web Framework works but they need to learn a programming language. Any framework should be only an auxiliary tool, not an entire small science. So, simplicity and speed should be paramount. WBR, Ghost3D On Sep 18, 5:30 pm, Sid Ferreira sid@gmail.com wrote: The most easy thing to understand is something that doesn't need documentation and I believe that THIS is the point that BGhost is talking about.I don't want launch a rocket in 30 days, I want my gallery ready in 12 minutes... On Fri, Sep 18, 2009 at 12:26, Thomas Rabaix thomas.rab...@gmail.comwrote: Symfony has many components, each of them are : - easy to understand - easy to configure - very well documented Now, the only thing complicated is to know how all these components play together. This is the tricky part, but symfony default configuration will be fine for many projects. You just need to go further ... if you have already create/try to implement a framework, you will see that symfony has all STABLE the pieces you need. Try to use an IDE : netbeans or eclipse, these two IDE are great to navigate across the code and understand it. On Fri, Sep 18, 2009 at 5:04 PM, bghost bggho...@gmail.com wrote: Hi Fabien, - With the introduction of the Doctrine ORM, number of parameters and configuration options are increased manifold. Therefore, the developer must first learn all about the Doctrine ORM. Is that good? Doctrine ORM already providing a fairly good possibilities and options without Symfony. - Symfony WEB forms are a bit too complicated and their relations with the rest of a Symfony application is often unclear. WBR, Ghost3D On Sep 18, 4:43 pm, Fabien Potencier fabien.potenc...@symfony- project.com wrote: You say that symfony became too complicated, which implies it was not before. Can you give us some examples of what became more complicated? That will help us improve the framework. For instance, we have less and less configuration files. Since 1.0, we removed a lot of them, and removed some parameters also. Thanks, Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 bghost wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Thomas Rabaix http://rabaix.net -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: url's in backend application
I don't understand. My nation language isn't English. what did you got ? On 18 Wrz, 17:51, Sid Ferreira sid@gmail.com wrote: Ok, I think I got it. See, backend will add the file name for ya On Fri, Sep 18, 2009 at 12:48, mini_alexander aoohra...@gmail.com wrote: Rather not ;] I am new and I simply would like to know it is normal that I must add to each link in backend application at the beginning: '/backend.php' ? I think yes because frontend is default application, not backend but maybe I am wrong ? On 18 Wrz, 17:39, Sid Ferreira sid@gmail.com wrote: http://www.symfony-project.org/cookbook/1_2/en/cross-application-links Is this what you want? On Sep 18, 12:02 pm, mini_alexander aoohra...@gmail.com wrote: As I understand in backend application in files I must everywhere in each link write at the beginning /backend.php - for example: a href=/backend.php/start/index home/a or form action=?php echo url_for('/backend.php/users/index') ? / yes ??? Because generated links by symfony look for example: url_for('/users/index') so I must everything change by myself adding /backend.php ?? yes or not ? xD I would like to know because maybe I am loosing time for that ? or maybe not ? :) -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: url's in backend application
You can simply use `url_for(users/index)`, symfony will add backed.php, if neccesary. On Fri, Sep 18, 2009 at 18:31, mini_alexander aoohra...@gmail.com wrote: I don't understand. My nation language isn't English. what did you got ? On 18 Wrz, 17:51, Sid Ferreira sid@gmail.com wrote: Ok, I think I got it. See, backend will add the file name for ya On Fri, Sep 18, 2009 at 12:48, mini_alexander aoohra...@gmail.com wrote: Rather not ;] I am new and I simply would like to know it is normal that I must add to each link in backend application at the beginning: '/backend.php' ? I think yes because frontend is default application, not backend but maybe I am wrong ? On 18 Wrz, 17:39, Sid Ferreira sid@gmail.com wrote: http://www.symfony-project.org/cookbook/1_2/en/cross-application-links Is this what you want? On Sep 18, 12:02 pm, mini_alexander aoohra...@gmail.com wrote: As I understand in backend application in files I must everywhere in each link write at the beginning /backend.php - for example: a href=/backend.php/start/index home/a or form action=?php echo url_for('/backend.php/users/index') ? / yes ??? Because generated links by symfony look for example: url_for('/users/index') so I must everything change by myself adding /backend.php ?? yes or not ? xD I would like to know because maybe I am loosing time for that ? or maybe not ? :) -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: url's in backend application
You mean that you want to know if you need write backend_dev.php in your links, is it?Well, the answer is NO. Symfony it self does that for you. On Fri, Sep 18, 2009 at 13:31, mini_alexander aoohra...@gmail.com wrote: I don't understand. My nation language isn't English. what did you got ? On 18 Wrz, 17:51, Sid Ferreira sid@gmail.com wrote: Ok, I think I got it. See, backend will add the file name for ya On Fri, Sep 18, 2009 at 12:48, mini_alexander aoohra...@gmail.com wrote: Rather not ;] I am new and I simply would like to know it is normal that I must add to each link in backend application at the beginning: '/backend.php' ? I think yes because frontend is default application, not backend but maybe I am wrong ? On 18 Wrz, 17:39, Sid Ferreira sid@gmail.com wrote: http://www.symfony-project.org/cookbook/1_2/en/cross-application-links Is this what you want? On Sep 18, 12:02 pm, mini_alexander aoohra...@gmail.com wrote: As I understand in backend application in files I must everywhere in each link write at the beginning /backend.php - for example: a href=/backend.php/start/index home/a or form action=?php echo url_for('/backend.php/users/index') ? / yes ??? Because generated links by symfony look for example: url_for('/users/index') so I must everything change by myself adding /backend.php ?? yes or not ? xD I would like to know because maybe I am loosing time for that ? or maybe not ? :) -- Sidney G B Ferreira Desenvolvedor Web -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: Configure a virtual host to access multiple symfony projects
On Fri, 18 Sep 2009, Davide Borsatto wrote: Lately I've been doing many experiments with symfony, creating differents projects for each of them. I usually create an apache dedicated virtual host, with a defined server name, link to the web/ directory of symfony, and add a row to the /etc/hosts file to match the new server name. Another way to go is to have all your apps in one symfony tree and use multiple controllers, each in a separate folder (each controller points to the same tree but sets a different application). We have been using this technique to migrate an old site (static files) piece-by-piece by building the app and simply dropping an index.php file in the folder after the app is built and tested. This doesn't require any special modules or Apache voodoo :-) -- --~--~-~--~~~---~--~~ 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: url's in backend application
Sid - yes you good understand me. url_for(users/index) in forms works. But in links I also don't need to add '/backend.php' at the beginning ? So why when I have url in browser: http://localhost/backend.php/profile/index And click on the link: a href=profile/change_avatar I see in url of browser second time word 'profile': http://localhost/backend.php/profile/profile/change_avatar It should be: http://localhost/backend.php/profile/change_avatar ?? Why ?? On 18 Wrz, 18:49, Sid Ferreira sid@gmail.com wrote: You mean that you want to know if you need write backend_dev.php in your links, is it?Well, the answer is NO. Symfony it self does that for you. On Fri, Sep 18, 2009 at 13:31, mini_alexander aoohra...@gmail.com wrote: I don't understand. My nation language isn't English. what did you got ? On 18 Wrz, 17:51, Sid Ferreira sid@gmail.com wrote: Ok, I think I got it. See, backend will add the file name for ya On Fri, Sep 18, 2009 at 12:48, mini_alexander aoohra...@gmail.com wrote: Rather not ;] I am new and I simply would like to know it is normal that I must add to each link in backend application at the beginning: '/backend.php' ? I think yes because frontend is default application, not backend but maybe I am wrong ? On 18 Wrz, 17:39, Sid Ferreira sid@gmail.com wrote: http://www.symfony-project.org/cookbook/1_2/en/cross-application-links Is this what you want? On Sep 18, 12:02 pm, mini_alexander aoohra...@gmail.com wrote: As I understand in backend application in files I must everywhere in each link write at the beginning /backend.php - for example: a href=/backend.php/start/index home/a or form action=?php echo url_for('/backend.php/users/index') ? / yes ??? Because generated links by symfony look for example: url_for('/users/index') so I must everything change by myself adding /backend.php ?? yes or not ? xD I would like to know because maybe I am loosing time for that ? or maybe not ? :) -- Sidney G B Ferreira Desenvolvedor Web -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: Routing doesn't take place
On Fri, 18 Sep 2009, HAUSa wrote: I have a problem with my routing.yml. My URL is still /vastgoed? page=3, despite my routing configuration: estate_page: url: /vastgoed/:page param: { module: page, action: estate } This is how I build the URL: ?php echo url_for('page/estate?page=' . $page) ? http://www.symfony-project.org/book/1_2/09-Links-and-the-Routing-System#chapter_09_sub_speeding_up_routing_by_using_the_rule_name -- --~--~-~--~~~---~--~~ 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: url's in backend application
it's probably something misconfigured... Can you paste your settings.yml and show us? On Fri, Sep 18, 2009 at 14:12, mini_alexander aoohra...@gmail.com wrote: Sid - yes you good understand me. url_for(users/index) in forms works. But in links I also don't need to add '/backend.php' at the beginning ? So why when I have url in browser: http://localhost/backend.php/profile/index And click on the link: a href=profile/change_avatar I see in url of browser second time word 'profile': http://localhost/backend.php/profile/profile/change_avatar It should be: http://localhost/backend.php/profile/change_avatar ?? Why ?? On 18 Wrz, 18:49, Sid Ferreira sid@gmail.com wrote: You mean that you want to know if you need write backend_dev.php in your links, is it?Well, the answer is NO. Symfony it self does that for you. On Fri, Sep 18, 2009 at 13:31, mini_alexander aoohra...@gmail.com wrote: I don't understand. My nation language isn't English. what did you got ? On 18 Wrz, 17:51, Sid Ferreira sid@gmail.com wrote: Ok, I think I got it. See, backend will add the file name for ya On Fri, Sep 18, 2009 at 12:48, mini_alexander aoohra...@gmail.com wrote: Rather not ;] I am new and I simply would like to know it is normal that I must add to each link in backend application at the beginning: '/backend.php' ? I think yes because frontend is default application, not backend but maybe I am wrong ? On 18 Wrz, 17:39, Sid Ferreira sid@gmail.com wrote: http://www.symfony-project.org/cookbook/1_2/en/cross-application-links Is this what you want? On Sep 18, 12:02 pm, mini_alexander aoohra...@gmail.com wrote: As I understand in backend application in files I must everywhere in each link write at the beginning /backend.php - for example: a href=/backend.php/start/index home/a or form action=?php echo url_for('/backend.php/users/index') ? / yes ??? Because generated links by symfony look for example: url_for('/users/index') so I must everything change by myself adding /backend.php ?? yes or not ? xD I would like to know because maybe I am loosing time for that ? or maybe not ? :) -- Sidney G B Ferreira Desenvolvedor Web -- Sidney G B Ferreira Desenvolvedor Web -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
On Fri, 18 Sep 2009, bghost wrote: I am a programmer for almost 20 years. I worked in almost all known programming languages - from assembler language for many CPU families, through Pascal, C, C++, C #, Ruby, Python, Java, and PHP-a. Believe me that I long ago ceased to write applications such as hello world. Me too, but I believe a powerful framework *does* require some effort to learn and master. You will probably have a similar learning curve with CakePHP, Zend, Django or Rails. Ive been working with web applications for over 10 years now and I believe symfony is a good framework. -- --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
On Fri, 18 Sep 2009, bghost wrote: - Symfony WEB forms are a bit too complicated and their relations with the rest of a Symfony application is often unclear. This is a valid point: the definitive guide does not talk about the new forms framework very much. It also doesn't talk enough about the Doctrine ORM. If the separate docs could somehow be integrated into the defintive guide, it might help. I should also point out: symfony probably has the best documentation, forums, mailing lists and books that most other frameworks. -- --~--~-~--~~~---~--~~ 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: url's in backend application
On Fri, 18 Sep 2009, mini_alexander wrote: Sid - yes you good understand me. url_for(users/index) in forms works. But in links I also don't need to add '/backend.php' at the beginning ? So why when I have url in browser: http://localhost/backend.php/profile/index And click on the link: a href=profile/change_avatar I see in url of browser second time word 'profile': http://localhost/backend.php/profile/profile/change_avatar It should be: http://localhost/backend.php/profile/change_avatar ?? Why ?? Remember you can't have more than one controller in a directory. Usually index.php is your default application and your .htaccess rules redirect to that controller by default. But mod-rewrite knows nothing about your routing in your application so it can't selectively route to your backend controller. You could of course, but your backend controller in its own folder with its own .htaccess file - that might look better. -- --~--~-~--~~~---~--~~ 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: PHP mail function not working
On Thu, 17 Sep 2009, Patrick Cummins wrote: Yes... I was talking about sending through SMTP (on an exchange server). Why are you talking about Exchange when the OP is talking about Linux? -- --~--~-~--~~~---~--~~ 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: url's in backend application
I think his backend is with 'no_script_name' on On Fri, Sep 18, 2009 at 14:30, Eno symb...@gmail.com wrote: On Fri, 18 Sep 2009, mini_alexander wrote: Sid - yes you good understand me. url_for(users/index) in forms works. But in links I also don't need to add '/backend.php' at the beginning ? So why when I have url in browser: http://localhost/backend.php/profile/index And click on the link: a href=profile/change_avatar I see in url of browser second time word 'profile': http://localhost/backend.php/profile/profile/change_avatar It should be: http://localhost/backend.php/profile/change_avatar ?? Why ?? Remember you can't have more than one controller in a directory. Usually index.php is your default application and your .htaccess rules redirect to that controller by default. But mod-rewrite knows nothing about your routing in your application so it can't selectively route to your backend controller. You could of course, but your backend controller in its own folder with its own .htaccess file - that might look better. -- -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: PHP mail function not working
On Thu, 17 Sep 2009, DEEPAK BHATIA wrote: When I execute above php page, the mail is not going to the recipietn. Is it in the mail queue on the sending machine? Run 'mailq' to check. Can you send email from the command-line? Generally, queuing locally and using sendmail or postfix is more reliable because mail servers will queue the message and keep trying to send out. BUT it requires you to have those services running on your web server (not a problem - I usually tell them to only listen on the localhost IP). The other way is to use SMTP, which might be a bit faster, but if your SMTP server is down or unreachable, the email will simply not get sent, nor will it get queued for a retry later. I prefer reliability myself. -- --~--~-~--~~~---~--~~ 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] different labels for a form
Hi all, i have to work on a poll site where some users should create a form and present it to other people. The form is always the same, but the definitions/labels of the field should be decided by the form-maker. what's the better method to let my users change and personalize the labels of forms and tables? The data will be stored in the same culumn of the same table of the databases, but i want that several users should change the lables trhoug a panel and show the forms with their own text. Is it possible? How do you manage a thing like that? Sorry for my poor english and thanks in advance, Cosimo --~--~-~--~~~---~--~~ 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: Performance optimization!HELP!!
On Thu, 17 Sep 2009, Phil Moorhouse wrote: If you're using multiple web servers, look at using memcached for session storage and for the view cache. memcache is also great for caching routing, database query results and function results. I work on a site with huge traffic and memcache has been fantastic. -- --~--~-~--~~~---~--~~ 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] sfGuard Question
Hi, I am using sfGuardPlugin for building an authentication system. I am trying to make it work when the login form is submitted through AJAX. Are there any examples to do this? Thanks. _ Bing brings you health info from trusted sources. http://www.bing.com/search?q=pet+allergyform=MHEINApubl=WLHMTAGcrea=TXT_MHEINA_Health_Health_PetAllergy_1x1 --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
The form book http://www.symfony-project.org/forms/1_2/en/ The doctrine book http://www.symfony-project.org/doctrine/1_2/en/ I have found these to be incredibly useful when solving problems, second only to reading the code. On Sep 18, 10:26 am, Eno symb...@gmail.com wrote: On Fri, 18 Sep 2009, bghost wrote: - Symfony WEB forms are a bit too complicated and their relations with the rest of a Symfony application is often unclear. This is a valid point: the definitive guide does not talk about the new forms framework very much. It also doesn't talk enough about the Doctrine ORM. If the separate docs could somehow be integrated into the defintive guide, it might help. I should also point out: symfony probably has the best documentation, forums, mailing lists and books that most other frameworks. -- --~--~-~--~~~---~--~~ 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] sfGuardPlugin with profile
X-No-Archive: == Symfony 1.2.7 Propel == Hello, I want to use a profile with the sfGuard Plugin. I embed sfGuardUserProfileForm into my own form : ?php class RegisterForm extends sfGuardUserForm { public function configure() { // Remove all widgets we don't want to show unset($this['is_active'], $this['is_super_admin'], ... // User Profile $profileForm = new sfGuardUserProfileForm(); $this-embedForm('Profile', $profileForm); unset($profileForm['id'], $profileForm['user_id'] ); The template _form.php look like : tr th?php echo $form['Profile']['last_name']-renderLabel() ? /th td?php echo $form['Profile']['last_name'] ?/td /tr tr th?php echo $form['Profile']['first_name']-renderLabel() ?/th td?php echo $form['Profile']['first_name'] ?/td /tr tr th?php echo $form['username']-renderLabel() ? :/th td?php echo $form['username'] ?/td /tr tr th?php echo $form['password']-renderLabel() ?/th td?php echo $form['password'] ?/td /tr tr th?php echo $form['password_confirmation']-renderLabel() ?/th td?php echo $form['password_confirmation'] ?/td and the actions.class.php file : ?php class compteActions extends sfActions { public function executeNew(sfWebRequest $request) { $this-form = new RegisterForm(); } public function executeCreate(sfWebRequest $request) { $this-forward404Unless($request-isMethod('post')); $this-form = new RegisterForm(); $this-processForm($request, $this-form); $this-setTemplate('new'); } protected function processForm(sfWebRequest $request, sfForm $form) { $this-form-bind($request-getParameter('sf_guard_user')); if ($form-isValid()) { $this-redirect('compte/liste'); } } } But no database insert. The user_id field is required. user_id is define in schema.yml as : sf_guard_user_profile: _attributes: { phpName: sfGuardUserProfile } id: user_id: { type: integer, foreignTable: sf_guard_user, foreignReference: id, required: true, onDelete: cascade } first_name: varchar(20) last_name: varchar(20) How do I make the link between user en profile ? And after that how can I make the distinction beetween create en edit ? Thanks for your Help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-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: Symfony has definitely become too complicated framework
THIS is something that is worth an exclusive tutorial to talk about... if possible, video cast *added to my schedule* On Fri, Sep 18, 2009 at 16:27, bghost bggho...@gmail.com wrote: I think that the attempt of putting the entire WEB form within the class only unnecessarily complicate such a simple thing such is form handling. That's just forcing WEB developers to learn how to make simple things on the complicated way. WBR, Ghost3D On Sep 18, 7:26 pm, Eno symb...@gmail.com wrote: On Fri, 18 Sep 2009, bghost wrote: - Symfony WEB forms are a bit too complicated and their relations with the rest of a Symfony application is often unclear. This is a valid point: the definitive guide does not talk about the new forms framework very much. It also doesn't talk enough about the Doctrine ORM. If the separate docs could somehow be integrated into the defintive guide, it might help. I should also point out: symfony probably has the best documentation, forums, mailing lists and books that most other frameworks. -- -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
On 18.09.2009, at 21:27, bghost wrote: I think that the attempt of putting the entire WEB form within the class only unnecessarily complicate such a simple thing such is form handling. That's just forcing WEB developers to learn how to make simple things on the complicated way. i think this is a valid criticism. there is a clear shift away from having just some html/css/js guru do the templates back in symfony 1.0 towards requiring a symfony expert to also handle the templates, but that person lacks the html/css/js guru knowhow. the pay off is however that a symfony expert can now do a lot more if he just sits down with the html/css/js guru to create the required widgets in pair programming. the quality of the site should also increase since reuse is done more on the widget side of things but more importantly you start to bring everything data related together in the models, so you have a single definitive source. so what does it all mean? teach your symfony experts some more html/ css/js, teach your html/css/js guru some symfony .. or better yet .. facilitate paired programming .. and you should be off producing high quality more maintainable sites in less time .. but the old workflow of clear work separation isnt going to cut it anymore. then again, you can still keep the spirit of 1.0 in 1.2 i guess .. regards, Lukas Kahwe Smith m...@pooteeweet.org --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
It may be the case that Jobeet is trying to help you learn Symfony, so it is designed to touch on all the configurations, intentionally, so one becomes aware of them. On Sep 18, 7:45 am, bghost bggho...@gmail.com wrote: I thought on all parameters: in the command line, and various configuration parameters in various configuration files. On Sep 18, 4:38 pm, Sid Ferreira sid@gmail.com wrote: You mean parameters to the command line? On Fri, Sep 18, 2009 at 11:29, bghost bggho...@gmail.com wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
While for the trivial tasks it's overkill - generally you wouldn't use sf for trivial tasks. The current UI approach does encourage promote reuse - which is often overlooked and a practice that's only slowly making it's way from the programming community to others (such as designers). The UI side of things in sf could do with some approaches to make it more friendly - to both designers and developers - but the issues are generic to most interpreted languages. Symfony is a framework that provides a good clear API for software engineers who wish to design flexible scalable applications. It's not for HTML programmers or markup writers - mostly because those who design approach and tackle problems differently to those who engineer software. Now with sf you can knock up a prototype application very quickly - both with an interface for users and administrators - and without having to write very much code. It won't look pretty and it won't have much in the way of business logic - but that's why people who write software are paid :) Depending on your experience both of PHP and sf - you may not find the code very easy to read - but this is just a matter of experience of them both. Whatever your background in other languages - there's a learning curve to using and developing with something new. But don't throw the baby out with the bath-water - you started to use sf for a reason. Just take the time to work though the issues your facing, embrace the pain of the learning curve and I'm sure you'll find it worthwhile. Generally the documentation is very good esp compared to other PHP frameworks - but it lacks a lot if you compare it to that put out by MS Co. This is something that should be addressed - and will be with time. Hopefully with sf 2.0 we can address and back-work some of the effort to 1.x. On Fri, 18 Sep 2009 21:27:16 +0200, bghost bggho...@gmail.com wrote: I think that the attempt of putting the entire WEB form within the class only unnecessarily complicate such a simple thing such is form handling. That's just forcing WEB developers to learn how to make simple things on the complicated way. WBR, Ghost3D On Sep 18, 7:26 pm, Eno symb...@gmail.com wrote: On Fri, 18 Sep 2009, bghost wrote: - Symfony WEB forms are a bit too complicated and their relations with the rest of a Symfony application is often unclear. This is a valid point: the definitive guide does not talk about the new forms framework very much. It also doesn't talk enough about the Doctrine ORM. If the separate docs could somehow be integrated into the defintive guide, it might help. I should also point out: symfony probably has the best documentation, forums, mailing lists and books that most other frameworks. -- -- Using Opera's revolutionary e-mail client: http://www.opera.com/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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Insert custom styles in template
Hi, how can I include some custom style information in a specific template? I would like to change the size of some divs fitting to the items in them. So i think i am looking for a way to insert something like style.item{width:17px}/style into the template, where the 17px will be different for each request. I could create a helper for that, and use it in layout.php, but what information is available to this helper during the time it is used? Probably nothing from the action? Any ideas? Georg --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
symfony gives you option not to use its entire arsenal of features.That's why when 1.1 took off the project aimed to decouple every single component. You will always have to trade between flexibility and complexity. For the documentations, i find them highly organized. When I was just new using this framework, I just skimmed through the book and went straight making my first app. Learning symfony is very rewarding because I transformed from spaghetti coder into a coder who follows best practices. Of course not all will be happy with every design decision symfony made. On Sep 19, 12:09 am, bghost bggho...@gmail.com wrote: No, the crux of what I wanted to say is: Users should not spend more time to learn how some Web Framework works but they need to learn a programming language. Any framework should be only an auxiliary tool, not an entire small science. So, simplicity and speed should be paramount. WBR, Ghost3D On Sep 18, 5:30 pm, Sid Ferreira sid@gmail.com wrote: The most easy thing to understand is something that doesn't need documentation and I believe that THIS is the point that BGhost is talking about.I don't want launch a rocket in 30 days, I want my gallery ready in 12 minutes... On Fri, Sep 18, 2009 at 12:26, Thomas Rabaix thomas.rab...@gmail.comwrote: Symfony has many components, each of them are : - easy to understand - easy to configure - very well documented Now, the only thing complicated is to know how all these components play together. This is the tricky part, but symfony default configuration will be fine for many projects. You just need to go further ... if you have already create/try to implement a framework, you will see that symfony has all STABLE the pieces you need. Try to use an IDE : netbeans or eclipse, these two IDE are great to navigate across the code and understand it. On Fri, Sep 18, 2009 at 5:04 PM, bghost bggho...@gmail.com wrote: Hi Fabien, - With the introduction of the Doctrine ORM, number of parameters and configuration options are increased manifold. Therefore, the developer must first learn all about the Doctrine ORM. Is that good? Doctrine ORM already providing a fairly good possibilities and options without Symfony. - Symfony WEB forms are a bit too complicated and their relations with the rest of a Symfony application is often unclear. WBR, Ghost3D On Sep 18, 4:43 pm, Fabien Potencier fabien.potenc...@symfony- project.com wrote: You say that symfony became too complicated, which implies it was not before. Can you give us some examples of what became more complicated? That will help us improve the framework. For instance, we have less and less configuration files. Since 1.0, we removed a lot of them, and removed some parameters also. Thanks, Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 bghost wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Thomas Rabaix http://rabaix.net -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
HI folks! @Lukas , how would you be a symfony master, if you do not have enough knowledge of HTML, JS ? I guess all of us know hot to make an ajax Request, or handled a lot of plain javascript before Jquery, Yui, Scriptaculous, prototype appeared. I also think that there you do not have to be a CSS guru to be able to assembly a lot of HTML code in one page. After all, i guess an agile team would have a HTML CSS guru that would make the templates before you actually implement some real layout (i mean final layout) in your pages @bgHost, yes you might consider that the framework has become relatively hard to understand, and work with... But, personally, like it. Yes... is hard for the beginers. I have tried to start using it from Sf 0.9.4 version (around 2-3 years ago), and i have failed. That was my mistake. I hadn't the right level of knowledge of OOP. I have started to use it around 1 year and 3 months ago on sf 1.1.7, and i can say that if you compare sf 1.0.x and sf 1.2.x, then yes ... there is a lot of major changes, like the forms framework or the validators, or the tasks that maybe too many in the cmd line... but.. the framework itself is outrageous. I guess that symfony would be able to handle without any problems any various number of applications. From Hello World application up to Video Platforms (VeeVid), financial applications or even online games. I guess all that matters in the end is the approach of the software that you want to build. Symfony is not hard to understand if you read the generated code itself, or read the doc between the lines or even digg up in the Plugin sources, or snippets codes. Of course... That will take some time ... but, after you learn the very basic structure of an application, you'll see that is relativelly simple to use it, and if you use an IDE, then whole thing will be much easier. You say that you have tried Jobeet tutorial, who was written for SF 1.1. There are some things that have been modified meanwile ... Of course there is a lot of documentation that needs to be read... Reference book, forms book, maybe swift mailer doc (if you want that your app to be able to send mail), Doctrine / Propel reference ... but, in the end, You will be able to make a very scalable application, with a higly level of scalability and security. (Personally i do not think i have read more 20 % percents of the whole documentation provided). Alecs On Fri, Sep 18, 2009 at 10:59 PM, a...@speedypin.com a...@speedypin.comwrote: It may be the case that Jobeet is trying to help you learn Symfony, so it is designed to touch on all the configurations, intentionally, so one becomes aware of them. On Sep 18, 7:45 am, bghost bggho...@gmail.com wrote: I thought on all parameters: in the command line, and various configuration parameters in various configuration files. On Sep 18, 4:38 pm, Sid Ferreira sid@gmail.com wrote: You mean parameters to the command line? On Fri, Sep 18, 2009 at 11:29, bghost bggho...@gmail.com wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Sidney G B Ferreira Desenvolvedor Web -- As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 --~--~-~--~~~---~--~~ 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,
[symfony-users] Re: Insert custom styles in template
1) in your action $this-style = 'style/style'; and then in your templates echo $foo; 2) alternative css for the pages you want modified. a) from module/config/view.yml add action: stylesheets: [/alternate_index] # check the doc b) in your template add ?php use_stylesheets(/alternate_index) ? c) add it by hand in your template I would recomend just 2a or 2b, as being most appropriate for a long term maintainability. Alecs On Fri, Sep 18, 2009 at 11:16 PM, Georg Gell geor...@have2.com wrote: Hi, how can I include some custom style information in a specific template? I would like to change the size of some divs fitting to the items in them. So i think i am looking for a way to insert something like style.item{width:17px}/style into the template, where the 17px will be different for each request. I could create a helper for that, and use it in layout.php, but what information is available to this helper during the time it is used? Probably nothing from the action? Any ideas? Georg -- As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 --~--~-~--~~~---~--~~ 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: sfGuardPlugin with profile
first of all protected function processForm(sfWebRequest $request, sfForm $form){ $form-bind($request-getParameter('sf_guard_user')); if ($form-isValid()) { *$form-save();* $this-redirect('compte/liste'); } } also, you might need to change your validator schema... Alecs On Fri, Sep 18, 2009 at 9:40 PM, Leeloo frais...@gmail.com wrote: X-No-Archive: == Symfony 1.2.7 Propel == Hello, I want to use a profile with the sfGuard Plugin. I embed sfGuardUserProfileForm into my own form : ?php class RegisterForm extends sfGuardUserForm { public function configure() { // Remove all widgets we don't want to show unset($this['is_active'], $this['is_super_admin'], ... // User Profile $profileForm = new sfGuardUserProfileForm(); $this-embedForm('Profile', $profileForm); unset($profileForm['id'], $profileForm['user_id'] ); The template _form.php look like : tr th?php echo $form['Profile']['last_name']-renderLabel() ? /th td?php echo $form['Profile']['last_name'] ?/td /tr tr th?php echo $form['Profile']['first_name']-renderLabel() ?/th td?php echo $form['Profile']['first_name'] ?/td /tr tr th?php echo $form['username']-renderLabel() ? :/th td?php echo $form['username'] ?/td /tr tr th?php echo $form['password']-renderLabel() ?/th td?php echo $form['password'] ?/td /tr tr th?php echo $form['password_confirmation']-renderLabel() ?/th td?php echo $form['password_confirmation'] ?/td and the actions.class.php file : ?php class compteActions extends sfActions { public function executeNew(sfWebRequest $request) { $this-form = new RegisterForm(); } public function executeCreate(sfWebRequest $request) { $this-forward404Unless($request-isMethod('post')); $this-form = new RegisterForm(); $this-processForm($request, $this-form); $this-setTemplate('new'); } protected function processForm(sfWebRequest $request, sfForm $form) { $this-form-bind($request-getParameter('sf_guard_user')); if ($form-isValid()) { $this-redirect('compte/liste'); } } } But no database insert. The user_id field is required. user_id is define in schema.yml as : sf_guard_user_profile: _attributes: { phpName: sfGuardUserProfile } id: user_id: { type: integer, foreignTable: sf_guard_user, foreignReference: id, required: true, onDelete: cascade } first_name: varchar(20) last_name: varchar(20) How do I make the link between user en profile ? And after that how can I make the distinction beetween create en edit ? Thanks for your Help -- As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 --~--~-~--~~~---~--~~ 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] Fetching and Working with Objects-Arrays using Propel
Hi list, I am not very fund of php and have a question regarding its handling of objects. With Propel I can fetch objects form the database, which is great. If I do for example ObjectPeer::doSelect(new Criteria()) I get back an array of my objects. Now, how do I work with this array 'wisely'?? I know I can do a foreach to go through the array, which is great too. I also found out I can identify an object in the array with in_array($obj, $objects), also very great. But: How do I add a or more objects to the array, say by fetching some more from db? Can I delete one object from the array? Can I get a certain object from the array, say like $objects-get($obj)? Can I work with position of objects in the array, say like $pos = $objects-posOf($obj); $objects-get($pos);? If I fetch an object by joining another one can I still do in_array($obj, $fetched_objects) with $obj beeing an object without the joined ones (I am not sure this makes any sense, which leads me to my next question:)? How are joined objects stored in a array? As an object? Or as an array of objects, like $obj-$joinedObj-Array()? Can I than do in_array($joinedObj, $objects) and find it? That wouldnt make sense, because what really should be found is $obj-$joinedObj??? I really would appreciate it very much if some could enlighten or point me in the right direction about the object principle in php and propel? 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony has definitely become too complicated framework
Hey Ghost, I find that even if something in symfony seems trickier than it needs to be, I usually only need to implement it once and can then either simplify things in my own extensions, or package it and reuse it or what not.. After that, life is smooth sailing. I'll take that over simple every time, but gotta do things over and over every time. But, as Fabien says, if you see areas for improvement, please share and they may be addressed and help others in the future. Have a great weekend everybody. Daniel On Sep 18, 9:09 am, bghost bggho...@gmail.com wrote: No, the crux of what I wanted to say is: Users should not spend more time to learn how some Web Framework works but they need to learn a programming language. Any framework should be only an auxiliary tool, not an entire small science. So, simplicity and speed should be paramount. WBR, Ghost3D On Sep 18, 5:30 pm, Sid Ferreira sid@gmail.com wrote: The most easy thing to understand is something that doesn't need documentation and I believe that THIS is the point that BGhost is talking about.I don't want launch a rocket in 30 days, I want my gallery ready in 12 minutes... On Fri, Sep 18, 2009 at 12:26, Thomas Rabaix thomas.rab...@gmail.comwrote: Symfony has many components, each of them are : - easy to understand - easy to configure - very well documented Now, the only thing complicated is to know how all these components play together. This is the tricky part, but symfony default configuration will be fine for many projects. You just need to go further ... if you have already create/try to implement a framework, you will see that symfony has all STABLE the pieces you need. Try to use an IDE : netbeans or eclipse, these two IDE are great to navigate across the code and understand it. On Fri, Sep 18, 2009 at 5:04 PM, bghost bggho...@gmail.com wrote: Hi Fabien, - With the introduction of the Doctrine ORM, number of parameters and configuration options are increased manifold. Therefore, the developer must first learn all about the Doctrine ORM. Is that good? Doctrine ORM already providing a fairly good possibilities and options without Symfony. - Symfony WEB forms are a bit too complicated and their relations with the rest of a Symfony application is often unclear. WBR, Ghost3D On Sep 18, 4:43 pm, Fabien Potencier fabien.potenc...@symfony- project.com wrote: You say that symfony became too complicated, which implies it was not before. Can you give us some examples of what became more complicated? That will help us improve the framework. For instance, we have less and less configuration files. Since 1.0, we removed a lot of them, and removed some parameters also. Thanks, Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 bghost wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Thomas Rabaix http://rabaix.net -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ 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: Insert custom styles in template
Hi, thanks for the answer. at 1) AFAIK style should ony be in head, and I cannot put anything in head in my template, this would have to be in layout.php, and there I think I cannot access $this-style from the action, or can I? at 2 a) b) I only want to change one value dynamically for each request, so this css would have to be it's own action. I would like to avoid the overhead to create the action and add another request from the browser that slows down the page load. at 2 c) same reason like 1, I can't put anything in head from the template. Georg Alexandru-Emil Lupu schrieb: 1) in your action $this-style = 'style/style'; and then in your templates echo $foo; 2) alternative css for the pages you want modified. a) from module/config/view.yml add action: stylesheets: [/alternate_index] # check the doc b) in your template add ?php use_stylesheets(/alternate_index) ? c) add it by hand in your template I would recomend just 2a or 2b, as being most appropriate for a long term maintainability. Alecs On Fri, Sep 18, 2009 at 11:16 PM, Georg Gell geor...@have2.com mailto:geor...@have2.com wrote: Hi, how can I include some custom style information in a specific template? I would like to change the size of some divs fitting to the items in them. So i think i am looking for a way to insert something like style.item{width:17px}/style into the template, where the 17px will be different for each request. I could create a helper for that, and use it in layout.php, but what information is available to this helper during the time it is used? Probably nothing from the action? Any ideas? Georg -- As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 --~--~-~--~~~---~--~~ 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: different labels for a form
Heya install into a new sf1.2 project, configure the project to use propel ... install from svn checkout sfPropelPollsPlugin apply the patch attached. However, i would not recomend you to use it in production without a proper testing, because 2 days ago i have converted the plugin for sf 1.2, and i haven't managed to test it yet. N-joy! Alecs On Fri, Sep 18, 2009 at 8:38 PM, cosmy c.zec...@gmail.com wrote: Hi all, i have to work on a poll site where some users should create a form and present it to other people. The form is always the same, but the definitions/labels of the field should be decided by the form-maker. what's the better method to let my users change and personalize the labels of forms and tables? The data will be stored in the same culumn of the same table of the databases, but i want that several users should change the lables trhoug a panel and show the forms with their own text. Is it possible? How do you manage a thing like that? Sorry for my poor english and thanks in advance, Cosimo -- As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~--- Index: config/config.php === --- config/config.php (revision 21982) +++ config/config.php (working copy) @@ -1,32 +1,18 @@ ?php +if (sfConfig::get('app_sfPropelPollsPlugin_routes_register', true) in_array('sfPolls', sfConfig::get('sf_enabled_modules', array( +{ + $this-dispatcher-connect('routing.load_configuration', array('sfPropelPollsRouting', 'listenToRoutingLoadConfigurationEvent')); +} + + // Adding polls routes if option has not been disabled in app.yml // @see http://www.symfony-project.com/book/trunk/09-Links-and-the-Routing-System#Creating%20Rules%20Without%20routing.yml +/* if (sfConfig::get('app_sfPropelPollsPlugin_routes_register', true) in_array('sfPolls', sfConfig::get('sf_enabled_modules'))) { - $r = sfRouting::getInstance(); - + # Polls list route - $r-prependRoute('sf_propel_polls_list', - '/polls', - array('module' = 'sfPolls', 'action' = 'list'), - array('id' = '\d+')); - - # Poll detail (form) route - $r-prependRoute('sf_propel_polls_detail', - '/poll_detail/:id', - array('module' = 'sfPolls', 'action' = 'detail'), - array('id' = '\d+')); - - # Poll results route - $r-prependRoute('sf_propel_polls_results', - '/poll_results/:id', - array('module' = 'sfPolls', 'action' = 'results'), - array('id' = '\d+')); - - # Poll vote route - $r-prependRoute('sf_propel_polls_vote', - '/poll_vote', - array('module' = 'sfPolls', 'action' = 'vote'), - array('id' = '\d+')); + } +*/ \ No newline at end of file Index: config/schemaConfig.php === --- config/schemaConfig.php (revision 21982) +++ config/schemaConfig.php (working copy) @@ -11,7 +11,8 @@ ); // Check custom project values -if (is_readable($config_file = sfConfig::get('sf_config_dir').'/sfPropelPollsPlugin.yml')) +if (is_readable($config_file = sfConfig::get('sf_config_dir').'/sfPropelPollsPlugin.yml') || +is_readable($config_file = dirname(__FILE__).'/sfPropelPollsPlugin.yml')) { $user_config = sfYaml::load($config_file); if(isset($user_config['schema'])) Index: lib/model/sfPollAnswer.php === --- lib/model/sfPollAnswer.php (revision 21982) +++ lib/model/sfPollAnswer.php (working copy) @@ -17,5 +17,9 @@ $this-setVotes($this-getVotes() + 1); return parent::save(); } - + + public function __toString() + { + return $this-getName(); + } } Index: modules/sfPolls/lib/BasesfPollsActions.class.php === --- modules/sfPolls/lib/BasesfPollsActions.class.php (revision 21982) +++ modules/sfPolls/lib/BasesfPollsActions.class.php (working copy) @@ -8,30 +8,21 @@ **/ class BasesfPollsActions extends sfActions { - - /** - * Module index - * - **/ - public function executeIndex() + + public function executeIndex(sfWebRequest
[symfony-users] Re: sfGuard Question
HI! SfGuard Supports ajax. i guess you'll have to check the Sf docs for ajax for more details ... Alecs On Fri, Sep 18, 2009 at 8:46 PM, Manish Ranade ranad...@hotmail.com wrote: Hi, I am using sfGuardPlugin for building an authentication system. I am trying to make it work when the login form is submitted through AJAX. Are there any examples to do this? Thanks. -- Bing brings you health info from trusted sources. Try it now!http://www.bing.com/search?q=pet+allergyform=MHEINApubl=WLHMTAGcrea=TXT_MHEINA_Health_Health_PetAllergy_1x1 -- As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
On Fri, 18 Sep 2009, Lukas Kahwe Smith wrote: so what does it all mean? teach your symfony experts some more html/ css/js, teach your html/css/js guru some symfony .. or better yet .. facilitate paired programming .. and you should be off producing high quality more maintainable sites in less time .. but the old workflow of clear work separation isnt going to cut it anymore. then again, you can still keep the spirit of 1.0 in 1.2 i guess .. Ive found that working in pairs with an frontend coder a remarkably easy and rewarding way to build a web site. Your frontend guy only need to learn enough to figure out wht templates map to which URLs and then they become super productive when paired with a developer. -- --~--~-~--~~~---~--~~ 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: Fetching and Working with Objects-Arrays using Propel
On Fri, 18 Sep 2009, Kropp, Henning wrote: How do I add a or more objects to the array, say by fetching some more from db? Can I delete one object from the array? Can I get a certain object from the array, say like $objects-get($obj)? Can I work with position of objects in the array, say like $pos = $objects-posOf($obj); $objects-get($pos);? If I fetch an object by joining another one can I still do in_array($obj, $fetched_objects) with $obj beeing an object without the joined ones (I am not sure this makes any sense, which leads me to my next question:)? How are joined objects stored in a array? As an object? Or as an array of objects, like $obj-$joinedObj-Array()? Can I than do in_array($joinedObj, $objects) and find it? That wouldnt make sense, because what really should be found is $obj-$joinedObj??? They are arrays, so the usual array functions can be used: http://us2.php.net/manual/en/book.array.php -- --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
sfForm is the way to go, doing form the old fashion way (coding form in template) is terrible. It is not harder, it's just different from old ways of doing things. It only seems hard because you're used to doing form the old ways. If you have strong OOP background and design patterns, you'd love sfForm. About documentation, I agree it needs improving but currently it is still pretty good. Having said that, I could always find answers from Googling. If you gave up from just learning Jobeet, then that's a shame. It's like trying to learn J2EE and gave up after half way reading a book called Learn J2EE in 30 days. On Sat, Sep 19, 2009 at 7:27 AM, bghost bggho...@gmail.com wrote: I think that the attempt of putting the entire WEB form within the class only unnecessarily complicate such a simple thing such is form handling. That's just forcing WEB developers to learn how to make simple things on the complicated way. WBR, Ghost3D On Sep 18, 7:26 pm, Eno symb...@gmail.com wrote: On Fri, 18 Sep 2009, bghost wrote: - Symfony WEB forms are a bit too complicated and their relations with the rest of a Symfony application is often unclear. This is a valid point: the definitive guide does not talk about the new forms framework very much. It also doesn't talk enough about the Doctrine ORM. If the separate docs could somehow be integrated into the defintive guide, it might help. I should also point out: symfony probably has the best documentation, forums, mailing lists and books that most other frameworks. -- -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
I'd like to know that framework which you think match your ideal On Sat, Sep 19, 2009 at 4:09 AM, bghost bggho...@gmail.com wrote: No, the crux of what I wanted to say is: Users should not spend more time to learn how some Web Framework works but they need to learn a programming language. Any framework should be only an auxiliary tool, not an entire small science. So, simplicity and speed should be paramount. WBR, Ghost3D On Sep 18, 5:30 pm, Sid Ferreira sid@gmail.com wrote: The most easy thing to understand is something that doesn't need documentation and I believe that THIS is the point that BGhost is talking about.I don't want launch a rocket in 30 days, I want my gallery ready in 12 minutes... On Fri, Sep 18, 2009 at 12:26, Thomas Rabaix thomas.rab...@gmail.comwrote: Symfony has many components, each of them are : - easy to understand - easy to configure - very well documented Now, the only thing complicated is to know how all these components play together. This is the tricky part, but symfony default configuration will be fine for many projects. You just need to go further ... if you have already create/try to implement a framework, you will see that symfony has all STABLE the pieces you need. Try to use an IDE : netbeans or eclipse, these two IDE are great to navigate across the code and understand it. On Fri, Sep 18, 2009 at 5:04 PM, bghost bggho...@gmail.com wrote: Hi Fabien, - With the introduction of the Doctrine ORM, number of parameters and configuration options are increased manifold. Therefore, the developer must first learn all about the Doctrine ORM. Is that good? Doctrine ORM already providing a fairly good possibilities and options without Symfony. - Symfony WEB forms are a bit too complicated and their relations with the rest of a Symfony application is often unclear. WBR, Ghost3D On Sep 18, 4:43 pm, Fabien Potencier fabien.potenc...@symfony- project.com wrote: You say that symfony became too complicated, which implies it was not before. Can you give us some examples of what became more complicated? That will help us improve the framework. For instance, we have less and less configuration files. Since 1.0, we removed a lot of them, and removed some parameters also. Thanks, Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 bghost wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Thomas Rabaix http://rabaix.net -- Sidney G B Ferreira Desenvolvedor Web -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~-~--~~~---~--~~ 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: Insert custom styles in template
Maybe you could use a filter or the preExecute method of the actions class? Without knowing at which point the data becomes available thats the best that I can suggest. Perhaps you could create a slot in the layout within the head portion of the template. If it really truly is only that one value, you could set a slot to be just the width integer in the style definition. Then, use the has_slot method to implement a default value. Once you do that you can call the setSlot method in your action to populate the width value. Its probably not the most maintainable solution either, but I don't know that there is one. The only other thing I can think of is to use ajax calls to update the object's contents and size. HTH, Casey On Sep 18, 2:27 pm, Georg Gell geor...@have2.com wrote: Hi, thanks for the answer. at 1) AFAIK style should ony be in head, and I cannot put anything in head in my template, this would have to be in layout.php, and there I think I cannot access $this-style from the action, or can I? at 2 a) b) I only want to change one value dynamically for each request, so this css would have to be it's own action. I would like to avoid the overhead to create the action and add another request from the browser that slows down the page load. at 2 c) same reason like 1, I can't put anything in head from the template. Georg Alexandru-Emil Lupu schrieb: 1) in your action $this-style = 'style/style'; and then in your templates echo $foo; 2) alternative css for the pages you want modified. a) from module/config/view.yml add action: stylesheets: [/alternate_index] # check the doc b) in your template add ?php use_stylesheets(/alternate_index) ? c) add it by hand in your template I would recomend just 2a or 2b, as being most appropriate for a long term maintainability. Alecs On Fri, Sep 18, 2009 at 11:16 PM, Georg Gell geor...@have2.com mailto:geor...@have2.com wrote: Hi, how can I include some custom style information in a specific template? I would like to change the size of some divs fitting to the items in them. So i think i am looking for a way to insert something like style.item{width:17px}/style into the template, where the 17px will be different for each request. I could create a helper for that, and use it in layout.php, but what information is available to this helper during the time it is used? Probably nothing from the action? Any ideas? Georg -- As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter:http://twitter.com/alecslupu I am on linkedIn:http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
Sf 1.0 to Sf1.2 is quite different. It took me sometime to switch. Mainly the concept of sfForm. But I didn't even need the Jobeet tutorial. Actually I never done the Jobeet at all (not even sf 1.0 jobeet), I only did the 'my first symfony' tutorial when I started learning Symfony. The rest are just from Googling, reading the documentation, and looking at the source code. On Sat, Sep 19, 2009 at 2:29 AM, bghost bggho...@gmail.com wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~-~--~~~---~--~~ 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: Insert custom styles in template
Again thanks for the answer. It seems to me that I have three possibilities: 1.) I can use $this-getContext()-getRequest()-setAttribute('style', 'style.item{width='.$width.'px;}/style'); and use ?php echo $sf_request-getAttribute('style') ? in layout.php 2.) I can use a slot 3.) I can define another layout file in view.yml for the module (at least I think). Which of these options is best performance wise, how do they affect caching? Georg Casey schrieb: Maybe you could use a filter or the preExecute method of the actions class? Without knowing at which point the data becomes available thats the best that I can suggest. Perhaps you could create a slot in the layout within the head portion of the template. If it really truly is only that one value, you could set a slot to be just the width integer in the style definition. Then, use the has_slot method to implement a default value. Once you do that you can call the setSlot method in your action to populate the width value. Its probably not the most maintainable solution either, but I don't know that there is one. The only other thing I can think of is to use ajax calls to update the object's contents and size. HTH, Casey On Sep 18, 2:27 pm, Georg Gell geor...@have2.com wrote: Hi, thanks for the answer. at 1) AFAIK style should ony be in head, and I cannot put anything in head in my template, this would have to be in layout.php, and there I think I cannot access $this-style from the action, or can I? at 2 a) b) I only want to change one value dynamically for each request, so this css would have to be it's own action. I would like to avoid the overhead to create the action and add another request from the browser that slows down the page load. at 2 c) same reason like 1, I can't put anything in head from the template. Georg Alexandru-Emil Lupu schrieb: 1) in your action $this-style = 'style/style'; and then in your templates echo $foo; 2) alternative css for the pages you want modified. a) from module/config/view.yml add action: stylesheets: [/alternate_index] # check the doc b) in your template add ?php use_stylesheets(/alternate_index) ? c) add it by hand in your template I would recomend just 2a or 2b, as being most appropriate for a long term maintainability. Alecs On Fri, Sep 18, 2009 at 11:16 PM, Georg Gell geor...@have2.com mailto:geor...@have2.com wrote: Hi, how can I include some custom style information in a specific template? I would like to change the size of some divs fitting to the items in them. So i think i am looking for a way to insert something like style.item{width:17px}/style into the template, where the 17px will be different for each request. I could create a helper for that, and use it in layout.php, but what information is available to this helper during the time it is used? Probably nothing from the action? Any ideas? Georg -- As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter:http://twitter.com/alecslupu I am on linkedIn:http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 --~--~-~--~~~---~--~~ 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: Insert custom styles in template
Yes, you can create a separate layout for that page where you could implement some sort of mechanism to change the size of the container. That would probably be the best solution from a performance standpoint, and it can be set in the view.yml. But that still leaves the question of how to update the dynamic containers' style. Also, I believe slots are cached (don't quote me on that though), and I would stay away from the attribute method. Say you need to change the name of the param for some reason, it would be a maintenance nightmare I was thinking, you could also create temporary stylesheets and save them to create your own little css file cache, something that have the width value in the name so you could reuse them. Then you could use the include_stylesheet helper to add the autogenerated css file. That way you can isolate all of this within a single component which will keep your code cleaner. You could test to see if the css file had already been created and use it, otherwise create a new stylesheet with the directives in it, write it then include it. Then if things change down the road, you just update the component, say if you needed to also manage height or something. Casey On Sep 18, 4:19 pm, Georg Gell geor...@have2.com wrote: Again thanks for the answer. It seems to me that I have three possibilities: 1.) I can use $this-getContext()-getRequest()-setAttribute('style', 'style.item{width='.$width.'px;}/style'); and use ?php echo $sf_request-getAttribute('style') ? in layout.php 2.) I can use a slot 3.) I can define another layout file in view.yml for the module (at least I think). Which of these options is best performance wise, how do they affect caching? Georg Casey schrieb: Maybe you could use a filter or the preExecute method of the actions class? Without knowing at which point the data becomes available thats the best that I can suggest. Perhaps you could create a slot in the layout within the head portion of the template. If it really truly is only that one value, you could set a slot to be just the width integer in the style definition. Then, use the has_slot method to implement a default value. Once you do that you can call the setSlot method in your action to populate the width value. Its probably not the most maintainable solution either, but I don't know that there is one. The only other thing I can think of is to use ajax calls to update the object's contents and size. HTH, Casey On Sep 18, 2:27 pm, Georg Gell geor...@have2.com wrote: Hi, thanks for the answer. at 1) AFAIK style should ony be in head, and I cannot put anything in head in my template, this would have to be in layout.php, and there I think I cannot access $this-style from the action, or can I? at 2 a) b) I only want to change one value dynamically for each request, so this css would have to be it's own action. I would like to avoid the overhead to create the action and add another request from the browser that slows down the page load. at 2 c) same reason like 1, I can't put anything in head from the template. Georg Alexandru-Emil Lupu schrieb: 1) in your action $this-style = 'style/style'; and then in your templates echo $foo; 2) alternative css for the pages you want modified. a) from module/config/view.yml add action: stylesheets: [/alternate_index] # check the doc b) in your template add ?php use_stylesheets(/alternate_index) ? c) add it by hand in your template I would recomend just 2a or 2b, as being most appropriate for a long term maintainability. Alecs On Fri, Sep 18, 2009 at 11:16 PM, Georg Gell geor...@have2.com mailto:geor...@have2.com wrote: Hi, how can I include some custom style information in a specific template? I would like to change the size of some divs fitting to the items in them. So i think i am looking for a way to insert something like style.item{width:17px}/style into the template, where the 17px will be different for each request. I could create a helper for that, and use it in layout.php, but what information is available to this helper during the time it is used? Probably nothing from the action? Any ideas? Georg -- As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter:http://twitter.com/alecslupu I am on linkedIn:http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 --~--~-~--~~~---~--~~ 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
[symfony-users] an intermitent bug, different for each browser and user
The following code always works for me. I can go to the front page of the site, and I can log in and I never get an error. For one of my clients, the site works great in FireFox, but throws an error in Google Chrome. For another of my clients, the following code dies with a fatal error all the time. The error is that the method getId() is being called on either a non-existent object, or an object without that method. In other words, this line throws a fatal error: $sf_user-getGuardUser()-getId() This code appears in layout.php. Here is the code: ?php if(isset($sf_user)): ? ?php if($sf_user-isAuthenticated()): ? ?php $criteriaToFindProfile = new Criteria(); $criteriaToFindProfile-add(sfGuardUserProfilePeer::USER_ID, $sf_user- getGuardUser()-getId()); $thisUsersProfile = sfGuardUserProfilePeer::doSelectOne($criteriaToFindProfile); ? ?php if (@ is_object($thisUsersProfile)): $username = $thisUsersProfile-getFirstName(). ; $username .= $thisUsersProfile- getLastName(); if (!$username) $username = $thisUsersProfile- getsfGuardUser()-getUsername(); endif; ? ?php if (@ is_object($thisUsersProfile)): ?pHello, a id=userid href=?php echo url_for('content/profile?id='. $thisUsersProfile-getId()) ??php echo $username ?!/a/p?php endif ? a href=?php echo url_for(sfGuardAuth/signout) ?img src=? php echo image_path('logout.png') ? alt=LOGOUT //a ?php endif; ? ?php endif; ? Can anyone think why this would behave differently on different people's browsers? I'm having trouble fixing this bug, because I can not recreate it on my own machine. What is really bizarre is that my clients browser somehow got past this line: ?php if($sf_user-isAuthenticated()): ? Since the page always died for them with a fatal error, they had no way to log in. --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. I am not sure if that is true with every framework. CodeIgniter is lighter than Symfony. You could argue that maybe it does less, but it also seems to take less to get going. Of the PHP developers I know, they seem split between CodeIgniter and Symfony. Symfony offers OOP and a careful adherence to many good design patterns, but CodeIgniter offers simplicity. Personally, I am a big fan of Symfony, but I've got some friends who make many good points in favor of CodeIgniter. And the form system of Symfony offers a lot of complexity, much of it seemingly unnecessary. On Sep 18, 10:24 am, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
On Sep 18, 12:09 pm, bghost bggho...@gmail.com wrote: No, the crux of what I wanted to say is: Users should not spend more time to learn how some Web Framework works but they need to learn a programming language. Any framework should be only an auxiliary tool, not an entire small science. So, simplicity and speed should be paramount. That is too wide a statement. The discipline and heaviness of a framework should match the goals. If you are trying to manage a huge corporate site, some managers would still argue for Struts. If you have a big site but want a more agile framework, some forward thinking corporate managers might opt for Grails. If you are in the world of startups, you will want something agile, but something that still imposes enough structure as to allow many programmers to work together - Ruby On Rails and Drupal and Symfony fall into this category. If the project is very small scale, and you are the only programmer, then the lightest framework you can find should be all you need. And if you are simply putting up a weblog, then just use WordPress. A bit off-topic, but I notice in New York City there are almost no jobs for generic PHP programmers anymore. The jobs all tend to specify a framework - Drupal and Symfony are the one's I see mentioned most often (though being able to customize WordPress gets more mentions than all the other frameworks put together - though WordPress projects tend to be very small scale). On Sep 18, 5:30 pm, Sid Ferreira sid@gmail.com wrote: The most easy thing to understand is something that doesn't need documentation and I believe that THIS is the point that BGhost is talking about.I don't want launch a rocket in 30 days, I want my gallery ready in 12 minutes... On Fri, Sep 18, 2009 at 12:26, Thomas Rabaix thomas.rab...@gmail.comwrote: Symfony has many components, each of them are : - easy to understand - easy to configure - very well documented Now, the only thing complicated is to know how all these components play together. This is the tricky part, but symfony default configuration will be fine for many projects. You just need to go further ... if you have already create/try to implement a framework, you will see that symfony has all STABLE the pieces you need. Try to use an IDE : netbeans or eclipse, these two IDE are great to navigate across the code and understand it. On Fri, Sep 18, 2009 at 5:04 PM, bghost bggho...@gmail.com wrote: Hi Fabien, - With the introduction of the Doctrine ORM, number of parameters and configuration options are increased manifold. Therefore, the developer must first learn all about the Doctrine ORM. Is that good? Doctrine ORM already providing a fairly good possibilities and options without Symfony. - Symfony WEB forms are a bit too complicated and their relations with the rest of a Symfony application is often unclear. WBR, Ghost3D On Sep 18, 4:43 pm, Fabien Potencier fabien.potenc...@symfony- project.com wrote: You say that symfony became too complicated, which implies it was not before. Can you give us some examples of what became more complicated? That will help us improve the framework. For instance, we have less and less configuration files. Since 1.0, we removed a lot of them, and removed some parameters also. Thanks, Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 bghost wrote: First, I would like to say that Symfony framework is not too bad, because I follow its development from the first version. But I think it became too complicated because it is evident exaggeration with the introduction of countless parameters and configuration files in order to automate all possible tasks. This entails that the programmer spends more time dealing with the Symfony framework than with the real problem. P.S. I did nothing special but just followed the Jobeet tutorial. WBR, Ghost3D On Sep 18, 4:24 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. But for those of us who have invested our time in Symfony, we find great leverage in using Symfony. So what is the relatively simple application you're trying to build? On Sat, Sep 19, 2009 at 1:58 AM, bghost bggho...@gmail.com wrote: It is necessary to invest so much effort to do a relatively simple application. Productivity and profitability of such work is very questionable. So, Symfony - Goodbye -- Blue Horn Ltd - System
[symfony-users] Re: Symfony has definitely become too complicated framework
On Sep 18, 3:36 pm, Lukas Kahwe Smith m...@pooteeweet.org wrote: On 18.09.2009, at 21:27, bghost wrote: I think that the attempt of putting the entire WEB form within the class only unnecessarily complicate such a simple thing such is form handling. That's just forcing WEB developers to learn how to make simple things on the complicated way. i think this is a valid criticism. there is a clear shift away from having just some html/css/js guru do the templates back in symfony 1.0 towards requiring a symfony expert to also handle the templates, but that person lacks the html/css/js guru knowhow. the pay off is however that a symfony expert can now do a lot more if he just sits down with the html/css/js guru to create the required widgets in pair programming. the quality of the site should also increase since reuse is done more on the widget side of things but more importantly you start to bring everything data related together in the models, so you have a single definitive source. so what does it all mean? teach your symfony experts some more html/ css/js, teach your html/css/js guru some symfony .. or better yet .. facilitate paired programming .. and you should be off producing high quality more maintainable sites in less time .. but the old workflow of clear work separation isnt going to cut it anymore. then again, you can still keep the spirit of 1.0 in 1.2 i guess .. You can still get the 1.0 spirit, though paired programming is not the way to do it. And yes, for some projects, it is very important that the designers have access to all of the HTML, including that in the forms. Some design lead projects suffer badly from the default forms setup in Symfony 1.2. What's needed is a plugin that can auto-generate the CRUD forms in nearly pure HTML, with PHP commands only handling the values that appear in the inputs. That way, depending on the project, you could either work with the default forms generated by Symfony, or switch over to a system that is much more open for designers. If I get some time later this year, I hope to work on such a plugin. --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
On Fri, 18 Sep 2009, Jake Barnes wrote: Personally, I am a big fan of Symfony, but I've got some friends who make many good points in favor of CodeIgniter. And the form system of Symfony offers a lot of complexity, much of it seemingly unnecessary. I would argue that symfony enables you to build large scaleable sites but still gives you a lot of flexibility. Im not sure if CodeIgniter can handle really large sites. -- --~--~-~--~~~---~--~~ 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: Symfony has definitely become too complicated framework
On 19.09.2009, at 06:18, Jake Barnes lkrub...@geocities.com wrote: If you're just learning Symfony, then yes of course you'll find it too much effort. This is true with any other framework/technology. I am not sure if that is true with every framework. CodeIgniter is lighter than Symfony. You could argue that maybe it does less, but it also seems to take less to get going. Of the PHP developers I know, they seem split between CodeIgniter and Symfony. Symfony offers OOP and a careful adherence to many good design patterns, but CodeIgniter offers simplicity. Personally, I am a big fan of Symfony, but I've got some friends who make many good points in favor of CodeIgniter. And the form system of Symfony offers a lot of complexity, much of it seemingly unnecessary. i think the issue you are describing is more that people are overwhelmed by the possibilities. from my reading of symfony2 we will see many different frameworks that will share some key components. as a matter of fact i am working on one already. due to this common base they will probably allow for migration of knowledge and code at some level. regards Lukas --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---