[symfony-users] Re: Oddly enough, sfPager isn't working, though I copied the code over from a site that was working

2009-04-23 Thread Lawrence Krubner
On Apr 23, 7:56 am, Eno wrote: > On Thu, 23 Apr 2009, LawrenceKrubnerwrote: > > The code has worked before, in other contexts, so I'm unclear why it > > is not working now. > > Are you sure there are > 30 items? > > You probably should have some code that doesn't show the next link if > you're

[symfony-users] Re: sfDoctrinePlugin trunk missing

2009-04-23 Thread Jonathan
Ok, tnx. On Apr 23, 4:12 pm, Jonathan Wage wrote: > Doctrine is bundled with symfony 1.2 > > - Jon > > On Thu, Apr 23, 2009 at 5:09 PM, Jonathan wrote: > > > I just went to grab the latest sfDoctrinePlugin from the svn trunk > > (for sf 1.2) and noticed that the trunk doesn't exist. What's goin

[symfony-users] Cache system causing White Screen

2009-04-23 Thread Nei Rauni Santos
Guys, I report this problem here http://forum.symfony-project.org/index.php/m/77323/ If you can help.. Thanks.. Nei --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, sen

[symfony-users] Re: sfDoctrinePlugin trunk missing

2009-04-23 Thread Jonathan Wage
Doctrine is bundled with symfony 1.2 - Jon On Thu, Apr 23, 2009 at 5:09 PM, Jonathan wrote: > > I just went to grab the latest sfDoctrinePlugin from the svn trunk > (for sf 1.2) and noticed that the trunk doesn't exist. What's going > on? > > jonathan > > > > -- Jonathan H. Wage Open Source

[symfony-users] sfDoctrinePlugin trunk missing

2009-04-23 Thread Jonathan
I just went to grab the latest sfDoctrinePlugin from the svn trunk (for sf 1.2) and noticed that the trunk doesn't exist. What's going on? jonathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" gro

[symfony-users] [OT] NZ Development company looking for a Symfony developer

2009-04-23 Thread Craig Boxall
Hi, apologies in advance for everybody who isnt in New Zealand! Pixel Fusion is looking for a full time web developer who is interested in joining a fun and energetic team. We’re looking for a full time PHP developer to join our growing team. Our development environment is predominantly LAMP

[symfony-users] Broken from updating to 1.2.6-DEV

2009-04-23 Thread Sid Bachtiar
Hi, This project was working fine but after update it now unable to upload files and coming up with this form errors: Unexpected extra form field named "name". Unexpected extra form field named "type". Unexpected extra form field named "tmp_name". Unexpected extra form field named "error". Unexp

[symfony-users] Re: set timeout to two weeks

2009-04-23 Thread Christian Weyand
Hi, there's a value in your php.ini which handles clearing outdated sessions. The configs in your settings.yml can't overwrite this directives.. If i remember right, you'll need to increade the session.gc_maxlifetime.. don't have a changed config at home atm.. Greetings, Christian ckemmler s

[symfony-users] set timeout to two weeks

2009-04-23 Thread ckemmler
I have tried several several strategies to set the timeout of a session in my application to 2 weeks; all have failed so far. The current one consists of: 1) setting the timeout to 0 in my application's settings, under all: all: .actions: [...] .settings: [...] timeout:0 2) extendin

