[symfony-users] BUG: sfYaml can't parse collections

2009-08-06 Thread danielwinter
Why is it that sfYaml in Symfony 1.0 can parse the YAML below but the sfYaml class from components/1.2 can't do it?! Recipients: - title: 'Mr' firstname: 'Peter' lastname: 'Pan' - title: 'Mr' firstname: 'John' lastname: 'Doe' Arg!!! :) --~--~-~--~~---

[symfony-users] Re: Timeout loading yaml files > 1MB

2009-07-30 Thread danielwinter
I am using Symfony 1.0 in this project and the sfYaml::load() function definitely uses spyc/syck. But perhaps that is a clue - and I should use sfYaml from symfony 1.2 and see if sfYamlParser is faster. thanks Fabian! dan --~--~-~--~~~---~--~~ You received this

[symfony-users] Re: Timeout loading yaml files > 1MB

2009-07-30 Thread danielwinter
Good advice for sure, thank you. Moving data queries of of loops is something I do often, sometimes resulting in using a LOAD DATA INFILE and bypassing the ORM altogether. Unfortunately, it seems that simply calling sfYaml::load() is consuming huge amounts of time and RAM, but I will have to diag

[symfony-users] Timeout loading yaml files > 1MB

2009-07-28 Thread danielwinter
Has anyone had any success loading yaml files > 1MB? I have a script that loads yaml files using sfYaml and the load() method takes several minutes to load files > 1MB. Is there a faster way to handle large files? Anyone? :) --~--~-~--~~~---~--~~ You received this m

[symfony-users] Re: Using decimal-values throws an routing error

2009-06-01 Thread danielwinter
Try commenting this line out in your .htaccess file: RewriteRule .* - [L] On May 31, 11:12 pm, Tomasz Ignatiuk wrote: > Symfony should escape those dots and commas. How do you create link? > > On 27 Maj, 16:03, halla wrote: > > > Hi, > > > I'm trying to transport geo-coordinates as part of an

[symfony-users] Re: has anyone used link helper to generate absolute URL in command line task?

2009-03-12 Thread danielwinter
Save your domain urls in app.yml - one for each environment On Mar 12, 3:58 pm, xhe wrote: > I want to send email in task, but when I used link_to > ('text','@url','absolute=true'), the responded url is always like this > onehttp://.\symfony/action/module... > > I think this is because it is run

[symfony-users] Re: Sending Email from CLI task in Symfony 1.2

2009-03-11 Thread danielwinter
ass UserPeer not found blabla... > > So how can we use propel class in task? > > On Mar 4, 6:32 pm, danielwinter wrote: > > > Thanks James, here's my working code from the task's execute() method > > in case it helps anyone else: > > >   $configuration =

[symfony-users] Re: Sending Email from CLI task in Symfony 1.2

2009-03-04 Thread danielwinter
ions['connection'] ? > $options['connection'] : ''); > >                 // you need a context to load the partial helper >                 $context = sfContext::createInstance($this->configuration); >                 sfLoader::loadHelpers('Partial');

[symfony-users] Sending Email from CLI task in Symfony 1.2

2009-03-04 Thread danielwinter
Wanting to send emails using templates from a CLI task.The cookbook says: "You'll need to use get_partial() and get_component() functions in PartialHelper instead of sfAction::getPartial() and sfAction::getComponent() methods." But has anyone actually got this to work?!?! cheers dan --~--~--

[symfony-users] Re: upgrade to 1.2 breaks admin filters

2009-02-21 Thread danielwinter
Anyone? On Feb 20, 3:28 pm, danielwinter wrote: > This is a strange one. I have someadmingenerator modules that have > redirects to predefined filters. > Everything worked fine in 1.0 but now in1.2the routing changes this: > > $this->redirect("module/action?filter=filte

[symfony-users] upgrade to 1.2 breaks admin filters

2009-02-19 Thread danielwinter
This is a strange one. I have some admin generator modules that have redirects to predefined filters. Everything worked fine in 1.0 but now in 1.2 the routing changes this: $this->redirect("module/action?filter=filter&filters[example_id]=1"); Into this URL: http://domain/module/action/filter/fi

[symfony-users] Re: Functional tests not completing

2009-02-09 Thread danielwinter
Well, after a lot of debugging I found the offending code in a custom filter. There was a die() command that resulted when the URL didn't match the expected domain. Bad code, bad result. Sorry folks. Lesson learned - never say die in symfony :) --~--~-~--~~~---~--~~

[symfony-users] Functional tests not completing

2009-02-09 Thread danielwinter
All my functional tests refuse to fail or complete. Here's an example: get('invalid_route_1'); $browser->get('invalid_route_2'); And here's the output: # get invalid_route_1 Looks like everything went fine. Clearly everything went fine, except that route 1 should have failed and route 2 was

[symfony-users] Functional tests never complete and never fail!

2009-02-08 Thread danielwinter
I have recently migrated a project from 1.0 to 1.2 - primarily because I had a problem where the func tests had stopped running properly. The problem is, they still don't run properly in 1.2 - has anyone got an idea what might be going on here? Example test: get('/does_not_exist_1'); $browser->g

[symfony-users] Re: Uploading PDFs type = octet/stream

2008-09-11 Thread danielwinter
end a wrong MIMe type.) Here's the > link to the forum entry: > > http://www.symfony-project.org/forum/index.php/m/16907/#msg_16907 > > HTH, > > Ingo. > > danielwinter schrieb am 11.09.2008 09:00: > > > For some reason all my PDF uploads in admin generator m

