[symfony-users] Re: audit columns with propel?
Hi, http://www.symfony-project.org/plugins/sfPropelActAsSignableBehaviorPlugin Michael On 24 Apr., 16:11, Roland Cruse wrote: > Hi > > Using symfony 1.2/propel does anyone have any tips or links for > transparently updating/inserting audit columns (created_at, > created_by, updated_at, modified_by). I am not finding much on the > Internet > > Or would you need to role your own with "behaviours" or something else... > > Very much appreciated. > Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony has definitely become too complicated framework
Sid Ferreira, and everyone complaining about the new forms, you don't have to use them for simple things! Just post your raw html form to an action, handle it with getPostParameter() and do something with it. It is NOT TRUE that you have to learn a lot of stuff just to do simple things. I don't use sfGuard, i don't use the generator, i don't use object routing. I had the choice to learn and use them, or to do it my way. And that's what i like about symfony. Michael On 25 Sep., 11:39, Sid Ferreira wrote: > I was thinking about this, while making a sf1.0 project... and indeed > dispite of how good the new things in 1.2, it really got really complex.In > some ways, to a new commer, use symfony isn't a good idea he doesn't need > only to use MVC and ORM anymore, he needs to learn (and almost master) the > symfony forms to the very first project. > > I mean, it's insane in this point of view that sf can't make it easyer to > build a login form (let's ignore the plugin)... Almost against the 'KISS' > principle. > > I think symfony is an expert weapon, but it is almost 'no newbies > allowed'... > > ps: I hope I made my self clear about it. > > On Fri, Sep 25, 2009 at 04:20, Alexandru-Emil Lupu > wrote: > > > > > > > Gareth, i might even say old php 3.. in php4 there were any oop layering in > > progress .. > > > Fabien, if i remember right (haven't work to much with Rails) symfony > > folder structure is much alike with Ruby on Rails. By the way. Please close > > this non sense thread. > > > Alecs > > > On Fri, Sep 25, 2009 at 10:04 AM, Gareth McCumskey > > wrote: > > >> We recently hired a junior PHP developer, fresh out of college, getting > >> his first taste of using PHP AND symfony in a production environment. We > >> pretty much had to throw him in the deep end with using symfony and the > >> associated documentation and give him work to do. > > >> Guess what? Because of symfony's abstracted nature and the ability for > >> developers to focus on business logic, he is resolving bugs and adding new > >> features all the time. The only time he stops to ask my help with anything > >> is when it has to do with our OWN code implemented in symfony and NOT the > >> framework itself. To me , thats evidence enough that the framework and its > >> structure is not difficult to learn and get into for a new user who is > >> willing to take the time and learn it. > > >> If we had built our application without symfony we would still be very far > >> away from a releasable product costing the company more and more money. > > >> All of your responses show someone who is stuck in the old PHP4 procedural > >> line of thinking where its create functionality line by line and you are > >> apparently not willing to invest the relaistically small amount of time > >> required to use symfony. > > >> On Fri, Sep 25, 2009 at 3:34 AM, bghost wrote: > > >>> And? Where you saw any recommendation to use tags outside > >>> ?? > >>> I never said that any developer is stupid here. But now I have changed > >>> my opinion > >>> under the pressure of your arguments. > > >>> Anyway, finally I would say this: > > >>> Most of you are calling for some alleged benefits that are hidden > >>> behind terms > >>> like "re-usable, re-factoring" or "developer can concentrate on > >>> business logic" ... bla ... bla .. bla > > >>> 1st > > >>> What does it mean to do something re-usable? Do you really need to > >>> spend > >>> too much time on that if it will eventually be used once or just a few > >>> times? > >>> I heard many times: "Yes, make it re-usable...yes, yes, > >>> yes..hmake it > >>> re-usable!" even if that is justified or not. > > >>> 2nd > > >>> What is the limit? How deep a developer should go with the "re- > >>> factoring"? > >>> Is it necessary to split templates into numerous small fragments and > >>> thus make > >>> them an extremely confusing and difficult to track? I heard many > >>> times: "Yes, > >>> re-factore it ...yes, yes, yes..hre-factore it!" even if that > >>> is justified or not. > > >>> 3rd > > >>> Most of you said that Symfony Framework enables developers to > >>> concentrate > >>> on business logic? Yes, that's OK. I just wanted to warn that in these > >>> efforts, > >>> Symfony developers are exaggerating a bit, which resulted with the > >>> intricate > >>> logic of the Symfony framework that hides the flow of the application > >>> to the level > >>> where it is very difficult to understand and monitor the application. > > >>> This is my last post here. > > >>> WBR, > >>> Ghost3D > > >>> On Sep 25, 2:52 am, Jeremy Thomerson > >>> wrote: > >>> > I've avoided responding on this thread to this point because your rude > >>> > foul-mouthed criticism is ridiculously ignorant and malicious. But, > >>> since > >>> > you once again call all developers here stupid, please be quickly > >>> proven > >>> > wrong by reading the "INTRODUCTION TO TABLES" by the W3C. If you don't > >>> know > >>> > who the W3
[symfony-users] Re: Symfony has definitely become too complicated framework
So maybe the beginner tutorials should start with simple things, like handling a hand written html form and then later introduce some extended features like sfForms, which makes your life easier. This is done with security.yml and credentials: if you need more, you can use sfGuard. The good thing about Jobeet is that it shows how fast you can develop applications with symfony. But it hides the fact, that you have to know very much about the different components, when you try to change or add something there ... Well, i think it is really hard to satisfy everyone ... Michael On 25 Sep., 12:27, Gareth McCumskey wrote: > I don't use the sfGuard either, just the sfBasicSecurityUser, and it works > well enough and is really not all that complicated. I don't use the admin > generator as I feel it creates elements that are far too generic for my > purposes and usually my admin and frontend systems are too integrated. > > Just like Michael said, thats the beauty of symfony. As a newcomer you can > start using what you want when you want it. Use compat_10 settings to stick > to form helpers instead of forms framework and then switch to the forms > framework when you are ready. A lot of things are this way in symfony and > you are in no way compelled to use every plugin/feature that symfony > provides. > > On Fri, Sep 25, 2009 at 12:16 PM, [email protected] < > > > > > > [email protected]> wrote: > > > Sid Ferreira, and everyone complaining about the new forms, you don't > > have to use them for simple things! > > Just post your raw html form to an action, handle it with > > getPostParameter() and do something with it. > > > It is NOT TRUE that you have to learn a lot of stuff just to do simple > > things. > > > I don't use sfGuard, i don't use the generator, i don't use object > > routing. I had the choice to learn and use them, or to do it my way. > > And that's what i like about symfony. > > > Michael > > > On 25 Sep., 11:39, Sid Ferreira wrote: > > > I was thinking about this, while making a sf1.0 project... and indeed > > > dispite of how good the new things in 1.2, it really got really > > complex.In > > > some ways, to a new commer, use symfony isn't a good idea he doesn't need > > > only to use MVC and ORM anymore, he needs to learn (and almost master) > > the > > > symfony forms to the very first project. > > > > I mean, it's insane in this point of view that sf can't make it easyer to > > > build a login form (let's ignore the plugin)... Almost against the 'KISS' > > > principle. > > > > I think symfony is an expert weapon, but it is almost 'no newbies > > > allowed'... > > > > ps: I hope I made my self clear about it. > > > > On Fri, Sep 25, 2009 at 04:20, Alexandru-Emil Lupu > >wrote: > > > > > Gareth, i might even say old php 3.. in php4 there were any oop > > layering in > > > > progress .. > > > > > Fabien, if i remember right (haven't work to much with Rails) symfony > > > > folder structure is much alike with Ruby on Rails. By the way. Please > > close > > > > this non sense thread. > > > > > Alecs > > > > > On Fri, Sep 25, 2009 at 10:04 AM, Gareth McCumskey < > > [email protected]>wrote: > > > > >> We recently hired a junior PHP developer, fresh out of college, > > getting > > > >> his first taste of using PHP AND symfony in a production environment. > > We > > > >> pretty much had to throw him in the deep end with using symfony and > > the > > > >> associated documentation and give him work to do. > > > > >> Guess what? Because of symfony's abstracted nature and the ability for > > > >> developers to focus on business logic, he is resolving bugs and adding > > new > > > >> features all the time. The only time he stops to ask my help with > > anything > > > >> is when it has to do with our OWN code implemented in symfony and NOT > > the > > > >> framework itself. To me , thats evidence enough that the framework and > > its > > > >> structure is not difficult to learn and get into for a new user who is > > > >> willing to take the time and learn it. > > > > >> If we had built our application without symfony we would still be very > > far > > > >> away from a releasable product costing the company more and more > > money. >
[symfony-users] Re: Required fields i18n
I solved it this way:
In your form configure method (i18n form):
/* set required if object culture is 'en' */
$required = ($this->getObject()->getCulture() === 'en') ? true :
false;
$this->setValidators(array(
'name'=> new sfValidatorString(array('required' =>
$required)),
));
Hope this helps ...
Michael
On 23 Okt., 10:49, HAUSa
wrote:
> In my ObjectI18nForm I made several fields required.
> I embedded the ObjectI18nForm for two languages in my ObjectForm.
>
> Ofcourse, in both languages the fields are required. But I want my
> user to be able to submit only one language, he / she is not required
> to complete the fields for both languages.
>
> Anyone who knows how I can handle this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---
[symfony-users] Re: Required fields i18n
I'm not sure i understand you ... This works for me when i want the 'name' field in my i18n form to be 'required', but only for the 'en' language (in this example). So if i have 3 cultures and submit the main form, i get an error beside the empty 'name' widget, but only for the specified language. On 23 Okt., 13:36, Alexandre SALOME wrote: > Well, i think you mean : "fill all the required, or none" ? > > Because this is good for en, but what if 2 objects of the same class does > not fill the same language... > > 2009/10/23 [email protected] > > > > > > > > > I solved it this way: > > In your form configure method (i18n form): > > > /* set required if object culture is 'en' */ > > $required = ($this->getObject()->getCulture() === 'en') ? true : > > false; > > > $this->setValidators(array( > > 'name' => new sfValidatorString(array('required' => > > $required)), > > )); > > > Hope this helps ... > > Michael > > > On 23 Okt., 10:49, HAUSa > > wrote: > > > In my ObjectI18nForm I made several fields required. > > > I embedded the ObjectI18nForm for two languages in my ObjectForm. > > > > Ofcourse, in both languages the fields are required. But I want my > > > user to be able to submit only one language, he / she is not required > > > to complete the fields for both languages. > > > > Anyone who knows how I can handle this? > > -- > Alexandre Salomé -- [email protected] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Required fields i18n
That "I'm not sure i understand you" was for Alexandre ... @HAUSa: this was the same problem i had and the code i wrote in my first post did it for me ... Michael On 23 Okt., 15:04, HAUSa wrote: > Exactly. I want to be 100% sure that one language is completed. But > the user may choose for himself if he wants to make his content > available in other languages. > > On 23 okt, 14:44, "[email protected]" > > > > wrote: > > I'm not sure i understand you ... > > > This works for me when i want the 'name' field in my i18n form to be > > 'required', but only for the 'en' language (in this example). So if i > > have 3 cultures and submit the main form, i get an error beside the > > empty 'name' widget, but only for the specified language. > > > On 23 Okt., 13:36, Alexandre SALOME > > wrote: > > > > Well, i think you mean : "fill all the required, or none" ? > > > > Because this is good for en, but what if 2 objects of the same class does > > > not fill the same language... > > > > 2009/10/23 [email protected] > > > > > I solved it this way: > > > > In your form configure method (i18n form): > > > > > /* set required if object culture is 'en' */ > > > > $required = ($this->getObject()->getCulture() === 'en') ? true : > > > > false; > > > > > $this->setValidators(array( > > > > 'name' => new sfValidatorString(array('required' => > > > > $required)), > > > > )); > > > > > Hope this helps ... > > > > Michael > > > > > On 23 Okt., 10:49, HAUSa > > > > wrote: > > > > > In my ObjectI18nForm I made several fields required. > > > > > I embedded the ObjectI18nForm for two languages in my ObjectForm. > > > > > > Ofcourse, in both languages the fields are required. But I want my > > > > > user to be able to submit only one language, he / she is not required > > > > > to complete the fields for both languages. > > > > > > Anyone who knows how I can handle this? > > > > -- > > > Alexandre Salomé -- [email protected] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: dynamically change database connection.
Look at the ysfDimensionPlugin plugin. Michael On 9 Dez., 08:35, "Ridvan Lakas ng Bayan S. Baluyos" <[EMAIL PROTECTED]> wrote: > Hi list, > > This is what I wanted to do. I want my application to dynamically change the > database connection parameters in the database.yml based from the URL. Does > anyone know how to do it? I badly need a solution for this. > > Like for example:www.app1.com-> this will connect to database1www.app2.com-> > this will connect to database2www.app(n).com-> connects to database(n) > > Thanks in advance, > > Ridvan > > -- > リヅバン バルヨス > [EMAIL PROTECTED]://ridvan.baluyos.nethttp://www.onxiam.com/people/rbaluyos > > Registered Linux User #439466 > Registered Ubuntu User #16034 > Q: Have you heard of the Object-Oriented way to get wealthy? > A: Inheritance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: removing controller name from urls
You should really read the docs: http://www.symfony-project.org/book/1_2/09-Links-and-the-Routing-System#chapter_09_url_rewriting Look for "Rewriting Rules for Apache". Michael On 27 Feb., 21:25, slinky66 wrote: > Where do you configure symfony such that "index.php" is not required > in the URLs? > > I want to go from this:http://www.mysite.com/index.php/module/action > > To this:http://www.mysite.com/module/action > > I already went into settings.yml and turned no_script_name to "ON" and > cleared the cache. I keep getting a 404 > when I try to access without index.php in the URL > > prod: > .settings: > no_script_name: on > # error_reporting: 2047 > web_debug: off > cache: off > > What am I missing? > > Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: How to access a custom added column in propel?
doSelectRS is the right way to access an array.
Example from propel docs:
$rs = AuthorPeer::doSelectRS(new Criteria());
$names = array();
while($rs->next()) {
$names[] = $rs->getString(2);
}
Michael
On 28 Feb., 02:23, Joshua wrote:
> On Feb 27, 6:51 pm, Eno wrote:
>
>
>
> > On Fri, 27 Feb 2009, Joshua wrote:
> > > $c = new Criteria();
> > > $c->addAsColumn('distance', '((ACOS(SIN('.$zipcode->getLat().' * PI
> > > () / 180) * SIN(`zipcodes`.LAT * PI() / 180) + COS('.$zipcode->getLat
> > > ().' * PI() / 180) * COS(`zipcodes`.LAT * PI() / 180) * COS(('.
> > > $zipcode->getLon().' - `zipcodes`.LON) * PI() / 180)) * 180 / PI()) *
> > > 60 * 1.1515)');
> > > RoutesPeer::addSelectColumns($c);
> > > $c->setLimit(10);
> > > $c->addAscendingOrderByColumn('distance');
> > > $c->addJoin(ZipcodesPeer::ZIPCODE, RoutesPeer::ZIP_CODE);
> > > $this->featuredRoutes = RoutesPeer::doSelect($c);
>
> > > I need to be able to access "distance" column. The above code will
> > > give me an array of Routes objects but does not include the distance
> > > column.
>
> > > What can I do to access all the necessary columns including custom
> > > ones?
>
> > I think, if you're using raw SQL inside a peer class, you will have to
> > iterate through the rows and hydrate the objects yourself (I guess this
> > also means you need the model classes and schema as well right?).
>
> > --
>
> I thought there was a way to have propel return the exact values as a
> PHP array. Is that supposed to be done by doSelectRS maybe? It returns
> an error when I try to use it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---
[symfony-users] Re: How to access a custom added column in propel?
Yes i'm aware of that and i know the difference between 1.2 and 1.3.
But Joshua mentioned doSelectRS in his second post, so i assume he's
using propel 1.2
For propel 1.3 it is doSelectStmt, you're right.
Michael
On 28 Feb., 10:34, vadim wrote:
> Michael, I guess the code you wrote wouldn't work in Propel1.3. As far
> as I'm concerned doSelectRS is not a case in Propel 1.3 anymore. One
> should use doSelectStmt instead. If I were you I would try right that:
>
> $c = new Criteria();
>
> $c->clearSelectColumns();
>
> $c->addSelectColumn( '((ACOS(SIN('.$zipcode->getLat().' * PI
> () / 180) * SIN(`zipcodes`.LAT * PI() / 180) + COS('.$zipcode->getLat
> ().' * PI() / 180) * COS(`zipcodes`.LAT * PI() / 180) * COS(('.
> $zipcode->getLon().' - `zipcodes`.LON) * PI() / 180)) * 180 / PI()) *
> 60 * 1.1515) as distance'); //Jesus Christ!
>
> $sum = RoutesPeer::doSelectStmt($c);
>
> $total = array();
>
> while ($row = $sum->fetch(PDO::FETCH_NUM)) {
> $total[] = array(
> 'distance' => $row[0],
> //some other columns...
> );
>
> On Feb 28, 11:21 am, "[email protected]"
>
> wrote:
> > doSelectRS is the right way to access an array.
> > Example from propel docs:
>
> > $rs = AuthorPeer::doSelectRS(new Criteria());
>
> > $names = array();
>
> > while($rs->next()) {
> > $names[] = $rs->getString(2);
>
> > }
>
> > Michael
>
> > On 28 Feb., 02:23, Joshua wrote:
>
> > > On Feb 27, 6:51 pm, Eno wrote:
>
> > > > On Fri, 27 Feb 2009, Joshua wrote:
> > > > > $c = new Criteria();
> > > > > $c->addAsColumn('distance', '((ACOS(SIN('.$zipcode->getLat().' * PI
> > > > > () / 180) * SIN(`zipcodes`.LAT * PI() / 180) + COS('.$zipcode->getLat
> > > > > ().' * PI() / 180) * COS(`zipcodes`.LAT * PI() / 180) * COS(('.
> > > > > $zipcode->getLon().' - `zipcodes`.LON) * PI() / 180)) * 180 / PI()) *
> > > > > 60 * 1.1515)');
> > > > > RoutesPeer::addSelectColumns($c);
> > > > > $c->setLimit(10);
> > > > > $c->addAscendingOrderByColumn('distance');
> > > > > $c->addJoin(ZipcodesPeer::ZIPCODE, RoutesPeer::ZIP_CODE);
> > > > > $this->featuredRoutes = RoutesPeer::doSelect($c);
>
> > > > > I need to be able to access "distance" column. The above code will
> > > > > give me an array of Routes objects but does not include the distance
> > > > > column.
>
> > > > > What can I do to access all the necessary columns including custom
> > > > > ones?
>
> > > > I think, if you're using raw SQL inside a peer class, you will have to
> > > > iterate through the rows and hydrate the objects yourself (I guess this
> > > > also means you need the model classes and schema as well right?).
>
> > > > --
>
> > > I thought there was a way to have propel return the exact values as a
> > > PHP array. Is that supposed to be done by doSelectRS maybe? It returns
> > > an error when I try to use it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---
[symfony-users] Re: How to access a custom added column in propel?
Damn, "Call to undefined method RoutesPeer::doselectrs()" and "PDOStatement Object", i didn't see (read) that. This point goes to you ;o) It's definitively "doSelectStmt" time! Michael On 28 Feb., 13:13, vadim wrote: > Yeah, but read an error he's facing: > > PHP Fatal error: Call to undefined method RoutesPeer::doselectrs() > in /apps/frontend/modules/route/actions/actions.class.php on line 39 > > So I've made the conclusion that he uses Propel 1.3. > > Joshua, 1 000 000 dollars question to you: > > What Propel version do you use? ;) > > On Feb 28, 2:39 pm, "[email protected]" > > wrote: > > Yes i'm aware of that and i know the difference between 1.2 and 1.3. > > But Joshua mentioned doSelectRS in his second post, so i assume he's > > using propel 1.2 > > > For propel 1.3 it is doSelectStmt, you're right. > > > Michael > > > On 28 Feb., 10:34, vadim wrote: > > > > Michael, I guess the code you wrote wouldn't work in Propel1.3. As far > > > as I'm concerned doSelectRS is not a case in Propel 1.3 anymore. One > > > should use doSelectStmt instead. If I were you I would try right that: > > > > $c = new Criteria(); > > > > $c->clearSelectColumns(); > > > > $c->addSelectColumn( '((ACOS(SIN('.$zipcode->getLat().' * PI > > > () / 180) * SIN(`zipcodes`.LAT * PI() / 180) + COS('.$zipcode->getLat > > > ().' * PI() / 180) * COS(`zipcodes`.LAT * PI() / 180) * COS(('. > > > $zipcode->getLon().' - `zipcodes`.LON) * PI() / 180)) * 180 / PI()) * > > > 60 * 1.1515) as distance'); //Jesus Christ! > > > > $sum = RoutesPeer::doSelectStmt($c); > > > > $total = array(); > > > > while ($row = $sum->fetch(PDO::FETCH_NUM)) { > > > $total[] = array( > > > 'distance' => $row[0], > > > //some other columns... > > > ); > > > > On Feb 28, 11:21 am, "[email protected]" > > > > wrote: > > > > doSelectRS is the right way to access an array. > > > > Example from propel docs: > > > > > $rs = AuthorPeer::doSelectRS(new Criteria()); > > > > > $names = array(); > > > > > while($rs->next()) { > > > > $names[] = $rs->getString(2); > > > > > } > > > > > Michael > > > > > On 28 Feb., 02:23, Joshua wrote: > > > > > > On Feb 27, 6:51 pm, Eno wrote: > > > > > > > On Fri, 27 Feb 2009, Joshua wrote: > > > > > > > $c = new Criteria(); > > > > > > > $c->addAsColumn('distance', '((ACOS(SIN('.$zipcode->getLat().' > > > > > > > * PI > > > > > > > () / 180) * SIN(`zipcodes`.LAT * PI() / 180) + > > > > > > > COS('.$zipcode->getLat > > > > > > > ().' * PI() / 180) * COS(`zipcodes`.LAT * PI() / 180) * COS(('. > > > > > > > $zipcode->getLon().' - `zipcodes`.LON) * PI() / 180)) * 180 / > > > > > > > PI()) * > > > > > > > 60 * 1.1515)'); > > > > > > > RoutesPeer::addSelectColumns($c); > > > > > > > $c->setLimit(10); > > > > > > > $c->addAscendingOrderByColumn('distance'); > > > > > > > $c->addJoin(ZipcodesPeer::ZIPCODE, RoutesPeer::ZIP_CODE); > > > > > > > $this->featuredRoutes = RoutesPeer::doSelect($c); > > > > > > > > I need to be able to access "distance" column. The above code will > > > > > > > give me an array of Routes objects but does not include the > > > > > > > distance > > > > > > > column. > > > > > > > > What can I do to access all the necessary columns including custom > > > > > > > ones? > > > > > > > I think, if you're using raw SQL inside a peer class, you will have > > > > > > to > > > > > > iterate through the rows and hydrate the objects yourself (I guess > > > > > > this > > > > > > also means you need the model classes and schema as well right?). > > > > > > > -- > > > > > > I thought there was a way to have propel return the exact values as a > > > > > PHP array. Is that supposed to be done by doSelectRS maybe? It returns > > > > > an error when I try to use it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: user's profile - why I can't simply add column to sf_guard_user table
You should use plugins like they're supposed to be used. I don't use
it, but as far as i know the extra profile table IS for that. If you
do something else, then at your own risk, or you know what you are
doing and how to deal with it.
Michael
On 2 Mrz., 07:52, dziobacz wrote:
> I don't want create special table for user's profile.
>
> In database I added column 'name' to sf_guard_user table, next:
> [code]
> php symfony doctrine:build-schema
> php symfony doctrine:build-model
> php symfony doctrine:build-forms
> php symfony doctrine:generate-module --with-show --non-verbose-
> templates frontend sfguarduser sfGuardUser
> php symfony cc
> [/code]
>
> next modify sfGuardUserForm.class.php to add input field 'name':
> [code]
> class sfGuardUserForm extends PluginsfGuardUserForm
> {
> public function configure()
> {
>
> $this->widgetSchema['name'] = new fWidgetFormInput(array(
> 'label' => 'name',));
>
> }}
>
> [/code]
>
> And I see field name on the website but when I write in this field
> something and press 'submit' I get:
> [code]
> Unexpected extra form field named "name".
> [/code]
>
> [b]Is it normal ? I can't do that (it is obligatory to create second
> table for profile) or I can do that (it is possible to add columns to
> sf_guard_user table) but I have somewhere mistake ? [/b]:(
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---
[symfony-users] Re: user's profile - why I can't simply add column to sf_guard_user table
One more thing: keep in mind that you want to update you plugins in the future. If you add custom columns this way to the schema, it could be overwritten during the next update and you might lose your extra column. This will also affect any modifications to the forms ... Michael On 2 Mrz., 17:45, "[email protected]" wrote: > You should use plugins like they're supposed to be used. I don't use > it, but as far as i know the extra profile table IS for that. If you > do something else, then at your own risk, or you know what you are > doing and how to deal with it. > > Michael > > On 2 Mrz., 07:52, dziobacz wrote: > > > I don't want create special table for user's profile. > > > In database I added column 'name' to sf_guard_user table, next: > > [code] > > php symfony doctrine:build-schema > > php symfony doctrine:build-model > > php symfony doctrine:build-forms > > php symfony doctrine:generate-module --with-show --non-verbose- > > templates frontend sfguarduser sfGuardUser > > php symfony cc > > [/code] > > > next modify sfGuardUserForm.class.php to add input field 'name': > > [code] > > class sfGuardUserForm extends PluginsfGuardUserForm > > { > > public function configure() > > { > > > $this->widgetSchema['name'] = new fWidgetFormInput(array( > > 'label' => 'name',)); > > > }} > > > [/code] > > > And I see field name on the website but when I write in this field > > something and press 'submit' I get: > > [code] > > Unexpected extra form field named "name". > > [/code] > > > [b]Is it normal ? I can't do that (it is obligatory to create second > > table for profile) or I can do that (it is possible to add columns to > > sf_guard_user table) but I have somewhere mistake ? [/b]:( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Propel 1.3 nestedset strange behavior
May i jump in ;o) I wonder, because moving a node with all it's descendants and children down to one descendant cannot work, or am i wrong? By moving a node you are also moving all nodes beneath it (descendants and children too), so this can't work, because the node you are moving to is not present anymore (you are moving it, because you are moving it's parent)... ?! So in my view, this is not a bug. It's logic. Michael On 6 Mrz., 10:08, Jérôme TEXIER wrote: > On 4 mar, 16:49, Gorka wrote: > > > Last time I checked -though it was months ago- I think nodes could not > > be moved through the tree, but I am not sure. Maybe the limitation was > > that they could not be moved between different trees (different > > scopes)... sorry for my bad memory. > > Anyway, I've personally found Propel1.3 nestedset implementation > > rather unstable, with strange things happening from time to time. I > > have reverted to sfPropelActAsNestedSetBehaviorPlugin applying the > > Propel1.3 compatibility patch. > > > If there is anyone who has easily and successfully implemented native > > Propel1.3 nestedset funtionality, please make me wrong and happy :) > > I do ! :) > Excepting the problem I mentioned, native nested set support is > working well. I fixed this specific problem by avoiding moving a node > to one of its descendants. Nodes can be moved to ascendants & cousins > without any problem. > > I remeber I found such kind of weird tree structure with > sfPropelActAsNestedSetBehaviorPlugin too. > Somewhere, I found the native support cleaner and easier to install/ > use than the behavior. > Tree support is enabled on schema.yml (like Doctrine) and not on > schema.yml and on class definition. > There's also less magic and maybe more reusability with it : object > class explicitly implements nested object class and could be easily > overridden. > > Jérôme --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: How to access sfWebRequest object from the model
sfContext::getInstance()->getRequest() Michael On 21 Mrz., 03:00, Benjamin wrote: > Hello, > > In my user model I would like to capture the user's ip address for new > records in the user->save() event. I am using symfony 1.2. What is > the best way to access the sfWebRequest object from within the model? > > Thank you, > Benjamin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: routing, link_to, culture
I think this should be:
Michael
On 25 Mrz., 22:20, lowshoe wrote:
> hi all,
>
> i have problems in using link_to in conjunction with sf_culture.
>
> suppose i have the following routing.yml:
>
> # route for articles
> article:
> url: /:sf_culture/article/details/:article_id
> param: { module: article, action: show }
> requirements:
> sf_culture: (?:en|de|fr|es|pt)
> article_id: (?:a|b|c)
>
> [..]
>
> # default route
> default:
> url: /:sf_culture/:module/:action/*
> requirements:
> sf_culture: (?:en|de|fr|es|pt)
>
> now, when i use link_to(..) in my template the following way:
>
> ,
>
> i get
> 'http://myapp.local/en/article/details'instead of 'http://myapp.local/
> en/article/details/a'
>
> when i directly visit "http://myapp.local/en/article/details/a"; in the
> browser, symfony correctly uses the 'article'-route.
> a works as
> expected too.
> i think, because of the missing culture in the first link_to(..)
> call, the symfony routing resolution falls back to the default-route.
> is this a generic problem in symfony or am i missing something that
> could solve the problem?
>
> regards, lowshoe.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---
[symfony-users] Re: Why should I write queries like this?
Another thing i like with peer constants is code-autocompletion.
So when i type "PasswordLabelPeer::" i can quickly select the
columns ...
Michael
On 26 Mrz., 09:17, Sid Bachtiar wrote:
> Fixing misspelled table names from previous developer, changing table
> names prefixes, configurable table names for Symfony plugins, easier
> to grep/search/replace, etc. Not many reasons but it is still a good
> practice. There is always reason to go against Abstraction when you
> writing code because it is 'extra' work ... it is mostly appreciated
> by the next guy reading/using it.
>
> To make things more readable (if I have to write a query instead of
> using Criteria object), I usually do something like:
>
> $tbl_user = UserPeer::TABLE_NAME;
> $sql_string = "SELECT * FROM $tbl_user";
>
> (of course the above should be written with Criteria object, but just
> to illustrate)
>
>
>
>
>
> On Thu, Mar 26, 2009 at 8:19 PM, Benjamin wrote:
>
> > This question may be unrelated to symfony, and more related to
> > database abstraction, but I'm wondering why I should pull the table
> > names from the model. I've been programming for a long time and have
> > never seen anyone need to use dyamic table names except when they have
> > prefixes on them that can change.
>
> > So, this is a pain to type out:
>
> > public static function getUserLabelsWithPasswordCounts($userId) {
> > $query = "SELECT
> > " . PasswordLabelPeer::NAME . ",
> > (SELECT COUNT(*) FROM " .
> > PasswordLabelPasswordsPeer::TABLE_NAME . " WHERE " .
> > PasswordLabelPasswordsPeer::LABEL_ID . " = " . PasswordLabelPeer::ID .
> > ") AS pcount
> > FROM
> > " . PasswordLabelPeer::TABLE_NAME . "
> > WHERE
> > " . PasswordLabelPeer::ID . " = '$userId'
> > ORDER BY
> > " . PasswordLabelPeer::NAME . " ASC";
>
> > $con = Propel::getConnection();
> > $pdo = $con->prepare($query);
> > $pdo->execute();
>
> > return $pdo->fetchAll(PDO::FETCH_OBJ);
> > }
>
> --
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---
[symfony-users] Re: mysql extension not loaded
Sometimes there are two different *.ini locations for php: one for CLI and one for the webserver. You should check that out. Michael On 31 Mrz., 08:53, sachin jain wrote: > [PropelException] > [wrapped: mysql extension not loaded [User Info: Array]] > > in linux I am am getting what could be the issue e. > > in mysql.ini > > ; Enable mysql extension module > extension=mysql.so > > that is enabled --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: could somebody give me some tutorial or tell how I can create my own error page ?
Sorry beeing so short, but almost anything you ask is explained in the docs. Michael On 2 Apr., 12:35, dziobacz wrote: > could somebody give me some tutorial or tell how I can create my own > error page ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: I have a question about csrf protection in links.
I think you misunderstood the concept behind it.
CSRFProtection is used in forms, not in simple links.
Michael
On 10 Apr., 15:40, dziobacz wrote:
> I have read about csrf protection but I still don't understand
> everything.
>
> I have in settings.yml:
> csrf_secret: secret12
>
> I have something like that in template:
> User A adds user B to fiends. User B can accept it - then I have link:
> accept
> or not accept it - then link:
> not
> accept
>
> Then I in file actions.class.php take id like that:
> $id = (int)$request->getParameter('accept');
> $id = (int)$request->getParameter('notaccept');
>
> and add or delete row to/from database. Should I in both cases write:
> $request->checkCSRFProtection() ??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---
[symfony-users] Re: I have a question about csrf protection in links.
If you are using sessions and someone logs in, then you can compare the id's. So if user id in session is not equal to request id in link, then do not allow this action. The other thing i would suggest is not to use any id's in urls anyway. Use for example unique tokens (with functions like http://de2.php.net/manual/en/function.uniqid.php). I created a propel behaviour which does (creates) it whenever i save an object (and it is new). I use those tokens in urls for critical objects instead of plain id's. Hope this gives you an idea. Michael On 11 Apr., 09:47, dziobacz wrote: > But I would like to make that users can add links so in settings.yml I > have made escaping_strategy: false. > User with id=1 adds comment: > > User with id=5 goes to page with and it deletes from database his friend with id=22 :( > My application isn't safe :( !! What can I do ? :(((( > > On 11 Kwi, 08:38, "[email protected]" > > > > wrote: > > I think you misunderstood the concept behind it. > > CSRFProtection is used in forms, not in simple links. > > > Michael > > > On 10 Apr., 15:40, dziobacz wrote: > > > > I have read about csrf protection but I still don't understand > > > everything. > > > > I have in settings.yml: > > > csrf_secret: secret12 > > > > I have something like that in template: > > > User A adds user B to fiends. User B can accept it - then I have link: > > > accept > > > or not accept it - then link: > > > not > > > accept > > > > Then I in file actions.class.php take id like that: > > > $id = (int)$request->getParameter('accept'); > > > $id = (int)$request->getParameter('notaccept'); > > > > and add or delete row to/from database. Should I in both cases write: > > > $request->checkCSRFProtection() ?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: how long can user be log in ?
It's as always in the docs. Will you read them once in your life? http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_sub_session-management Michael On 12 Apr., 11:35, dziobacz wrote: > Where can I check in symfony max log in time ? Is it possible ? > > On 12 Kwi, 11:02, Alexandru-Emil Lupu wrote: > > > > > Or maybe in symfony is default log in time - what do you think ? > > And also check your php.ini session time (the time period for session > > lifetime) > > > On Sun, Apr 12, 2009 at 11:59 AM, dziobacz wrote: > > > > Sometimes user in my test website is automatic log out - maybe the > > > reason is that I often use: php symfony cc. I don't know. Or maybe in > > > symfony is default log in time - what do you think ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: how long can user be log in ?
You're right. I'm sorry ... ;o) Michael On 12 Apr., 16:24, dziobacz wrote: > THx michael - I have read tutorial. > > So in factories.yml if I want 1. day I have set: > all: > routing: > class: sfPatternRouting > param: > generate_shortest_url:true > extra_parameters_as_query_string: true > user: > class: myUser > param: > timeout: 86400 > > Don't be so cruel for me. xD > > On 12 Kwi, 15:54, "[email protected]" > > wrote: > > It's as always in the docs. Will you read them once in your > > life?http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Laye... > > > Michael > > > On 12 Apr., 11:35, dziobacz wrote: > > > > Where can I check in symfony max log in time ? Is it possible ? > > > > On 12 Kwi, 11:02, Alexandru-Emil Lupu wrote: > > > > > Or maybe in symfony is default log in time - what do you think ? > > > > And also check your php.ini session time (the time period for session > > > > lifetime) > > > > > On Sun, Apr 12, 2009 at 11:59 AM, dziobacz > > > > wrote: > > > > > > Sometimes user in my test website is automatic log out - maybe the > > > > > reason is that I often use: php symfony cc. I don't know. Or maybe in > > > > > symfony is default log in time - what do you think ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Symfony 2 - "Extremly Configurable"
Very very very impressive Symfony 2 ... ! I watched parts of the conference (thanks to Ben Haines), i read the blogs, i watched the slides, i tried the sandbox ... really, very impressive. I also watched the presentation from Fabien himself (http:// www.slideshare.net/fabpot/symfony-20-revealed) and read features like "Extremely Configurable", "Name your configuration files the way you want", "Store them where you want", "Inherit them as much as you want" or "Mix and match configuration files written in any format" etc. This sounds really nice. But even though it's possible, IMO Symfony should force us to use, or at least recommend us (the developers) some sort of structure for our projects. What i really like about symfony 1.x is it's common project structure. I mean, you always know where to setup the database, where the models are, wehre to edit the actions etc. Even if you have to start working on an already existing project, you know where you are. And i think this is a very important Symfony feature for bigger (enterprise) projects. So the new possibilities are for sure great and endless, but i hope Symfony 2 will have it's own standard "project development pattern", like symfony 1.x ... Can't await end of 2010 ;o) Michael -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Symfony 2 - "Extremly Configurable"
That sounds good. And yes, the sandbox already demonstrates the bundle concept, and how a project could be layed down. I'm already playing around with it ;o) I know it's to early to ask questions, but maybe this is easy to explain: what is the purpose of the token in the Symfony 2 debug bar? To identify different requests (ajax etc.)? Michael On 19 Feb., 20:36, Fabien Potencier wrote: > Of course we will have a default directory structure, and sensible > defaults for configuration. Actually, this is already the case if you > have a look at the sandbox. > > Flexibility does not mean that you have to use it. For most people, the > default will just work for them. But it's great to know that if you need > to customize something, that's just possible. > > Fabien > > -- > Fabien Potencier > Sensio CEO - symfony lead developer > sensiolabs.com | symfony-project.org | fabien.potencier.org > Tél: +33 1 40 99 80 80 > > On 2/19/10 3:42 PM, [email protected] wrote: > > > > > Very very very impressive Symfony 2 ... ! > > > I watched parts of the conference (thanks to Ben Haines), i read the > > blogs, i watched the slides, i tried the sandbox ... really, very > > impressive. > > > I also watched the presentation from Fabien himself (http:// > >www.slideshare.net/fabpot/symfony-20-revealed) and read features like > > "Extremely Configurable", "Name your configuration files the way you > > want", "Store them where you want", "Inherit them as much as you want" > > or "Mix and match configuration files written in any format" etc. > > > This sounds really nice. But even though it's possible, IMO Symfony > > should force us to use, or at least recommend us (the developers) some > > sort of structure for our projects. What i really like about symfony > > 1.x is it's common project structure. I mean, you always know where to > > setup the database, where the models are, wehre to edit the actions > > etc. Even if you have to start working on an already existing project, > > you know where you are. And i think this is a very important Symfony > > feature for bigger (enterprise) projects. > > > So the new possibilities are for sure great and endless, but i hope > > Symfony 2 will have it's own standard "project development pattern", > > like symfony 1.x ... > > > Can't await end of 2010 ;o) > > > Michael -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Symfony 2 - "Extremly Configurable"
I already figured it out when i watched your full presentation (video) ;o) You mentioned there that the "full" debug information can be accessed on demand by clicking this token (which will then open a popup), which is a really clever idea. Nice work! Michael On 22 Feb., 14:04, Fabien Potencier wrote: > On 2/20/10 11:03 AM, [email protected] wrote: > > > That sounds good. And yes, the sandbox already demonstrates the bundle > > concept, and how a project could be layed down. I'm already playing > > around with it ;o) > > > I know it's to early to ask questions, but maybe this is easy to > > explain: what is the purpose of the token in the Symfony 2 debug bar? > > To identify different requests (ajax etc.)? > > hehe, good catch ;) > > To avoid downloading all the debug toolbar information in the same > request (as this can be quite huge), the debug data for a request will > be stored on the server and accessed on demand. > > Fabien > > > > > > > Michael > > > On 19 Feb., 20:36, Fabien Potencier > project.com> wrote: > >> Of course we will have a default directory structure, and sensible > >> defaults for configuration. Actually, this is already the case if you > >> have a look at the sandbox. > > >> Flexibility does not mean that you have to use it. For most people, the > >> default will just work for them. But it's great to know that if you need > >> to customize something, that's just possible. > > >> Fabien > > >> -- > >> Fabien Potencier > >> Sensio CEO - symfony lead developer > >> sensiolabs.com | symfony-project.org | fabien.potencier.org > >> Tél: +33 1 40 99 80 80 > > >> On 2/19/10 3:42 PM, [email protected] wrote: > > >>> Very very very impressive Symfony 2 ... ! > > >>> I watched parts of the conference (thanks to Ben Haines), i read the > >>> blogs, i watched the slides, i tried the sandbox ... really, very > >>> impressive. > > >>> I also watched the presentation from Fabien himself (http:// > >>>www.slideshare.net/fabpot/symfony-20-revealed) and read features like > >>> "Extremely Configurable", "Name your configuration files the way you > >>> want", "Store them where you want", "Inherit them as much as you want" > >>> or "Mix and match configuration files written in any format" etc. > > >>> This sounds really nice. But even though it's possible, IMO Symfony > >>> should force us to use, or at least recommend us (the developers) some > >>> sort of structure for our projects. What i really like about symfony > >>> 1.x is it's common project structure. I mean, you always know where to > >>> setup the database, where the models are, wehre to edit the actions > >>> etc. Even if you have to start working on an already existing project, > >>> you know where you are. And i think this is a very important Symfony > >>> feature for bigger (enterprise) projects. > > >>> So the new possibilities are for sure great and endless, but i hope > >>> Symfony 2 will have it's own standard "project development pattern", > >>> like symfony 1.x ... > > >>> Can't await end of 2010 ;o) > > >>> Michael -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Question about Symfony 2.0
I hate to say it, because it means a lot of work for me too, but BC kills innovation. As Symfony 2 already introduce some new (core) concepts, it shouldn't change the course because of BC. I mean, it'll be a difficult migration from symfony 1 anyway. Oh, and i didn't mentioned Doctrine 2 :o) Michael On 23 Feb., 09:19, Fabien Potencier wrote: > On 2/23/10 7:40 AM, Gareth McCumskey wrote: > > > Hi Fabien, > > > Thanks for the response, its really appreciated. And its good to know > > that this will at least be looked at :). I do understand that not > > everything will be automated,but just as a baseline, with no > > automation, our current symfony 1.x project would take probably on the > > order of 6-8 months to transfer to Symfony 2.0 when its released and > > based on what I saw in that (exciting) presentation. > > > I guess thats partly why many frameworks do not end up doing a > > "rewrite" like this for their frameworks, because of backward > > compatability issues. > > That's also why some frameworks die. The web evolves fast. We need to > keep up with best practices. Unfortunately, the symfony 1 core > architecture was not flexible enough. That's also because frameworks in > PHP are quite young. So, we are still "experimenting" a lot of different > approaches. > > Fabien > > > > > > > On Mon, Feb 22, 2010 at 2:47 PM, Fabien Potencier > > wrote: > > >> On 2/22/10 11:53 AM, Gareth McCumskey wrote: > > >>> Hey all, > > >>> I just finished watching the presentation by Fabien about Symfony 2.0, > >>> and it really looks great. You can see that the lessons learnt > >>> developing symfony 1.x have paid off for this next major version. But > >>> I had a couple of questions... > > >>> Will Symfony 2.0 have some kind of upgrade capability for symfony 1.x > >>> projects? I don't necessarily mean total ease of upgrade, as I > >>> understand that its a totally different core etc, but, using us as an > >>> example, we have a very complex application that has taken a very long > >>> time to develop and even with LTS being to 2012, re-writing our entire > >>> app for Symfony 2.0 from scratch (or even semi-from scratch) would be > >>> a task that would take too long to contemplate. > > >>> If Symfony 2.0 will not have some kind of upgrade mechanism, will the > >>> symfony 1.x branch (?) have longer term support just for bug-fixes > >>> simply to allow people more time to make the transition? > > >> We are too early in the development of Symfony 2 to have a definitive > >> answer > >> to this question. We will do our best to ease the transition from symfony 1 > >> to Symfony 2, that's all I can say for now. But, as you have already > >> noticed, a lot of things are quite different, so we won't be able to > >> automate everything. > > >> Fabien > > >>> This is not in anyway a demand or ridicule simply just a request for > >>> information so we can long-term plan our releases a bit for our > >>> application. > > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "symfony users" group. > >> To post to this group, send email to [email protected]. > >> To unsubscribe from this group, send email to > >> [email protected]. > >> For more options, visit this group at > >>http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Symfony 2 - "Extremly Configurable"
Oh, i can see something happening here ;o) http://github.com/fabpot/symfony/commit/22e310e24014f7873721359f7f3c7eca17b9b933 Michael On 22 Feb., 14:04, Fabien Potencier wrote: > > hehe, good catch ;) > > To avoid downloading all the debug toolbar information in the same > request (as this can be quite huge), the debug data for a request will > be stored on the server and accessed on demand. > > Fabien > > > > > > > Michael > > > On 19 Feb., 20:36, Fabien Potencier > project.com> wrote: > >> Of course we will have a default directory structure, and sensible > >> defaults for configuration. Actually, this is already the case if you > >> have a look at the sandbox. > > >> Flexibility does not mean that you have to use it. For most people, the > >> default will just work for them. But it's great to know that if you need > >> to customize something, that's just possible. > > >> Fabien > > >> -- > >> Fabien Potencier > >> Sensio CEO - symfony lead developer > >> sensiolabs.com | symfony-project.org | fabien.potencier.org > >> Tél: +33 1 40 99 80 80 > > >> On 2/19/10 3:42 PM, [email protected] wrote: > > >>> Very very very impressive Symfony 2 ... ! > > >>> I watched parts of the conference (thanks to Ben Haines), i read the > >>> blogs, i watched the slides, i tried the sandbox ... really, very > >>> impressive. > > >>> I also watched the presentation from Fabien himself (http:// > >>>www.slideshare.net/fabpot/symfony-20-revealed) and read features like > >>> "Extremely Configurable", "Name your configuration files the way you > >>> want", "Store them where you want", "Inherit them as much as you want" > >>> or "Mix and match configuration files written in any format" etc. > > >>> This sounds really nice. But even though it's possible, IMO Symfony > >>> should force us to use, or at least recommend us (the developers) some > >>> sort of structure for our projects. What i really like about symfony > >>> 1.x is it's common project structure. I mean, you always know where to > >>> setup the database, where the models are, wehre to edit the actions > >>> etc. Even if you have to start working on an already existing project, > >>> you know where you are. And i think this is a very important Symfony > >>> feature for bigger (enterprise) projects. > > >>> So the new possibilities are for sure great and endless, but i hope > >>> Symfony 2 will have it's own standard "project development pattern", > >>> like symfony 1.x ... > > >>> Can't await end of 2010 ;o) > > >>> Michael -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Symfony 2 - "Extremly Configurable"
Oh, i can see something happening here ;o) http://github.com/fabpot/symfony/commit/22e310e24014f7873721359f7f3c7eca17b9b933 Michael On 22 Feb., 14:04, Fabien Potencier wrote: > > hehe, good catch ;) > > To avoid downloading all the debug toolbar information in the same > request (as this can be quite huge), the debug data for a request will > be stored on the server and accessed on demand. > > Fabien > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Symfony 2 - "Extremly Configurable"
Oh, i can see something happening here ;o) http://github.com/fabpot/symfony/commit/22e310e24014f7873721359f7f3c7eca17b9b933 Michael On 22 Feb., 14:04, Fabien Potencier wrote: > On 2/20/10 11:03 AM, [email protected] wrote: > > hehe, good catch ;) > > To avoid downloading all the debug toolbar information in the same > request (as this can be quite huge), the debug data for a request will > be stored on the server and accessed on demand. > > Fabien > > > > > > > Michael > > > On 19 Feb., 20:36, Fabien Potencier > project.com> wrote: > >> Of course we will have a default directory structure, and sensible > >> defaults for configuration. Actually, this is already the case if you > >> have a look at the sandbox. > > >> Flexibility does not mean that you have to use it. For most people, the > >> default will just work for them. But it's great to know that if you need > >> to customize something, that's just possible. > > >> Fabien > > >> -- > >> Fabien Potencier > >> Sensio CEO - symfony lead developer > >> sensiolabs.com | symfony-project.org | fabien.potencier.org > >> Tél: +33 1 40 99 80 80 > > >> On 2/19/10 3:42 PM, [email protected] wrote: > > >>> Very very very impressive Symfony 2 ... ! > > >>> I watched parts of the conference (thanks to Ben Haines), i read the > >>> blogs, i watched the slides, i tried the sandbox ... really, very > >>> impressive. > > >>> I also watched the presentation from Fabien himself (http:// > >>>www.slideshare.net/fabpot/symfony-20-revealed) and read features like > >>> "Extremely Configurable", "Name your configuration files the way you > >>> want", "Store them where you want", "Inherit them as much as you want" > >>> or "Mix and match configuration files written in any format" etc. > > >>> This sounds really nice. But even though it's possible, IMO Symfony > >>> should force us to use, or at least recommend us (the developers) some > >>> sort of structure for our projects. What i really like about symfony > >>> 1.x is it's common project structure. I mean, you always know where to > >>> setup the database, where the models are, wehre to edit the actions > >>> etc. Even if you have to start working on an already existing project, > >>> you know where you are. And i think this is a very important Symfony > >>> feature for bigger (enterprise) projects. > > >>> So the new possibilities are for sure great and endless, but i hope > >>> Symfony 2 will have it's own standard "project development pattern", > >>> like symfony 1.x ... > > >>> Can't await end of 2010 ;o) > > >>> Michael -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
