[symfony-users] Re: Dependency injection and sfEventDispatcher

2009-09-18 Thread noel guilbert
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

[symfony-users] Re: Dependency Injection and Imports

2009-09-18 Thread Fabien Potencier
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

[symfony-users] Re: Is sfWeatherPlugin Unreliable?

2009-09-18 Thread Casey
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

[symfony-users] Re: sfDoctrineGuardPlugin schema options: collate charset

2009-09-18 Thread nord_ua
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

[symfony-users] Configure a virtual host to access multiple symfony projects

2009-09-18 Thread Davide Borsatto
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

[symfony-users] Re: Configure a virtual host to access multiple symfony projects

2009-09-18 Thread noel guilbert
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

[symfony-users] Re: Is sfWeatherPlugin Unreliable?

2009-09-18 Thread Avani
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

[symfony-users] Lime testing problem

2009-09-18 Thread ereallstaff
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

[symfony-users] Re: make get in doctrine model class

2009-09-18 Thread smellycat37
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' ?

[symfony-users] Re: Lime testing problem

2009-09-18 Thread Gábor Fási
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 :

[symfony-users] Re: Configure a virtual host to access multiple symfony projects

2009-09-18 Thread Davide Borsatto
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,

[symfony-users] Re: publication project on the server - where place files ?

2009-09-18 Thread Alexandru-Emil Lupu
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

[symfony-users] Re: publication project on the server - where place files ?

2009-09-18 Thread mini_alexander
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

[symfony-users] Re: publication project on the server - where place files ?

2009-09-18 Thread mini_alexander
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

[symfony-users] Application or module

2009-09-18 Thread mbernasocchi
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?

[symfony-users] Re: Application or module

2009-09-18 Thread Gareth McCumskey
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

[symfony-users] Re: Lime testing problem

2009-09-18 Thread ereallstaff
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

[symfony-users] Re: Application or module

2009-09-18 Thread Sid Bachtiar
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

[symfony-users] Problem with sfPropelPager.class.php

2009-09-18 Thread HAUSa
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);

[symfony-users] Re: Problem with sfPropelPager.class.php

2009-09-18 Thread Sid Bachtiar
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

[symfony-users] Routing doesn't take place

2009-09-18 Thread HAUSa
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

[symfony-users] Re: Problem with sfPropelPager.class.php

2009-09-18 Thread HAUSa
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:

[symfony-users] Re: Routing doesn't take place

2009-09-18 Thread Sid Bachtiar
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,

[symfony-users] Re: Routing doesn't take place

2009-09-18 Thread HAUSa
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!

[symfony-users] Re: PHP mail function not working

2009-09-18 Thread Patrick Cummins
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 =

[symfony-users] Re: PHP mail function not working

2009-09-18 Thread david
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..

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Sid Ferreira
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 --

[symfony-users] Re: PHP mail function not working

2009-09-18 Thread Patrick Cummins
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,

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Sid Bachtiar
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

[symfony-users] Symfony has definitely become too complicated framework

2009-09-18 Thread bghost
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] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Andrei Dziahel
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread bghost
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Sid Ferreira
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Fabien Potencier
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread bghost
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:

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Sid Ferreira
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:

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Sid Ferreira
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:

[symfony-users] url's in backend application

2009-09-18 Thread mini_alexander
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread bghost
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-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Jose R. Prieto
-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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Sid Ferreira
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread david
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread bghost
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,

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread bghost
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Sid Ferreira
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread david
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 -

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Sid Ferreira
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Sid Ferreira
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Sid Ferreira
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

[symfony-users] Re: url's in backend application

2009-09-18 Thread Sid Ferreira
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

[symfony-users] Re: url's in backend application

2009-09-18 Thread mini_alexander
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread david
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

[symfony-users] Re: url's in backend application

2009-09-18 Thread Sid Ferreira
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'

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread bghost
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

[symfony-users] Re: url's in backend application

2009-09-18 Thread mini_alexander
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

[symfony-users] Re: url's in backend application

2009-09-18 Thread Gábor Fási
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:

[symfony-users] Re: url's in backend application

2009-09-18 Thread Sid Ferreira
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 ?

[symfony-users] Re: Configure a virtual host to access multiple symfony projects

2009-09-18 Thread Eno
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

[symfony-users] Re: url's in backend application

2009-09-18 Thread mini_alexander
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

[symfony-users] Re: Routing doesn't take place

2009-09-18 Thread Eno
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

[symfony-users] Re: url's in backend application

2009-09-18 Thread Sid Ferreira
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Eno
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Eno
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

[symfony-users] Re: url's in backend application

2009-09-18 Thread Eno
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

[symfony-users] Re: PHP mail function not working

2009-09-18 Thread Eno
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

[symfony-users] Re: url's in backend application

2009-09-18 Thread Sid Ferreira
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

[symfony-users] Re: PHP mail function not working

2009-09-18 Thread Eno
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

[symfony-users] different labels for a form

2009-09-18 Thread cosmy
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

[symfony-users] Re: Performance optimization!HELP!!

2009-09-18 Thread Eno
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

[symfony-users] sfGuard Question

2009-09-18 Thread Manish Ranade
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Casey
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

[symfony-users] sfGuardPlugin with profile

2009-09-18 Thread Leeloo
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Sid Ferreira
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Lukas Kahwe Smith
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread a...@speedypin.com
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread david
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

[symfony-users] Insert custom styles in template

2009-09-18 Thread Georg Gell
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Ken Marfilla
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Alexandru-Emil Lupu
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

[symfony-users] Re: Insert custom styles in template

2009-09-18 Thread Alexandru-Emil Lupu
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) ?

[symfony-users] Re: sfGuardPlugin with profile

2009-09-18 Thread Alexandru-Emil Lupu
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

[symfony-users] Fetching and Working with Objects-Arrays using Propel

2009-09-18 Thread Kropp, Henning
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'??

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Richtermeister
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

[symfony-users] Re: Insert custom styles in template

2009-09-18 Thread Georg Gell
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

[symfony-users] Re: different labels for a form

2009-09-18 Thread Alexandru-Emil Lupu
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

[symfony-users] Re: sfGuard Question

2009-09-18 Thread Alexandru-Emil Lupu
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Eno
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

[symfony-users] Re: Fetching and Working with Objects-Arrays using Propel

2009-09-18 Thread Eno
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,

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Sid Bachtiar
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Sid Bachtiar
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.

[symfony-users] Re: Insert custom styles in template

2009-09-18 Thread Casey
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Sid Bachtiar
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

[symfony-users] Re: Insert custom styles in template

2009-09-18 Thread Georg Gell
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

[symfony-users] Re: Insert custom styles in template

2009-09-18 Thread Casey
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

[symfony-users] an intermitent bug, different for each browser and user

2009-09-18 Thread Jake Barnes
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Jake Barnes
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Jake Barnes
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.

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Jake Barnes
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Eno
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

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Lukas Kahwe Smith
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

  1   2   >