[symfony-users] Uploading PDFs type = octet/stream

2008-09-11 Thread danielwinter
For some reason all my PDF uploads in admin generator modules are being detected as "octet/stream" MIME types and consequently being renamed .bin Any ideas as to why this would be happening? cheers dan --~--~-~--~~~---~--~~ You received this message because you are

[symfony-users] Uploading PDFs type = octet/stream

2008-09-10 Thread danielwinter
For some reason all my PDF uploads in admin generator modules are being detected as "octet/stream" MIME types and consequently being renamed .bin Any ideas as to why this would be happening? cheers dan --~--~-~--~~~---~--~~ You received this message because you are

[symfony-users] Re: Which IDE do you use?

2008-09-09 Thread danielwinter
I love my PhpEd - SFTP sync, SSH terminals, code folding, (symfony) code insight, code templates (with hot-keys), debugging, profiling, code navigation and completion (even for HTML tags), integrated custom CHM help files Not the cheapest but IMHO the best. On Sep 9, 4:13 pm, Sumedh <[EMAIL

[symfony-users] Re: How to allow periods (.) in tags/urls

2008-09-05 Thread danielwinter
I had a similar problem with email addresses being passed in the url - the quick fix was to comment out the RewriteRule .* - [L] line in .htaccess and then al went well... RewriteRule .* - [L] On Sep 3, 10:34 pm, gunnarlium <[EMAIL PROTECTED]> wrote: > Hi! > > I have a url like "/music/tags/m

[symfony-users] Re: Setting compat_10 for an action and/or module

2008-08-27 Thread danielwinter
Also, is it possible to disable the forms compatibility but continue to use sendEmail and PHPmailer within the same action? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group,

[symfony-users] Setting compat_10 for an action and/or module

2008-08-27 Thread danielwinter
I have some very big Symfony 1.0 sites that I would like to upgrade and start using the new 1.1 forms for new modules and actions. I am presuming that you can use sfConfig::set('compat_10',false) within a module and/or action to change the compatibility mode - but am I presuming correctly? :) Than

[symfony-users] Re: removing html suffix as needed

2008-07-21 Thread danielwinter
Ah - the key is the final period after the route. :) route_name: url: /pathname. param: { module: home, action: pathname} Hope this helps someone! On Jul 21, 5:54 pm, danielwinter <[EMAIL PROTECTED]> wrote: > I am using suffix: html in my settings.yml for a project and I have >

[symfony-users] removing html suffix as needed

2008-07-21 Thread danielwinter
I am using suffix: html in my settings.yml for a project and I have been asked by the client to support a URL without a file extension. So my question is how do I set in a route to match /pathname instead of /pathname.html on an ad hoc basis? cheers dan --~--~-~--~~~-

[symfony-users] Re: sfMail - Too Many Forwards error

2008-07-07 Thread danielwinter
ditch" <[EMAIL PROTECTED]> wrote: > I had a problem with that error a while back, this was my > problem:http://groups.google.com/group/symfony-users/browse_thread/thread/273... > > 2008/7/8 danielwinter <[EMAIL PROTECTED]>: > > > > > > > OK this is wei

[symfony-users] sfMail - Too Many Forwards error

2008-07-07 Thread danielwinter
OK this is weird. I have used the alternate action for sending sfMail messages many times, but for some reason I am getting an infinite loop on sfController.class line 539 in the getPresentationFor() method. On a blank homepage I call a test email with empty templates: $raw_email = $this->sendEm

[symfony-users] Re: Force an Autocompletion list pick for input_auto_complete_tag

2008-07-03 Thread danielwinter
Did you ever solve this? I have a similar need where there are 8000 names to choose from. One idea I had was to use a text field that acts as a filter for an ajax-updated select tag, but it is the select tag that is validated... cheers dan --~--~-~--~~~---~--~~ You

[symfony-users] Re: sfPropelParanoidBehavior plugin failed

2008-06-15 Thread danielwinter
One other thing - have you extended the auto-class in your module action? Maybe you have accidentally over-ridden the paranoid behaviour! dan On Jun 16, 7:54 am, danielwinter <[EMAIL PROTECTED]> wrote: > Arief, > Does it work in dev environment? Maybe you need to disable th

[symfony-users] Re: sfPropelParanoidBehavior plugin failed

2008-06-15 Thread danielwinter
Arief, Does it work in dev environment? Maybe you need to disable the cache in settings.yml to test dan On Jun 15, 4:49 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi all, > > With symfony version 1.0.16 and sfPropelParanoidBehavior plugin version > 1.0.3 I couldn't make the admin-genera

[symfony-users] Re: Website uptime

2008-06-03 Thread danielwinter
mon.itor.us and http://www.montastic.com combined :) On Jun 3, 4:59 am, "Daevid Vincent" <[EMAIL PROTECTED]> wrote: > http://mon.itor.us@ 11:57AM PST > > The irony. > > Mon. itor. us > > Error > > Internal server error. Please, try later. > > BAH BAHHAHA HAHAHAHHAHAHA > > Seriously, just ins