[symfony-devs] Re: getRouter() instead of get('router')

2011-10-25 Thread rihad
On Oct 24, 4:38 pm, Lukas Kahwe Smith wrote: > its there to ease development by providing methods for common tasks. its not > about giving you auto completed access for every possible service, Router is not some possible service, it's a generic term to describe a feature of core Symfony functio

[symfony-devs] Re: getRouter() instead of get('router')

2011-10-24 Thread rihad
Yeah, but I thought Router was a core Symfony (or web framework) concept? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to

[symfony-devs] getRouter() instead of get('router')

2011-10-23 Thread rihad
Why the dynamic $url = $this->get('router')->generate(...) Why not getRouter()? A typo can thus be caught at compile time, not at runtime! This concerns all entities in the container. I can see that getRequest() & getDoctrine() do exist. -- If you want to report a vulnerability issue on symfon

[symfony-devs] Leading underscores

2011-10-23 Thread rihad
Just started learning 2.0 after a long break from 1.0. Any thoughts of getting rid of leading underscores? They just look horrible: _welcome: pattern: / defaults: { _controller: AcmeDemoBundle:Welcome:index } and anywhere else in the code. It's a really awkward way of doing

[symfony-devs] Re: Concerns about new form system decorators

2007-12-31 Thread rihad
The tutorial shows that the new form subframework is absolutely AMAZING! Keep up the good work, Fabien! Now it competes quite well with PEAR's HTML_QuickForm/DB_Table. This is what should have been in Symfony long ago and what would have saved us from frustration for the past 8 months of trying to

[symfony-devs] Re: attributes I can use for all my actions

2007-12-22 Thread rihad
I'm using setAttribute/getAttribute in the MyUser class extending from sfBasicSecurityUser (and MyUser is defined in project config/ factories.yml. Think of setAttribute('foo') as a global variable that persists (thanks to sessions). all user: class: MyUser --~--~-~--~~

[symfony-devs] Re: table widget

2007-12-18 Thread rihad
I really think such common functionality as sortable data grids with paging should be supported by a web framework, and not by a 3rd party extension. Otherwise many people will have to write the same thing from scratch over and over again. --~--~-~--~~~---~--~~ You

[symfony-devs] Re: Symfony and bad coding habits

2007-12-07 Thread rihad
You get what you pay for, man! People aren't paid for what they do for Symfony, they're only doing it out of free will, thus you can only guess how much experience they have. Although I do agree with you that many plugins are of low quality or yet immature. Take it or leave it. And we shouldn't fo

[symfony-devs] Re: Widgets!