[symfony-users] Re: Plesk nightmares! :(

2009-04-23 Thread Sid Bachtiar
BTW what kind of symptoms were you having and how did you fix it? On Fri, Apr 24, 2009 at 9:36 AM, Sid Bachtiar wrote: > It seems like it ... the PHP version is 5.25 and according to the > forum the fix is in 5.26 > > On Fri, Apr 24, 2009 at 2:29 AM, Pablo Godel wrote: >> >> Hmmm, that looks li

[symfony-users] Re: Plesk nightmares! :(

2009-04-23 Thread Sid Bachtiar
It seems like it ... the PHP version is 5.25 and according to the forum the fix is in 5.26 On Fri, Apr 24, 2009 at 2:29 AM, Pablo Godel wrote: > > Hmmm, that looks like a PHP bug we had a few years ago. What version > of PHP are they running? > > Pablo > > On Thu, Apr 23, 2009 at 3:36 AM, Sid Ba

[symfony-users] Re: edit data of localized schema in backend

2009-04-23 Thread lowshoe
i experimented a bit in the meantime and found out that the problem here is my "index:unique" inside the keywords_i18n-schema. if i remove the unique index from the schema declaration, i can edit existing keyword entries in the backend without the mentioned validation error. this is a workaround a

[symfony-users] Re: user->getFlash() when the flash contain html tag

2009-04-23 Thread Ahmed
Thank you it work fine :) On 23 avr, 11:39, Dejan Spasic wrote: > try this > > $sf_data->getRaw('sf_user')->getFlash('msg'); > > or this > > $sf_user->getFlash('msg', ESC_RAW); > > http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chap... > > On Apr 22, 3:09 pm, FÁSI Gábor wrote:

[symfony-users] Re: csrf detection and cache

2009-04-23 Thread Frank He
The time delayed not by other parts on the page, but the form, that is why I want to cache it. I searched web for not csrf protecting the form, but no go. Any way? On Thu, Apr 23, 2009 at 1:11 PM, Alexandru-Emil Lupu wrote: > hi! > just try to make a slot(or a component) that contain the form its

[symfony-users] Re: csrf detection and cache

2009-04-23 Thread Alexandru-Emil Lupu
hi! just try to make a slot(or a component) that contain the form itself. You might cache the page, but keep your form uncached. this might help you get a view ... http://www.symfony-project.org/jobeet/1_2/Doctrine/en/22 http://www.symfony-project.org/book/1_2/12-Caching alecs On Thu, Apr 23, 2

[symfony-users] Re: Problems with doctrine:data-load

2009-04-23 Thread Gary Rojas
Thanks to Andrei Dziahel and Eno for your answers. I put this configuration in conf/doctrine/schema.yml # connection: doctrine options: type: INNODB collate: utf8_spanish_ci charset: utf8 and the sql generated for all tables have that op

[symfony-users] csrf detection and cache

2009-04-23 Thread xhe
I am caching a page which has a form, but because the form is csrf protected, whenever the form is read from cache, the "csrf attach is detected" error is thrown. So any idea to catch a page which as csrf protection enabled? Or if not, how can I disable csrf protection for that page? Thanks for yo

[symfony-users] symfony pages look bigger from local connection?

2009-04-23 Thread Steve the Canuck
Hi, I've set the content width of my pages to 800px wide in my symfony app. I have noticed that when I view the pages in Firefox, using a localhost connection the content width seems to be more narrow than in other browsers (IE, Chrome, Safari). However, when I load the page by accessing the pa

[symfony-users] Re: sfValidatorEmail fails

2009-04-23 Thread Eric
Thank you. Maybe I will find some spare time to write a better emailValidator plugin but you solution is a good start. Eric On Apr 23, 12:02 am, Bernhard Schussek wrote: > Hi Eric, > > I know that problem too well. Unfortunately the Doctrine model and the > forms framework use two different val

[symfony-users] Re: Plesk nightmares! :(

2009-04-23 Thread Pablo Godel
Hmmm, that looks like a PHP bug we had a few years ago. What version of PHP are they running? Pablo On Thu, Apr 23, 2009 at 3:36 AM, Sid Bachtiar wrote: > > It is working once every 3-4 times ... really weird ... any idea? > > On Thu, Apr 23, 2009 at 7:01 PM, Sid Bachtiar wrote: >> Hi, >> >> I

[symfony-users] Re: sfDoctrineGuardPlugin login error

2009-04-23 Thread Mohd Shakir bin Zakaria
Thanks Eno for the hint. I've checked my apache's access log, and got this when using an invalid user: 127.0.1.1:8082 127.0.0.1 - - [23/Apr/2009:20:14:10 +0800] "POST /administration_dev.php/login HTTP/1.1" 200 10381 "http://127.0.0.1:8082/administration_dev.php/login"; "Mozilla/5.0 (X11; U; Linu

[symfony-users] Re: Problem with pagination in admin in sf1.0

2009-04-23 Thread Adam Frame
Thankyou very much Alecs. This appears to have worked perfectly. Adam Alexandru-Emil Lupu wrote: Well preety easy. try this :    // IssuePeer.php    public static function selectAllFromCulture($c)    {    $culture = sfContext::getInstance()->getUser()->getCulture();  

[symfony-users] Re: Problem with pagination in admin in sf1.0

2009-04-23 Thread Alexandru-Emil Lupu
Well preety easy. try this : // IssuePeer.php public static function selectAllFromCulture($c) { $culture = sfContext::getInstance()->getUser()->getCulture(); $criteria = clone $c; $criteria->add(self::CULTURE,$culture); return self::doSelectJoinAll($criteria);

[symfony-users] Re: Problem with pagination in admin in sf1.0

2009-04-23 Thread Eno
On Thu, 23 Apr 2009, Adam Frame wrote: > Looking in the cache (issues/actions.class.php .. executeList()) the Pager is > being > prepared correctly (I think). Here is what it shows ..: > >    // pager >    $this->pager = new sfPropelPager('Issue', 5); >    $c = new Criteria(); >    $this->addSo

[symfony-users] Re: sfDoctrineGuardPlugin login error

2009-04-23 Thread Eno
On Thu, 23 Apr 2009, Mohd Shakir bin Zakaria wrote: > I'm using Symfony 1.2 and sfDoctrineGuardPlugin 3.0 and been getting > the following error when trying to log in using a valid user: > > > 500 | Internal Server Error | Doctrine_Record_Exception Look in your symfony or Apache error logs.

[symfony-users] Re: Oddly enough, sfPager isn't working, though I copied the code over from a site that was working

2009-04-23 Thread Eno
On Thu, 23 Apr 2009, Lawrence Krubner wrote: > The code has worked before, in other contexts, so I'm unclear why it > is not working now. Are you sure there are > 30 items? You probably should have some code that doesn't show the next link if you're on the last page OR there are less than 30 i

[symfony-users] Re: Problems with doctrine:data-load

2009-04-23 Thread Eno
On Wed, 22 Apr 2009, Gary Rojas wrote: > The first three records are quoted but it behaves like quotes no > exists because the text is trunked how i say before. Is it possible that PHP or your database doesn't have support for your character set? -- --~--~-~--~~~-

[symfony-users] Problem with pagination in admin in sf1.0

2009-04-23 Thread Adam Frame
Good morning fine people :) I have a very strange problem to do with the Admin Generator on sf1.0.20/Propel. I use a custom peer_method and a custom peer_count_method in generator.yml. The custom peer_method returns a Propel object based on doSelectJoinAll. The custom peer_count_method

[symfony-users] sfDoctrineGuardPlugin login error

2009-04-23 Thread Mohd Shakir bin Zakaria
Hi guys.. I'm using Symfony 1.2 and sfDoctrineGuardPlugin 3.0 and been getting the following error when trying to log in using a valid user: 500 | Internal Server Error | Doctrine_Record_Exception Unknown method sfGuardUser::checkPassword I will still get the following error if I use an in

[symfony-users] Combining criterions

2009-04-23 Thread Daniel
Hi! Building a light weight search engine for books. I've a search field for searchterms. The problem is that the searchterms need to be splitted into words and every word has to be looked for in combination with the all the other words. I've a solution to it, see code below. I now wonders if

[symfony-users] Re: user->getFlash() when the flash contain html tag

2009-04-23 Thread Dejan Spasic
try this $sf_data->getRaw('sf_user')->getFlash('msg'); or this $sf_user->getFlash('msg', ESC_RAW); http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_output_escaping On Apr 22, 3:09 pm, FÁSI Gábor wrote: > The problem is caused by the automatic escaping of any data p

[symfony-users] Re: Propel question: how to get AND instead of OR

2009-04-23 Thread Garakkio
This can be very helpful in such situations: Propel Criteria Builder http://propel.jondh.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-user

[symfony-users] Re: Propel question: how to get AND instead of OR

2009-04-23 Thread Gareth McCumskey
I thought I would just point out. $c->add(WeblogPeer::CATEGORY, "general", Criteria::NOT_EQUAL); $c->add(WeblogPeer::CATEGORY, "featured", Criteria::NOT_EQUAL); Those statements do not create an OR or an AND. In fact what happens is that the second one over writes the first because they both

[symfony-users] Re: Propel question: how to get AND instead of OR

2009-04-23 Thread naholyr
It's important to know how Criterion works, but in this particular case you'd better simply use IN operator : $c = new Criteria(); $c->add(WeblogPeer::CATEGORY, array("general", "featured"), Criteria::IN); $c->add(WeblogPeer::ACTIVE, "0", Criteria::NOT_EQUAL); $c->addDescendingOr

[symfony-users] Oddly enough, sfPager isn't working, though I copied the code over from a site that was working

2009-04-23 Thread Lawrence Krubner
Hmm. Odd. Go here and scroll to the bottom of the page: http://lawrence.sds5.com/esociety/web/ You'll see these links, created by sfPager: « < 1 - 2 > » But click on the 2, and it doesn't work. You're still on the front page. Most of my code is copy-n-paste of the code snippets on the Symfon

[symfony-users] Re: Plesk nightmares! :(

2009-04-23 Thread Sid Bachtiar
It is working once every 3-4 times ... really weird ... any idea? On Thu, Apr 23, 2009 at 7:01 PM, Sid Bachtiar wrote: > Hi, > > I'm trying to install a frozen project to Plesk controlled server, kept > getting: > > PHP Fatal error: sfPropelDatabase::require_once() [ href='function.require'>fun

[symfony-users] Re: Propel question: how to get AND instead of OR

2009-04-23 Thread Lawrence Krubner
Thanks much for this. I wish Criteria/Propel was better documented. On Apr 22, 11:40 pm, Dheeraj Kumar Aggarwal wrote: > hi >    i think this should work > >    $this->howManyToPage = 6; >    $c = new Criteria(); >    $criterion = $c->getNewCriterion(WeblogPeer::CATEGORY, 'general', > Criteria:

[symfony-users] Re: Propel question: how to get AND instead of OR

2009-04-23 Thread cokker
Here: http://propel.phpdb.org/docs/user_guide/chapters/FindingObjects.html#FindingRecods.Criteria greets Sven Lawrence Krubner schrieb: > getNewCriterion() ??? > > Where is this documented? > > > On Apr 22, 11:40 pm, Dheeraj Kumar Aggarwal > wrote: >> hi >>i think this should work >> >>

[symfony-users] Re: Propel question: how to get AND instead of OR

2009-04-23 Thread Lawrence Krubner
getNewCriterion() ??? Where is this documented? On Apr 22, 11:40 pm, Dheeraj Kumar Aggarwal wrote: > hi >    i think this should work > >    $this->howManyToPage = 6; >    $c = new Criteria(); >    $criterion = $c->getNewCriterion(WeblogPeer::CATEGORY, 'general', > Criteria::NOT_EQUAL); >    $

[symfony-users] Plesk nightmares! :(

2009-04-23 Thread Sid Bachtiar
Hi, I'm trying to install a frozen project to Plesk controlled server, kept getting: PHP Fatal error: sfPropelDatabase::require_once() [function.require]: Failed opening required 'creole/Creole.php' (include_path='.:') in /var/www/vhosts/myproject.org/httpdocs/myproject/lib/symfony/addon/propel/