[symfony-users] Re: Yet another Yahoo! website with symfony
This is great, really happy to hear this :) On Oct 2, 9:39 pm, Fabien POTENCIER <[EMAIL PROTECTED] project.com> wrote: > If you're not subscribed to the symfony blog feed, we have a great news > for the community: > > http://www.symfony-project.com/blog/2007/10/02/delicious-preview-buil... > > By the way, consider subscribing to the blog feed as we will have more > exiting announcements in the coming weeks. > > Fabien --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: unexpected sql from criteria...
Jonathan Franks wrote: > my code... > > $c = New Criteria; > > $criterion = $c->getNewCriterion(ItemPeer::PUBLISHED, 1); > > $criterion->addAnd($c->getNewCriterion(ItemPeer::SOLD, 0)); > > $c->add($criterion); > > $c->addOr(ItemPeer::GOANTIQUES, 1); > > $this->items = FeedPeer::doSelectFeed($c, null, 'GoAntiquesItem'); > > > I'm expecting > > . WHERE (holloware_item.PUBLISHED=1 AND holloware_item.SOLD=0) *OR* > holloware_item.GOANTIQUES=1 > > but I'm getting ... > > . WHERE (holloware_item.PUBLISHED=1 AND holloware_item.SOLD=0) *AND* > holloware_item.GOANTIQUES=1 > > Can anyone see my mistake?? > > > > > > > It is not a mistake but how propel works. I also thought that writing code like yours I will get an OR but $c->addOr() is when you want to include a rule about the same database field. By default $c->add() will overwrite the previous rules if the first argument (the table field) is the same, thus $c->addOr will make an OR statement for this field. The same is true for $c->addAnd() but you thought it works correct because by default it uses AND between fields, but the purpose of $c->addAnd is when you define different criteria for the same field and you want them connected with and AND. Also why are you using Criterion object directly? Your code can look like: $c = new Criteria(); $c->add(ItemPeer::PUBLISHED, 1); $c->add($c->getNewCriterion(ItemPeer::SOLD, 0) $c->add(ItemPeer::GOANTIQUES, 1); $this->items = FeedPeer::doSelectFeed($c, null, 'GoAntiquesItem'); The code above will achive the same results. Now, to answer your quest, I faced this problem some time ago but do not remember if I found I work around or found a right way to do it so I hope somebody else can give you the right way to achieve that. Kupo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Accessing external (one more) database
Yes it is definitely possible please see: http://www.symfony-project.com/snippets/snippet/86 and: http://www.symfony-project.com/book/1_0/08-Inside-the-Model-Layer about 3/4's of the way down "Dealing with multiple schemas" It should give you some idea :-) On 04/10/2007, inrila <[EMAIL PROTECTED]> wrote: > > I have successfully configured, installed and working first Symfony > project, with crud/admin functionality. That works pretty awesome for > me, and really does the job of assembling simple enough and fast. > However, now I am getting into troubles. From the code I need to > access external database table, and fetch specific information with > it. But Propel::getConnection() is the connection to the internally > configure application-related database. So, how can I access the > external database, at least even to execute few plain SQL queries? Of > course, I would prefer to build model form the external database > scheme (but it needs to be read-only -- how to do that?) -- but any > solution will be good enough and I appreciate you help! > > I do not want to do simple and dumb PHP code to do the work -- I'd > like to stay within Symfony framework if it's possible. > > Thanks! > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Admin init (but not generation)
inrila wrote: > Hello guys, > > The following question. I know that propel-init-admin works only as > init, but not as generation. It makes very simple and powerful > structure, but that also means that I do not really can change actions > (only by checking them in the cache, and using code from the to base > my changes on). But I also cannot change views (templates for the > actions) and even can't overwrite them. Am I getting this right? If > so, that makes life pretty hard Wink > Can somebody clarify on that? This quite the contrary. This is very flexible. You can overwrite the actions and the templates. To do so, just create a module in your application with the same name as the generated module. In this module, you can override a template by creating a template with the same name as one in the cache and create an actions.class.php that inherits from the auto-generated base class to add or modify methods. Fabien > > Thanks! > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Accessing external (one more) database
I have successfully configured, installed and working first Symfony project, with crud/admin functionality. That works pretty awesome for me, and really does the job of assembling simple enough and fast. However, now I am getting into troubles. From the code I need to access external database table, and fetch specific information with it. But Propel::getConnection() is the connection to the internally configure application-related database. So, how can I access the external database, at least even to execute few plain SQL queries? Of course, I would prefer to build model form the external database scheme (but it needs to be read-only -- how to do that?) -- but any solution will be good enough and I appreciate you help! I do not want to do simple and dumb PHP code to do the work -- I'd like to stay within Symfony framework if it's possible. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Admin init (but not generation)
Hello guys, The following question. I know that propel-init-admin works only as init, but not as generation. It makes very simple and powerful structure, but that also means that I do not really can change actions (only by checking them in the cache, and using code from the to base my changes on). But I also cannot change views (templates for the actions) and even can't overwrite them. Am I getting this right? If so, that makes life pretty hard Wink Can somebody clarify on that? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Unoffical SVN mirror
2007/10/3, Grégoire Hubert <[EMAIL PROTECTED]>: > Should be definitely fixed now. Yes, it runs smoothly now. Congrats ! ++ -- Nicolas Perriaulthttp://www.clever-age.com Clever Age - conseil en architecture technique GSM: +33 6 60 92 08 67 Tél: +33 1 53 34 66 10 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Unoffical SVN mirror
Should be definitely fixed now. -- Grégoire HUBERT Project Manager - Sensio labs http://www.sensiolabs.com/ http://www.symfony-project.com/ Sensio Labs Tél: +33 1 40 99 80 80 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Yet another Yahoo! website with symfony
This is great. I was a little let down when Y! bookmarks was made because I was a delicious user. I've played with the delicious preview and its exciting. I know Yahoo's use of PHP has helped the case for PHP, hopefully the same can be said of symfony. -d On 10/3/07, Phu Son <[EMAIL PROTECTED]> wrote: > > > Congrats Fabien and team! > > > > > -- Dave Dash 612.670.0621 Discover your favorite restaurant: reviewsby.us gtalk: dave.dash --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Unoffical SVN mirror
On 10/3/07, Nicolas Perriault <[EMAIL PROTECTED]> wrote: > 2007/10/3, Grégoire Hubert <[EMAIL PROTECTED]>: > > > Please let us know if you still experience troubles with the official > > subversion repository. > > This evening, updating from the official repo is real pain. No error > message, no timeout but just a neverending running command. Thank for posting. I have spotted the same issue. As it is a network related issue it might take a bit time to be back to normal. I will keep you posted. -- Grégoire HUBERT Project Manager - Sensio labs http://www.sensiolabs.com/ http://www.symfony-project.com/ Sensio Labs Tél: +33 1 40 99 80 80 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Unoffical SVN mirror
Nicolas Perriault wrote: > 2007/10/3, Grégoire Hubert <[EMAIL PROTECTED]>: > >> Please let us know if you still experience troubles with the official >> subversion repository. > > This evening, updating from the official repo is real pain. No error > message, no timeout but just a neverending running command. > > BTW, svn.symfony-project.org shows me a blank page too. > > Let me know if you need furher informations (isp, client, config, etc.) > > ++ > The svn is still at .COM, not .ORG -- Fabien Potencier Sensio CEO - symfony lead developer http://www.sensiolabs.com/ http://www.symfony-project.com/ Sensio Labs Tél: +33 1 40 99 80 80 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Forums Downloading
Myke Hines wrote: > I can't seem to download any attachments in the forum. > > http://www.symfony-project.com/forum/index.php/m/35118/?srch=extjs#msg_35118 > > Can this be fixed? > Looks like fudforum hardcodes absolute pathes to the files in the database. It's fixed now. -- Fabien Potencier Sensio CEO - symfony lead developer http://www.sensiolabs.com/ http://www.symfony-project.com/ Sensio Labs Tél: +33 1 40 99 80 80 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Unoffical SVN mirror
2007/10/3, Grégoire Hubert <[EMAIL PROTECTED]>: > Please let us know if you still experience troubles with the official > subversion repository. This evening, updating from the official repo is real pain. No error message, no timeout but just a neverending running command. BTW, svn.symfony-project.org shows me a blank page too. Let me know if you need furher informations (isp, client, config, etc.) ++ -- Nicolas Perriaulthttp://www.clever-age.com Clever Age - conseil en architecture technique GSM: +33 6 60 92 08 67 Tél: +33 1 53 34 66 10 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Forums Downloading
I can't seem to download any attachments in the forum. http://www.symfony-project.com/forum/index.php/m/35118/?srch=extjs#msg_35118 Can this be fixed? -- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- Myke Hines SurfShot Media, Inc. & webHines Inc. [EMAIL PROTECTED] (858) 784-1597 Cell http://www.surfshot.com SurfShot.com - Surf Reports, Digital Magazine & more webHines - Professional Web Development --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Same session for All subdomains
Nope! I had to inherit from sfSessionStorage to make it work.. Also, I just couldn't get it to work with domain limitations in that Explorer seems to send the cookies of the main domain to all subdomains. So I had to use a subdomain-based session name Here is the code bit, at the end it came out pretty simple, but I used hours trying to get it to work with domain limiting the cookies class mySessionStorage extends sfSessionStorage { /** * This override sets the exact (sub)domain for session cookie and then initializes this Storage instance. * * @param sfContext A sfContext instance * @param array An associative array of initialization parameters * * @return boolean true, if initialization completes successfully, otherwise false * * @throws sfInitializationException If an error occurs while initializing this Storage */ public function initialize($context, $parameters = null) { //$parameters['session_cookie_domain'] = $_SERVER['SERVER_NAME']; // This doesn't work $parameters['session_name'] = 'symfony_'.$_SERVER['SERVER_NAME']; // This works // initialize parent parent::initialize($context, $parameters); } } Ian P. Christian wrote: > Haris Zukanovic' wrote: > >> I know, but I want to have different sessions for each subdomain! >> I have more subdomains poining at the same application. >> >> > > I imagine you can probably change this on a per domain basis using a Filter. > > > > -- Haris Zukanovic CEO Software development and research International Business Development, SOFTING ltd. office +387 36 318 339 GSM +387 61 839 069 http://www.eu-softing.com CONFIDENTIALITY NOTICE This e-mail and any attached files, sent by a company e - mail system, contains company confidential and/or privileged information and is intended only for the person or entity to which it is addressed and only for the purposes therein set forth. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure, distribution or other use of, or taking of any action in reliance upon, the material in this e-mail by persons or entities other than the intended recipient is strictly forbidden. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: customize sfGuardDoctrine
As far as I know the only way to add extra information about a user is to create an extra table. Pretty good instructions on the plugin wiki http://trac.symfony-project.com/wiki/sfGuardPlugin#CustomizethesfAuthUsermodel John On Oct 3, 2:49 pm, Bjorn Wijers <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to expand the sfGuardDoctrine datamodel with an email > column. How can I achieve this without changing the original schema? I > tried copying the schema into my app's config/doctrine/schema.yml, but > it seems the plugin is overriding this one. > > Any help much appreciated! > > grtz > BjornW --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Unoffical SVN mirror
Hi folks ! After hours of painful testing, intense debugging and mailing lists crawling, it sounds like we have fixed the svn issue. Please let us know if you still experience troubles with the official subversion repository. Again, thank you for your patience, and thank you for all who helped with giving time and ressources. -- Grégoire HUBERT Project Manager - Sensio labs http://www.sensiolabs.com/ http://www.symfony-project.com/ Sensio Labs Tél: +33 1 40 99 80 80 On 10/1/07, Grégoire Hubert <[EMAIL PROTECTED]> wrote: > Hi ! > > It seems the webserver hangs on SVN request. It did occur hours after > the migration last friday. > > The issue is still here, we are working on it. This might be fixed in > the hours to come. We will let you know as soon as it is repaired. > > Grégoire. > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: phing package
Phing is packaged with symfony (svn and PEAR package), so you don't need to install it. Even if you install Phing, symfony will use the bundled one. -- Fabien Potencier Sensio CEO - symfony lead developer http://www.sensiolabs.com/ http://www.symfony-project.com/ Sensio Labs Tél: +33 1 40 99 80 80 Stefan Koopmanschap wrote: > When you install symfony through PEAR, I know for sure you don't have > to do that anymore. I haven't used any other ways of installing > symfony, but maybe anyone else here might? > > Stefan > > On Oct 3, 2:48 am, Geoff <[EMAIL PROTECTED]> wrote: >> Did we still need to install the phing package for new symfony >> installations ? > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] unexpected sql from criteria...
my code... $c = New Criteria; $criterion = $c->getNewCriterion(ItemPeer::PUBLISHED, 1); $criterion->addAnd($c->getNewCriterion(ItemPeer::SOLD, 0)); $c->add($criterion); $c->addOr(ItemPeer::GOANTIQUES, 1); $this->items = FeedPeer::doSelectFeed($c, null, 'GoAntiquesItem'); I'm expecting . WHERE (holloware_item.PUBLISHED=1 AND holloware_item.SOLD=0) *OR* holloware_item.GOANTIQUES=1 but I'm getting ... . WHERE (holloware_item.PUBLISHED=1 AND holloware_item.SOLD=0) *AND* holloware_item.GOANTIQUES=1 Can anyone see my mistake?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] customize sfGuardDoctrine
Hi, I would like to expand the sfGuardDoctrine datamodel with an email column. How can I achieve this without changing the original schema? I tried copying the schema into my app's config/doctrine/schema.yml, but it seems the plugin is overriding this one. Any help much appreciated! grtz BjornW --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Symfony workflow
What your looking for is a methodology for managing a project. There are many many project methodologies out there, the key is picking one that has some or all of the elements you need for your project. Or creating your own hybrid methodology by selecting the good bits out of various others. There are these days specific web development project methodologies that you can look at, but most of the long standing methodologies can and have been adapted to web development projects - if you search around the subject you'll find case studies of how this has been done. You might want to have a look at http://www.sitepoint.com/article/successful-development it's old, but has a lot of relevant ideas there. It mentions the RUP and FDD methodologies. Googling will find more think about typing "web development methodology" into Google without the quotes. Methodologies are big areas to read into but in my opinion it is required reading for anyone who wants to take themselves seriously in the long run. Check out: http://en.wikipedia.org/wiki/Software_development_process http://en.wikipedia.org/wiki/Agile_software_development http://en.wikipedia.org/wiki/IBM_Rational_Unified_Process http://en.wikipedia.org/wiki/Iterative_and_incremental_development http://www.wisdm.net/index.htm - This site is down as I type but it covers the Web Information Systems Development Methodology - There's not a lot of this covered on the web but it is covered in "Information Systems Development: Methodologies, Techniques and Tools", 3rd ed. by Avison & Fitzgerald. Also good I think is the Web Development Business Kit by Brendan Sinclair available at Sitepoint now in its second edition: http://www.sitepoint.com/kits/freelance2/ Sitepoint is also just brilliant all over, so make sure you read a LOT of its articles! Have fun, Steve Daniels On 02/10/2007, Ámon Tamás <[EMAIL PROTECTED]> wrote: > > Hello! > > Maybe this is not a technical question, but very important for me. > > What is the workflow for a Symfony (or a web) project? From the first > meeting with a customer to the delivery. Is there any documentation > about it? How do uoy make it? > > Thank you in anticipation. > > -- > Ámon Tamás > http://linkfelho.amon.hu > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: phing package
When you install symfony through PEAR, I know for sure you don't have to do that anymore. I haven't used any other ways of installing symfony, but maybe anyone else here might? Stefan On Oct 3, 2:48 am, Geoff <[EMAIL PROTECTED]> wrote: > Did we still need to install the phing package for new symfony > installations ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Yet another Yahoo! website with symfony
Congrats Fabien and team! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---