Re: [symfony-users] Re: caching problem in firefox

2010-07-22 Thread Gustavo Adrian
Hi, Did you try to disable local caching on the action with headers "Cache-control" and "Pragma" to see what happens? $this->getResponse()->setHttpHeader("Cache-Control", "no-cache"); $this->getResponse()->setHttpHeader("Pragma", "no-cache"); $this->getResponse()->setHttpHeader("Expires", 0); O

Re: [symfony-users] How to style embedded forms

2010-07-22 Thread Gustavo Adrian
I managed to do whay you mention by changing some templates of the module autogenerated for the backend. In _form_fieldset.php you have the loop that iterates over the fields. You could then check the name of the field and, if it's the name of the embedded form, you could then surround it by a "div

[symfony-users] direct sql in Doctrine_Migration class

2010-07-22 Thread axel at
hello, I would need an example how to use direct sql statements within the up() function of an doctrine migration class (extends Doctrine_Migration_Base) thx -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

Re: [symfony-users] upgrade sfDoctrineGuardPlugin from 4.0.1 to 4.0.2

2010-07-22 Thread Sela Yair
thanks. i asked as couldn't find the new addition in the doc. also i just tried to upgrade using symfony plugin:upgrade sfDoctrineGuardPlugin and failed with the error Plugin "sfDoctrineGuardPlugin" installation failed: No valid packages found should I do svn installation instead? On 22 July 2010

[symfony-users] Re: development cycle problems

2010-07-22 Thread Dennis
I got it working, by erasing the contents of the database, not dropping it. Then, I somehow had some dangling code lines that creeped in, and then it didn't work. Many many hours later, after reverting to the old working version, I then came to the conclusion about the extra code line. Summary,

[symfony-users] Re: PHPUnit with symfony1.4 and Hudson fails with Propel PDO

2010-07-22 Thread Dennis
I had a version that worked before,2 days ago. I went back to it and it still worked, thank goodness. I kept the new, not working version. I slowly integrated the old into the new and the new started working. I could not tell which line did it, dang! I went back and forth between versions as soon a

Re: [symfony-users] Re: Unit tests fail with 'dubious' status

2010-07-22 Thread Gábor Fási
http://www.symfony-project.org/jobeet/1_4/Doctrine/en/08#chapter_08_doctrine_unit_tests On Thu, Jul 22, 2010 at 18:36, Lene Preuss wrote: > Yes, as I described above, this fails with a > Doctrine_Connection_Exception with message 'There is no open > connection': > > php ./test/unit/StoreTest.php

[symfony-users] Re: Unit tests fail with 'dubious' status

2010-07-22 Thread Lene Preuss
Yes, as I described above, this fails with a Doctrine_Connection_Exception with message 'There is no open connection': php ./test/unit/StoreTest.php PHP Fatal error: Uncaught exception 'Doctrine_Connection_Exception' with message 'There is no open connection' in lib/vendor/symfony/lib/ plugins/sf

Re: [symfony-users] upgrade sfDoctrineGuardPlugin from 4.0.1 to 4.0.2

2010-07-22 Thread Jonathan Wage
We added the forgot password, register, etc. functionality. Everything else stayed the way it was. - Jon On Thu, Jul 22, 2010 at 3:40 AM, Sela Yair wrote: > what actually did you change in the 5.0.0 release? > > On 18 July 2010 19:37, fizyk wrote: >> >> Hello, >> I'm trying to upgrade sfDoctrin

[symfony-users] Re: sfFacebookConnectPlugin cookie issues?

2010-07-22 Thread jostster
What was your solution to getting $sf_user->getCurrentFacebookUid() to work? On Jul 22, 1:03 am, Sela Yair wrote: > not really, I just managed to fix the problem I had with this plugin to use > facebook connect and using $sf_user->getCurrentFacebookUid() return to me > the real user id in faceboo

[symfony-users] Re: Unit tests fail with 'dubious' status