2007-11-22 Thread rihad
On Nov 22, 11:29 am, Fabien POTENCIER <[EMAIL PROTECTED] project.com> wrote: > validate/*.yml are not needed anymore because all the validation stuff > is managed by the validator schema of the form class. > This reminds me of how e.g. HTML_QuickForm/DB_Table duet work, which automate the dirty jo

[symfony-devs] Re: constructor vs. initialize?

2007-10-30 Thread rihad
It follows that __construct() should call initialize() itself because it's no good to use a logically uninitialized object. $obj = new sfAnything($foo, $bar); instead of $obj = new sfAnything; $obj->initialize($foo, $bar); // might be forgotten --~--~-~--~~~---~--~

[symfony-devs] Re: About the new validation system

2007-10-07 Thread rihad
It would be great if, for instance, form select boxes could be validated based on what values can be submitted by them (a la PEAR DB_Table/HTML_QuickForm). Now this requires handcrafting the code. --~--~-~--~~~---~--~~ You received this message because you are sub

[symfony-devs] Re: Should symfony 1.1 be called symfony 2.0?

2007-09-27 Thread rihad
On Sep 26, 5:03 pm, "Francois Zaninotto" <[EMAIL PROTECTED] project.com> wrote: > Hi list, > > When I look at the trunk version of symfony, I see a lot of new and exciting > stuff, among which: > > - New CLI task system > - New plugin system > - New mixin/event system > - Improved caching system >

[symfony-devs] Re: Modifying the request parameters during an action results in notice: undefined index

2007-09-24 Thread rihad
On Sep 22, 11:58 pm, Bernhard Schussek <[EMAIL PROTECTED]> wrote: > A third option would be to check whether the uri has been modified > during action execution and if yes, throw a ConfigurationException > informing the user to turn off the cache when modifying the request > parameters (as the pa

[symfony-devs] Re: About validation system in sf1.1?

2007-09-06 Thread rihad
The YAML validation is currently broken: see ticket #1617 which is scheduled to be fixed in 1.0.8. It seems Symfony 1.1 will have a whole new validation sub-framework , it's about time. Having to validate *any* field manually is a perfect argument for the inclusion of validation inside the core we

[symfony-devs] Re: sfSQLiteCache cannot take "cacheDir" as an option :(

2007-08-16 Thread rihad
> > This, and all other configuration bugs, are embarrassing! Why not > > first take Symfony out of its pre-alpha stage, and _then_ start > > advertising its support of numerous unrivaled features!! :-((( On Aug 16, 6:00 pm, Kiril Angov <[EMAIL PROTECTED]> wrote: > Did you check if there is a con

[symfony-devs] sfSQLiteCache cannot take "cacheDir" as an option :(

2007-08-15 Thread rihad
%SF_DATA_DIR%/config/factories.yml has default: view_cache: class: sfFileCache param: automaticCleaningFactor: 0 cacheDir:%SF_TEMPLATE_CACHE_DIR% my config/factories.yml has all: view_cache: class: sfSQLiteCache param: automaticCleaningFactor:

[symfony-devs] Re: sfToolkit::arrayDeepMerge() does not allow overriding arrays

2007-08-14 Thread rihad
On Aug 14, 5:27 pm, Martin Kreidenweis <[EMAIL PROTECTED]> wrote: > Hi, > > rihad wrote: > >http://trac.symfony-project.com/trac/ticket/2091 > > > I've attached a small "works-for-me" type patch to arrayDeepMerge > > implementing the chan

[symfony-devs] Re: sfToolkit::arrayDeepMerge() does not allow overriding arrays

2007-08-14 Thread rihad
http://trac.symfony-project.com/trac/ticket/2091 I've attached a small "works-for-me" type patch to arrayDeepMerge implementing the change. given array(0 => 'Partial', 1 => 'Cache', 2 => 'Form'], you can: - use [-*, Form] to result in array(0 => 'Form') - use [-Cache] to result in array(0 => 'Pa

[symfony-devs] Re: sfToolkit::arrayDeepMerge() does not allow overriding arrays

2007-08-13 Thread rihad
On Aug 14, 12:33 am, Martin Kreidenweis <[EMAIL PROTECTED]> wrote: > Maybe some "magic values" like "-*" that can remove array items would be > a better idea. It is already done for HTML > assets:http://www.symfony-project.com/book/trunk/07-Inside-the-View-Layer#Fi... Great! I had a flashback a

[symfony-devs] Re: sfToolkit::arrayDeepMerge() does not allow overriding arrays

2007-08-13 Thread rihad
On Aug 14, 12:33 am, Martin Kreidenweis <[EMAIL PROTECTED]> wrote: > > Maybe some "magic values" like "-*" that can remove array items would be > a better idea. It is already done for HTML > assets:http://www.symfony-project.com/book/trunk/07-Inside-the-View-Layer#Fi... Great! I had a flashback

[symfony-devs] Re: sfToolkit::arrayDeepMerge() does not allow overriding arrays

2007-08-13 Thread rihad
> foreach > (array_unique(array_merge(array_keys($args[0]),array_keys($args[1]))) as $key) Sorry: array_keys() is the problem code, it should be array_merge($args[0],$args[1]) because it operates on keys, not values. --~--~-~--~~~---~--~~ You received this m

[symfony-devs] Re: sfToolkit::arrayDeepMerge() does not allow overriding arrays

2007-08-13 Thread rihad
On Aug 13, 4:49 pm, Martin Kreidenweis <[EMAIL PROTECTED]> wrote: > > When you ask > > array_merge() to merge these two arrays it overwrites original lhs > > array elements with same keys of rhs array. > That's not true. You're absolutely right, excuse this wording mistake and simply pretend I

[symfony-devs] Re: sfToolkit::arrayDeepMerge() does not allow overriding arrays

2007-08-13 Thread rihad
On Aug 13, 1:42 pm, Alexander Deruwe <[EMAIL PROTECTED]> wrote: > On 13 Aug 2007, at 08:20, rihad wrote: > > > There's a bug in the way Symfony parses YAML configuration files > > containing arrays as values. The problem is described in this ticket: > >http://t

[symfony-devs] sfToolkit::arrayDeepMerge() does not allow overriding arrays

2007-08-12 Thread rihad
There's a bug in the way Symfony parses YAML configuration files containing arrays as values. The problem is described in this ticket: http://trac.symfony-project.com/trac/ticket/2091 In short: the array_merge PHP primitive that lies in the heart of "configuration cascade" won't let you override a

[symfony-devs] Re: Propel Performace

2007-08-06 Thread rihad
> Would you be able to share your partial hydration solution? > I'd hate to disappoint you, but it's... SQL views! Say you have a "Books" and "Author" tables with relevant model classes: Book: the table itself BookSummary: the view containing some identifying columns of Book, meant for "list" vie

[symfony-devs] Re: Propel Performace

2007-08-06 Thread rihad
> With arguments like this, how can argument? Symfony's Propel 1.2 is awful, it does everything possible to kill the performance of your app. That said, I hear Propel 1.3 is a bit better with respect to performance (read about changes here: http://propel.phpdb.org/trac/wiki/Users/Documentation/1.

[symfony-devs] Re: Propel 1.3?

2007-08-05 Thread rihad
On Aug 5, 7:54 pm, deresh <[EMAIL PROTECTED]> wrote: > On Jul 30, 7:21 am, Fabien POTENCIER <[EMAIL PROTECTED]> > wrote: > > > Doctrine won't be included in symfony 1.1 because Doctrine won't be > > stable enough and requires php 5.2.X. > > ok, but will you use new propel 1.3, because it's repor

[symfony-devs] Re: Propel Performace

2007-08-05 Thread rihad
> 2.- I prefer implementing a Query-Assaby Cache, so the queries (with > criterias and stuff) get build only once. (so you don't have to > hardcode sql) I'm not sure such cpu/memory task is the performance bottleneck, it's orders of magnitude faster than disk/network access, which IS the bottlene

[symfony-devs] Ideas on form handling and database access

2007-08-05 Thread rihad
Why not make the CRUD/validation as transparent and a breeze to use as in RoR, or CakePHP, without their worst sides? PHP is too verbose, true. But CakePHP still manages to hide the language complexity for the majority of cases (although Cake's own code is _awful_, not too far from spaghetti code