Re: [symfony-users] Re: link to images in css file with assetic

2011-06-16 Thread Kris Wallsmith
l genrate is /Resources/Public/images/ok.gif but my image is in > @BundleCreator/Resources/Public/images/ok.gif. > > You know where is the problem ? > > On 11 juin, 19:32, Kris Wallsmith (http://symfony-project.com)> > wrote: > > You need to add the cssrewrite filter to your tag:

Re: [symfony-users] link to images in css file with assetic

2011-06-11 Thread Kris Wallsmith
You need to add the cssrewrite filter to your tag: > {% stylesheets '@BundleCreator/Resources/Public/css/bundleCreator.css' filter='cssrewrite' > %} On Jun 11, 2011, at 9:57 AM, John Blobsmith wrote: > Hi, > I use assetic with twig to insert a css file like this : > {% stylesheets '@BundleCre

Re: [symfony-users] [symfony2] [beta4] ScopeWideningInjectionException in prod environment using php templates

2011-06-10 Thread Kris Wallsmith
Yes, please submit a pull request to fix this. Thanks, Kris On Friday, June 10, 2011 at 12:40 PM, pzwosta wrote: > Hi, > > with update to Beta 4 I get this Exception - only in prod environment (with > debug set to true on creating AppKernel). Without debug=true the server > returns an empty p

Re: [symfony-users] Re: Configure Assetic Filters

2011-06-07 Thread Kris Wallsmith
I need to build a better solution for this issue. Right now you need to add whatever options you want to cssembed.xml and send a PR. Look at jpegtran.xml for reference. Thanks, Kris On Tuesday, June 7, 2011 at 8:44 AM, Paul Dugas wrote: > On Mon, 2011-06-06 at 09:27 -0400, Paul Dugas wrote: >

Re: [symfony-users] Re: Assetic and php template

2011-06-05 Thread Kris Wallsmith
ss/. > > > > Sorry for this very late response... > > > > On May 23, 5:03 pm, Kris Wallsmith > > > > > > > > > > > > > > > project.com (http://project.com)> wrote: > > > Where are your stylesheets located in your projec

Re: [symfony-users] [Assetic] How to deal with images references in CSS

2011-06-02 Thread Kris Wallsmith
There is a CssRewriteFilter that should fix relative URLs like these. It’s enabled in the SE by default as “cssrewrite” — try adding that to your asset. k On Thursday, June 2, 2011 at 3:33 AM, dbenjamin wrote: > Hi, > > I started to use Assetic and that's really a great tool ! > > However, i w

Re: [symfony-users] Inserting routed assets with Assetic from a Twig_Node

2011-05-29 Thread Kris Wallsmith
I never anticipated extending Assetic's twig integration by creating new TokenParsers… can you accomplish this by adding the asset to the DIC and tagging it assetic.asset? Also, are you aware Assetic includes a filter for Packager? Thanks, Kris On May 29, 2011, at 5:18 AM, dukeofgaming wrote: >

Re: [symfony-users] Assetic and php template

2011-05-23 Thread Kris Wallsmith
Where are your stylesheets located in your project directory — web/public/css/* ?? On Sunday, May 22, 2011 at 5:23 AM, John Blobsmith wrote: I try to use assetic with php template like this : > > stylesheets(array('public/css/*')) > as $url): ?> > > > > But it doesn't work. > I have the error

Re: [symfony-users] assetic, compass filter and scss files

2011-05-16 Thread Kris Wallsmith
I’m aware of this issue, although there isn’t a ticket for it right now. Please create an issue on the Symfony2 tracker: https://github.com/symfony/symfony/issues Thanks! Kris On Monday, May 16, 2011 at 5:46 AM, matteosister wrote: Hello everybody! > I'm trying to configure assetic to work with c

Re: [symfony-users] Assetic twig grouping assets and filters

2011-05-15 Thread Kris Wallsmith
I also just added a way to add filters to your assets behind the scenes, which is another way to solve this issue. https://github.com/symfony/symfony/pull/954 On May 15, 2011, at 1:01 AM, Kris Wallsmith < kris.wallsm...@symfony-project.com> wrote: Hi Matt, The Twig extension does not s

Re: [symfony-users] Assetic twig grouping assets and filters

2011-05-15 Thread Kris Wallsmith
Hi Matt, The Twig extension does not support this, but you can now (in master) define assets in your configuration and reference them by name in your template. For example: assetic: filters: coffee: ~ assets: some_coffee: inputs: js/main.coffee filters: coffee And in your template... {% javas

Re: [symfony-users] Assetic and versioning assets

2011-05-14 Thread Kris Wallsmith
You configure an asset version by setting a framework.assets_version value in your configuration. This version will be appended to asset URLs when assetic.use_controller is set to false, but not when assetic.use_controller is true. Thanks, Kris On Saturday, May 14, 2011 at 11:29 AM, Matt Drolle

[symfony-users] Re: Assetic routing config problem

2011-03-15 Thread Kris Wallsmith
Hi Ralf, Take a look at how Assetic is configured in the symfony-standard repo: https://github.com/kriswallsmith/symfony-standard/blob/master/app/config/config.yml#L23 https://github.com/kriswallsmith/symfony-standard/blob/master/app/config/config_dev.yml#L17 The punctuation error looks like a t

[symfony-users] Re: Possible SQL injection

2010-02-24 Thread Kris Wallsmith
I've committed a fix to Subversion and will be releasing soon. Please test the fix in the meantime and report any issues here or on Trac. http://trac.symfony-project.org/changeset/28260 Thanks, Kris On Feb 24, 1:35 pm, Michał Piotrowski wrote: > W dniu 24 lutego 2010 22:32 u¿ytkownik Micha³ Pio

[symfony-users] Re: Problem with sfYaml::load

2009-08-30 Thread Kris Wallsmith
I'm not sure I can help without more specifics other the referring you to the new Yaml component site and its documentation: http://components.symfony-project.org/yaml/ Kris On Aug 28, 7:58 am, Gnagno wrote: > Hello all, > > I am having trouble with sfYaml::load() (I even tryed to use > sfYamlP

[symfony-users] Re: How to automatically add stars on required fields using sfForm in Symfony 1.2

2009-08-30 Thread Kris Wallsmith
Hi Sid, Looks good. Does your solution also work for embedded forms? I've also proposed a solution to the same problem here: http://kriswallsmith.net/post/144021872/symfony-denote-required-form-fields Kris On Aug 30, 4:34 am, Sid Bachtiar wrote: > Hi all, > > I just written an article on how t

[symfony-users] Re: set variable and forward to another application/module

2009-08-30 Thread Kris Wallsmith
If you want to add a variable to the request scope, the best place to do so is the request object, in the form of an attribute: $request->setAttribute('foo', $foo); Kris On Aug 30, 7:16 pm, Tamer Higazi wrote: > Hi people! > I'd love to set a variable in an application and forward then to one

[symfony-users] Re: where can I find the complete list of options allowed form inputs?

2009-03-10 Thread Kris Wallsmith
Available options are described in the configure() comment block and are viewable in the API documentation. For example http://www.symfony-project.org/api/1_2/sfWidgetFormDate#method_configure -- Kris Wallsmith | Community Manager kris.wallsm...@symfony-project.com Portland, Oregon USA http

[symfony-users] Re: sql between statement

2009-03-05 Thread Kris Wallsmith
", Criteria::CUSTOM) ; $transactions = TransactionPeer::doSelect($criteria); Kris -- Kris Wallsmith | Community Manager kris.wallsm...@symfony-project.com Portland, Oregon USA http://twitter.com/kriswallsmith On Mar 4, 2009, at 5:58 PM, janlar...@gmail.com wrote: > > hi all im a new user o

[symfony-users] Re: sfFilesystem class question

2009-03-02 Thread Kris Wallsmith
The array is probably reversed so files are deleted before directories. -- Kris Wallsmith | Community Manager kris.wallsm...@symfony-project.com Portland, Oregon USA http://twitter.com/kriswallsmith On Mar 2, 2009, at 1:29 PM, cirpo wrote: > > Hi, > i'm trying to find an "e

[symfony-users] Re: Change routing based on subdomain of url

2009-03-02 Thread Kris Wallsmith
Hi Evert, Please see http://www.symfony-project.org/blog/2009/03/02/call-the-expert-adding-subdomain-requirements-to-routing-yml :) -- Kris Wallsmith | Community Manager kris.wallsm...@symfony-project.com Portland, Oregon USA http://twitter.com/kriswallsmith On Mar 2, 2009, at 9:34 AM

[symfony-users] Re: jobeet : Day 3 : schema and relationship

2009-02-22 Thread Kris Wallsmith
I don't think categories are intended to be deleted. If your implementation of Jobeet has different requirements, by all means add an onDelete constraint to your schema. -- Kris Wallsmith | Community Manager kris.wallsm...@symfony-project.com Portland, Oregon USA http://twitte

[symfony-users] Re: Symfony/Doctrine/Forms with EAV model?

2009-02-20 Thread Kris Wallsmith
How are you questionnaires setup? If they're configured in the database, you should be able to present and validate them using you Doctrine forms and the something similar to what Gandalf has pasted below... Or am I misunderstanding? -- Kris Wallsmith | Community Manager kris.w

[symfony-users] Re: how to include csrf token hidden field into manually created form

2009-02-05 Thread Kris Wallsmith
xhe-- Can you be more specific what you mean by a "manually created form"? If you're calling $form->setWidgets() after ->__construct() has executed, you'll also have to manually call $form->addCSRFProtection (null); Frank-- The $request->checkCSRFProtection() should only be used in conjunction

[symfony-users] Re: Jobeet Tutorial, Day 16, Propel edition

2009-02-03 Thread Kris Wallsmith
It looks like you have an error in your application's routing.yml file. Revisit that part of the tutorial and double check you've included a "class:" entry under the appropriate route. Kris -- Kris Wallsmith | Community Manager kris.wallsm...@symfony-project.com Portla

[symfony-users] Re: Problem with scope of autoloaded classes for components in a different module

2009-02-03 Thread Kris Wallsmith
I assume you've cleared the cache after adding the file? -- Kris Wallsmith | Community Manager kris.wallsm...@symfony-project.com Portland, Oregon USA http://twitter.com/kriswallsmith On Feb 3, 2009, at 11:49 AM, isleshocky77 wrote: > > Just came across a problem with the auto

[symfony-users] Re: Unit-Tests: The "default" context does not exist.

2009-02-02 Thread Kris Wallsmith
You can create a sfContext instance by passing an sfApplicationConfiguration instance to sfContext::createInstance(). You might be better off just including the functional bootstrap and lime.php, however. Kris -- Kris Wallsmith | Community Manager kris.wallsm...@symfony-project.com

[symfony-users] Re: Override save() of embedded forms

2009-02-02 Thread Kris Wallsmith
Hi Michael, I believe the ->updateObject() method is called on embedded forms. You might also use a validator or post validator to handle this logic. -- Kris Wallsmith | Community Manager kris.wallsm...@symfony-project.com Portland, Oregon USA http://twitter.com/kriswallsmith On Jan

[symfony-users] Re: sfConfiguration... and some refactoring

2009-02-02 Thread Kris Wallsmith
Prior to symfony 1.1 the version number could be accessed as file_get_contents(sfConfig::get('sf_symfony_lib_dir').'/VERSION'). The version number values can be easily tested with the native version_compare() function. Kris -- Kris Wallsmith | Community Manager kr

[symfony-users] Re: Unit-Tests: The "default" context does not exist.

2009-02-02 Thread Kris Wallsmith
Have you read this cookbook tutorial? http://www.symfony-project.org/cookbook/1_2/en/model_unit_testing -- Kris Wallsmith | Community Manager kris.wallsm...@symfony-project.com Portland, Oregon USA http://twitter.com/kriswallsmith On Feb 1, 2009, at 12:46 PM, juro wrote: > > True

[symfony-users] Re: sfTesterForm definition

2009-01-27 Thread Kris Wallsmith
I'm pretty sure the tester takes the first bound form that's been attached to an action instance. Do you bind multiple forms in one request? -- Kris Wallsmith | Community Manager kris.wallsm...@symfony-project.com Portland, Oregon USA http://twitter.com/kriswallsmith On Jan 27,

[symfony-users] Re: Using symfony 1.2 with swiftMailer error, all the html tags are preserved, help please

2009-01-26 Thread Kris Wallsmith
I don't see anything wrong with your code. Does your email client read other multi-part email messages just fine? Kris On Jan 22, 5:04 pm, xhe wrote: > I am using symfony 1.2, and want to use swiftMailer in it, the error > is if I use this one: > > $message = new Swift_Message('Account Activatio

[symfony-users] Re: things about symfony 1.3

2009-01-26 Thread Kris Wallsmith
symfony 1.3 has also been discussed on the symfony blog now: http://www.symfony-project.org/blog/2009/01/25/about-symfony-1-3 On Jan 23, 5:05 pm, Lucas Stephanou wrote: > Hi Guys, > > Maybe like to > read:http://blog.lucas-ts.com/programacao/how-will-be-symfony-13/ > > sorry for linking myself

[symfony-users] Re: Adding sf_format to urls

2009-01-24 Thread Kris Wallsmith
r route or in your application's factories.yml). Kris -- Kris Wallsmith | Community Manager kris.wallsm...@symfony-project.com Portland, Oregon USA http://twitter.com/kriswallsmith On Jan 22, 2009, at 8:06 AM, Michael Smith wrote: > > I have a route like: > > inspection_show:

[symfony-users] Re: Validation of PNG images sf 1.2

2009-01-08 Thread Kris Wallsmith
The sfValidatorFile class requires either finfo_open() or mime_content_type() be installed. If neither are installed, the mime type validation will throw an error. Kris -- Kris Wallsmith | Community Manager kris.wallsm...@symfony-project.com Portland, Oregon USA On Jan 7, 2009, at 4:40 AM

[symfony-users] Re: symfony 1.2 nested sets schema generation

2008-12-03 Thread Kris Wallsmith
None that I know of. This configuration must be included in the schema file before running propel:build-model and it cannot be introspected from the database. Kris -- Kris Wallsmith | Community Manager [EMAIL PROTECTED] Portland, Oregon USA On Dec 3, 2008, at 12:57 AM, lionslair wrote

[symfony-users] Re: sfForms widget and validator

2008-12-02 Thread Kris Wallsmith
No, ->setWidget() does not affect a form's validators. Kris -- Kris Wallsmith | Community Manager [EMAIL PROTECTED] Portland, Oregon USA On Dec 1, 2008, at 9:13 PM, ken wrote: > > Does calling $this->setWidget('control_name', new sfWidgetXXX) also > reset its

[symfony-users] Re: Reorganizing plugin repositories

2008-11-19 Thread Kris Wallsmith
Hello again, I have completed this reorganization. The code for these plugins has all been moved into a trunk directory. You can now update your svn:externals definitions like so: DbFinderPlugin http://svn.symfony-project.com/plugins/DbFinderPlugin/trunk Thanks, Kris -- Kris Wallsmith

[symfony-users] Reorganizing plugin repositories

2008-11-15 Thread Kris Wallsmith
mfony-project.com/plugins/DbFinderPlugin Also, if anyone is interested in helping maintain any of these plugins, please contact me directly and we can talk. Thanks, Kris -- Kris Wallsmith | Community Manager [EMAIL PROTECTED] Portland, Orego

[symfony-users] Transcript of Plugin Developers Day

2008-11-10 Thread Kris Wallsmith
Hi all, I've posted a transcript of this weekend's Plugin Developers Day to the wiki here: http://trac.symfony-project.org/wiki/Events/PluginDevsDay20081108 Thank you to all who attended. I look forward to more of these sorts of events in the future. Kris -- Kris Wallsmith |

[symfony-users] Re: Symfony 1.2 and propel behaviors

2008-10-22 Thread Kris Wallsmith
Are you calling sfPropelBehavior methods anywhere else in your application? Kris On Oct 21, 2008, at 12:03 AM, "Yohan 'rouKs' G." <[EMAIL PROTECTED] > wrote: > Kris Wallsmith wrote: >> >> As of symfony 1.2 you have to explicitly enable plugins in

[symfony-users] Re: Symfony 1.2 and propel behaviors

2008-10-20 Thread Kris Wallsmith
As of symfony 1.2 you have to explicitly enable plugins in your configuration class: $this->enablePlugins(array('sfPropelPlugin', 'sfPropelActAsPolymorphicBehaviorPlugin')); If the plugin that houses a behavior is not enabled, that behavior will not be registered. Kris On Oct 20, 1:44 pm, Melc

[symfony-users] Re: Executing global valitor only if singles are valid

2008-10-16 Thread Kris Wallsmith
Hi Nicolas, If one of the single validators fails, its value in the $values array passed into the post validator will be NULL. Kris On Oct 16, 12:05 pm, Nicolas CHARLOT <[EMAIL PROTECTED]> wrote: > Hi, > > I've written a global validator that needs all singles validators to   > be valid. > > Ho

[symfony-users] Re: Contributing Symfony Am I doing it wrong?

2008-10-15 Thread Kris Wallsmith
Y defect closed and X > Y i think >> symfony going in the wall. >> >> i remember Fabien has show us a nice graph with the ticket life cycle >> but it don"t see to be applyed. some tickets have more than 2 years >> and >> perhaps nobody know if the bug is s

[symfony-users] Re: Contributing Symfony Am I doing it wrong?

2008-10-14 Thread Kris Wallsmith
Thank you for your patch. It has been applied to 1.1 and 1.2. Please keep them coming! Kris On Oct 14, 7:12 pm, Yuretsz <[EMAIL PROTECTED]> wrote: > Ok, I have desire and skills to help Symfony became the best framework ever. > > The most easiest way is to fix some bugs in it. > Ok we have the m

[symfony-users] Re: Upgrade to 1.1 : Call to undefined method Propel::import()

2008-10-11 Thread Kris Wallsmith
e > propel_generator 1.3.0RC1 beta > propel_runtime 1.3.0RC1 beta > Installed packages, channel pear.symfony-project.com: > = > Package Version State > symfony 1.0.17 stable > Installed packages, channel pecl.php.net: > = > > > On Oct 11

[symfony-users] Re: Upgrade to 1.1 : Call to undefined method Propel::import()

2008-10-11 Thread Kris Wallsmith
Hm... The Propel::import() method was renamed Propel::importClass() in Propel 1.3. Is it possible you have Propel 1.3 installed somewhere? Kris On Oct 11, 2008, at 5:45 AM, DigitalBase <[EMAIL PROTECTED]> wrote: > > I just upgraded my project to 1.1. Now i get the exception : > > Fatal error:

[symfony-users] Re: using Session variables in my class

2008-10-10 Thread Kris Wallsmith
Hi Michael, What version of symfony are you using? Kris On Oct 10, 10:15 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Which log do you mean? Symfony logs many informations (debug > enviroment). The first are logged, when the routing is configured (as > in sf 1.2). I don't think that the

[symfony-users] Re: sfForms - group validator

2008-10-07 Thread Kris Wallsmith
I'm not sure I understand your problem, but take a look as sfValidatorCallback. You can create a method in your form class that would of course have access to the form's validatorSchema, etc. Kris On Oct 6, 6:13 am, "Thomas Rabaix" <[EMAIL PROTECTED]> wrote: > Hello, > > Have you try to overwrit

[symfony-users] Re: sf 1.1 : where has passed sfResponse parameter holder ?

2008-09-09 Thread Kris Wallsmith
If you want to store a variable to the request scope in sf1.1, use the request attribute holder: sfContext::getInstance()->getRequest()->setAttribute('foo', 'bar'); Is that what you're asking? Kris On Sep 9, 2008, at 8:27 AM, Nicolas CHARLOT <[EMAIL PROTECTED]> wrote: > > Le 9 sept. 08 à 16

[symfony-users] Introducing sfExceptionFormatsPlugin

2008-09-09 Thread Kris Wallsmith
I've just released a new plugin called sfExceptionFormatsPlugin, available on symfony-projects.org. This plugin extends the request formats feature added in symfony 1.1 to include the error 500 and exception pages. With this plugin installed, any uncaught exceptions thrown will render as t

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

2008-09-09 Thread Kris Wallsmith
Textmate and vi. I'm also going to check out the latest version of Coda. Kris On Sep 9, 2008, at 3:48 AM, "markus.staab" <[EMAIL PROTECTED]> wrote: > > Eclipse PDT > > On 9 Sep., 12:35, "Dmitry Nesteruk" <[EMAIL PROTECTED]> wrote: >> Eclipse >> >> 2008/9/9 danielwinter <[EMAIL PROTECTED]> >>

[symfony-users] Re: Making project creation easier

2008-09-05 Thread Kris Wallsmith
Hi Tom, I agree that there's more to setting up a project than what the generate:project command accomplishes, but this is probably different for each developer. For me, I add a number of svn properties (ignore, externals), modify the rsync ignore file, generate some controller scripts in

[symfony-users] Re: Symfony 1.1 forms

2008-09-03 Thread Kris Wallsmith
Why not just disable the required option on the respective valudators? Kris On Sep 3, 2008, at 8:00 AM, paolovas <[EMAIL PROTECTED]> wrote: > > Hi Krasimir: > > $this->widgetSchema['mydate']->setAttribute('date', array('disabled'=> > 'disable')); > $this->widgetSchema['mydate']->setAttribute('t

[symfony-users] Re: AW: [symfony-users] Re: DB Column starts with Integer.

2008-08-30 Thread Kris Wallsmith
2008, at 1:34 AM, Fabian Lange <[EMAIL PROTECTED] > wrote: > > Oh right! > How could I Forget :-) > But its phpName > > Fabian > > -Ursprüngliche Nachricht- > Von: symfony-users@googlegroups.com [mailto:symfony-users@googlegroups.com > ] > Im Auftra

[symfony-users] Re: get_partial (string , vars)?

2008-08-30 Thread Kris Wallsmith
Also have a look at http://www.php.net/strtr ... That's used a number of time in the core (its array usage). Kris On Aug 30, 2008, at 2:56 AM, "Fabian Lange" <[EMAIL PROTECTED] > wrote: > Hi, > you mean something like: > http://php.net/manual/en/function.sprintf.php > > Anyway it is recommen

[symfony-users] Re: DB Column starts with Integer.

2008-08-29 Thread Kris Wallsmith
Hi Alex, Propel provides a "peerName" attribute for each column. You can use this to rename the peer constant. Kris On Aug 29, 2:56 pm, Fabian Lange <[EMAIL PROTECTED]> wrote: > Hi Alex, > > the easiest solution is to create a Read/Write View of that table and give > it a different name. > > Or

[symfony-users] Re: How do I access a validate .yml setting in my template?

2008-06-18 Thread Kris Wallsmith
es in it using > the include_partial() [or whatever the call is]. So I then do a > simple PHP > include(PATH.SOMEDELIMETERBS.TO.SOMEDELIMETERBS._partial.php) and it > magically worked. WTF!? UGH. > > > > Thanks for the help. > > http://daevid.com > > &

[symfony-users] Re: How do I access a validate .yml setting in my template?

2008-06-18 Thread Kris Wallsmith
or "oops, I forgot the .com in > my email" or whatever. > > I find it inconceivable that the designers of Symfony could make such a > glaring oversight as to not give me direct access to the validate.yml file > parameters in an easy to access manor. *sigh* > > d &

[symfony-users] Re: Symfony 1.1DEV - Functional testing ...

2008-06-17 Thread Kris Wallsmith
Hi Joao, I also place form fields using the array accessor like this. I wound up doing this late one night... class myTestBrowser extends sfTestBrowser { public function post($uri, $parameters = array(), $formClass = null) { if ($formClass) { $parameters[sfForm::getCSRFFieldNam

[symfony-users] Re: sfWidgetFormSelect (selected value)

2008-06-13 Thread Kris Wallsmith
Hi Dmitry, I believe default form values are set in one of three ways: * sfForm::__construct(array $defaults) * sfForm::setDefaults(array $defaults) * sfForm::setDefault(string $name, mixed $default) Kris On Jun 13, 6:55 am, "Dmitry Nesteruk" <[EMAIL PROTECTED]> wrote: > How can I set selec

[symfony-users] Re: template using variables defined in the action class

2008-06-13 Thread Kris Wallsmith
Hi Mohammad, The action classes use the PHP magic __set() method, which is only used when an object member has NOT been defined yet. So the answer you're looking for is no. If you'd like to have certain variables set in every action in a module, consider using the ->initialize() or - >preExecute(

[symfony-users] Re: How do I access a validate .yml setting in my template?

2008-06-13 Thread Kris Wallsmith
Hi Daevid, Take a look at the execution filter to see how symfony uses the validation.yml files: http://trac.symfony-project.com/browser/branches/1.0/lib/filter/sfExecutionFilter.class.php#L91 More to your point, isn't duplication of the validation logic a larger DRY concern than duplication of

[symfony-users] [1.1] howto validate an array of integers?

2008-05-25 Thread Kris Wallsmith
I'm building an interaction that uses script.aculo.us' Sortable.serialize method to build request parameters. This method creates an array of integers like this: key[]=4&key[]=2&key[]=6 I've been searching through the 1.1 validator classes, but can't find anything to validate an array of integer

[symfony-users] Re: disable csrf protection for functional tests?

2008-05-24 Thread Kris Wallsmith
Continuing this conversation I'm having with myself ... Most forms should be testable using getAndCheck, setField, click ... which will submit the CSRF token and work just fine. So nevermind (again). k On May 24, 8:09 am, Kris Wallsmith <[EMAIL PROTECTED]> wrote: > Oh, nevermi

[symfony-users] Re: disable csrf protection for functional tests?

2008-05-24 Thread Kris Wallsmith
Oh, nevermind. I can just update settings.yml... test: .settings: csrf_secret: off Maybe this should this be part of the skeleton settings.yml that's created by generate:app? On May 24, 7:51 am, Kris Wallsmith <[EMAIL PROTECTED]> wrote: > Piggybacking on my previou

[symfony-users] [1.1] disable csrf protection for functional tests?

2008-05-24 Thread Kris Wallsmith
Piggybacking on my previous post on CSRF protection ... what's the best way to disable CSRF protection for my functional tests? I've added a condition to frontendConfiguration::initialize() that disables protection in the test environment, but I'd rather not add logic the only runs for test... An

[symfony-users] [1.1] remove id from hidden csrf input???

2008-05-24 Thread Kris Wallsmith
I'm using sfForm to build a page with a number of AJAX forms. It's going pretty smoothly so far, but I just switched CSRF protection on and now have a bunch of hidden inputs with the same id attribute (_csrf_token). Is there a way to disable the id attribute on this element, globally? I think thi

[symfony-users] Refactoring in sfGoogleAnalyticsPlugin

2008-04-10 Thread Kris Wallsmith
Hello all, I'm going to be committing some major refactoring to the sfGoogleAnalyticsPlugin trunk today or in the next few days. If you have the current version of this plugin installed from SVN, please switch your external/checkout to the 1.0 branch: http://svn.symfony-project.com/plugins/sfGoo

[symfony-users] Re: Anyone using MAMP

2007-10-28 Thread Kris Wallsmith
Could it be as simple as clearing the symfony cache? Other than that, my experience with blank screens when trying to access a symfony project is that the library and data folder variables in /config/ config.php aren't configured accurately. I use MAMP on my laptop and it works fine... Kris Tom