2010-07-22 Thread Florian
Hi! you normally can launch a test by doing : php test/unit/StoreTableTest.php By this way, you have the full output of your test script, even exceptions (dubious means script didn't ended as attended ( ie: fatal errors, uncaught exceptions, die(), ...). On 22 juil, 17:04, Lene Preuss wrote: >

Re: [symfony-users] Form date field

2010-07-22 Thread Michał Piotrowski
Hi, 2010/7/22 wueb : > Hi, > > All my date fields on the forms only have the years from 2005-2015? > anynone know where can i change the interval? $years = range(1900, 2015); $years_list = array_combine($years, $years); $this->widgetSchema['date'] = new sfWidgetFormDate(array(

[symfony-users] Form date field

2010-07-22 Thread wueb
Hi, All my date fields on the forms only have the years from 2005-2015? anynone know where can i change the interval? -- 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

[symfony-users] Re: Unit tests fail with 'dubious' status

2010-07-22 Thread Lene Preuss
Well no, I'm using lime, I just wrote a wrapper that makes the tests look more like PHPUnit, indeed. ;-) On Jul 22, 4:20 pm, Dennis wrote: > Whoops! I was directed by google search to the middle of your article, > and it LOOKED like you were using PHPUnit. My apologies. > > On Jul 22, 7:18 am, De

[symfony-users] Re: caching problem in firefox

2010-07-22 Thread Lea Haensenberger
I found out that when disabling the memory cache in firefox or when setting check.doc_frequency to 1, i.e. request page on every load, everything works fine. doc_frequency is usually set to 3, i.e. check validity of the page by looking at the modified date and reload if necessary, and the modified

Re: [symfony-users] Symfony2 - routing with subdomains

2010-07-22 Thread Brandon Turner
On 7/22/10 7:39 AM, gordonslondon wrote: I just see that symfony2 router doesn't use the host part of the uri. exemple, both will be routed the same : www.mysite.com/myaction blog.mysite.com/myaction is this possible actually to route subdomains in Sf2 ? if no is there a solution now ? T

[symfony-users] Re: Unit tests fail with 'dubious' status

2010-07-22 Thread Dennis
Whoops! I was directed by google search to the middle of your article, and it LOOKED like you were using PHPUnit. My apologies. On Jul 22, 7:18 am, Dennis wrote: > I am hving great difficultities with PHPUnit and Symofny myself. If > you are doing any changes to the database out of band, you can

[symfony-users] Re: Unit tests fail with 'dubious' status

2010-07-22 Thread Dennis
I am hving great difficultities with PHPUnit and Symofny myself. If you are doing any changes to the database out of band, you can forget doing all your tests in one run. My next approach is to run my tests (each with 15 assertions, in separate files. I will run them using a bash script and redirec

[symfony-users] How to style embedded forms

2010-07-22 Thread Samuel Morhaim
Can someone point me on how to style embedded forms? I am able to embed a form, but now it looks completely as part of my main form. In reality I want them to look like 2 sections, with one submit, but i want to style the bottom part a bit differently.. being on a separate box than the main form

Re: [symfony-users] new symfony 2 project

2010-07-22 Thread Gábor Fási
Symfony2 is still under heavy development, and is not yet ready to be used in production. Use symfony 1.4. On Thu, Jul 22, 2010 at 14:08, birko wrote: > Hi there. In our company we are creating new project . we use by now > the symfony 1.x framework but the new project we would like to build > on

[symfony-users] new symfony 2 project

2010-07-22 Thread birko
Hi there. In our company we are creating new project . we use by now the symfony 1.x framework but the new project we would like to build on symfony 2. I checkouted the svn version of symfony 2. In the official symfony 2 page there is only the sandbox tutorial. Im looking for something like docume

[symfony-users] Re: Admin generator edit/delete action link error

2010-07-22 Thread Tom Ptacnik
One appliacation in your project can use index.php (probably frontend) the others must use another frontend controller which isn't automaticly executed. Solutions how to add /admin/ or /backend/ into your url are several. Try to look there, it might help you. http://groups.google.com/group/symfony

[symfony-users] Re: backend: forward to another module

2010-07-22 Thread Tom Ptacnik
I think it's because when you want to edit something, you must say what This edit action in mod_B don't know which object it should edit (you didn't send any id, or object) On 20 čnc, 16:10, Martin Henits wrote: > in one of my backend modules (mod_A), I need to put a link to the edit > pag

[symfony-users] defining primary key type as guid/uuid

2010-07-22 Thread gopi
We are using symfony 1.4 and want to set the type of the primary key in some of our tables as GUID/UUID instead of the normal integer with autoincrement. This will help in having random keys instead of easily guessable autoincrement integers. Is this possible in symfony 1.4? We checked the symf

[symfony-users] Symfony2 - routing with subdomains

2010-07-22 Thread gordonslondon
Hi, I just see that symfony2 router doesn't use the host part of the uri. exemple, both will be routed the same : www.mysite.com/myaction blog.mysite.com/myaction is this possible actually to route subdomains in Sf2 ? if no is there a solution now ? many thanks -- If you want to report a vuln

[symfony-users] Re: caching problem in firefox

2010-07-22 Thread Lea Haensenberger
Does nobody know that problem? I'm a bit lost and I'll have to turn off caching if we can't solve the problem. Does anyone have any idea what could be the reason for that behaviour? Lea On Jul 16, 3:52 pm, pghoratiu wrote: > Do you have this behavior also with the development controller > (front

Re: [symfony-users] upgrade sfDoctrineGuardPlugin from 4.0.1 to 4.0.2

2010-07-22 Thread Sela Yair
what actually did you change in the 5.0.0 release? On 18 July 2010 19:37, fizyk wrote: > Hello, > I'm trying to upgrade sfDoctrineGuardPlugin to the new version, and at > first found that surprised that although in changelog said there was > only change (fix) to the Remember Me? key generator, I

Re: [symfony-users] sfFacebookConnectPlugin cookie issues?

2010-07-22 Thread Sela Yair
not really, I just managed to fix the problem I had with this plugin to use facebook connect and using $sf_user->getCurrentFacebookUid() return to me the real user id in facebook. I used firebug to actually read the response I get from facebook server, have you tried that? On 21 July 2010 18:07, j

[symfony-users] Re: Unit tests fail with 'dubious' status

2010-07-22 Thread Lene Preuss
Hi there, any ideas, anybody? I'm kind of stuck here... Thanks, Lene On Jul 15, 6:55 pm, Lene Preuss wrote: > Hi list, I'm a newb to symfony, so forgive me if I'm asking a dumb > question. > > I jumped into symfony writing unit tests. My tests run fine when I run > them as single test, e.g. > >

[symfony-users] sfFacebookConnectPlugin cookie issues?

2010-07-22 Thread jostster
It seems that facebook has changed their cookies around. Calling $this->getUser()->getCurrentFacebookUid() would return their user id but now it just returns null. Same for $sf_user- >getCurrentFacebookUid(). $sf_user->isAuthenticated shows the user is authed but it will not return their faceboo

[symfony-users] DATA UNION

2010-07-22 Thread jan
Is it possible to make a data union in symfony? I have query 1 and query 2 how can I make a data union? QUERY 1 $c = new Criteria(); $start_date= $this->date.' 12:00:00 AM '; $end_date= $this->endDate.' 11:59:59 PM'; $userid = $this->getLoggedInUser()->getID();