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

2011-06-16 Thread Kris Wallsmith
/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 kris.wallsm...@symfony-project.com (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 oliv.g...@gmail.com wrote: Hi, I use assetic with twig to insert a css file like this : {%

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 page.

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
and my css folder is in /scr/Blobsmith/MyBundle/ Resources/public/css/. Sorry for this very late response... On May 23, 5:03 pm, Kris Wallsmith kris.wallsm...@symfony- project.com (http://project.com) wrote: Where are your stylesheets located in your project

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

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

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 : ?php foreach ($view['assetic']-stylesheets(array('public/css/*')) as $url): ? link rel=stylesheet

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... {%

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 support

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

[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

[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 mkkp...@gmail.com wrote: W dniu 24 lutego 2010 22:32

[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 th9...@googlemail.com wrote: Hi people! I'd love to set a variable in an application and

[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 sid.bacht...@gmail.com wrote: Hi all, I just written

[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 gna...@gmail.com wrote: Hello all, I am having trouble with sfYaml::load() (I even tryed to

[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
= 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 of sysmfony i hope can help me to translate

[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: 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 elegant solution

[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.wallsm

[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 Portland, Oregon USA http

[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-loading or access

[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 kris.wallsm...@symfony

[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 28, 2009

[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 dom...@gmail.com wrote: Hi Guys, Maybe like to read:http://blog.lucas-ts.com/programacao/how-will-be-symfony-13/ sorry for

[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 hexuf...@gmail.com wrote: I am using symfony 1.2, and want to use swiftMailer in it, the error is if I use this one: $message = new

[symfony-users] Re: Adding sf_format to urls

2009-01-24 Thread Kris Wallsmith
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: class: sfDoctrineRoute url

[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 associated validator given the widget

[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] 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 | Community

[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 your configuration class: $this-enablePlugins

[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,

[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. How to

[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 manual

[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 : bFatal error/b:

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

2008-10-11 Thread Kris Wallsmith
Installed packages, channel pecl.php.net: = On Oct 11, 3:26 pm, Kris Wallsmith [EMAIL PROTECTED] project.com wrote: Hm... The Propel::import() method was renamed Propel::importClass() in Propel 1.3. Is it possible you have Propel 1.3 installed somewhere

[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 overwrite the

[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] I love my PhpEd

[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

[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:48,

[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

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

2008-08-30 Thread Kris Wallsmith
, 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 Auftrag von Kris Wallsmith Gesendet: Samstag, 30. August 2008 01

[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 perhaps

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

2008-06-18 Thread Kris Wallsmith
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 -Original Message- From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kris

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

2008-06-18 Thread Kris Wallsmith
Thanks for the help. http://daevid.com -Original Message- From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kris Wallsmith Sent: Wednesday, June 18, 2008 9:57 AM To: symfony users Subject: [symfony-users] Re: How do I access a validate .yml setting in my

[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) {

[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

[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: 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 selected

[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[]=4key[]=2key[]=6 I've been searching through the 1.1 validator classes, but can't find anything to validate an array of

[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

[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...

[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 previous post on CSRF protection

[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, nevermind. I can just

[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:

[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