[symfony-users] Re: JSON default content type

2011-04-04 Thread Massimiliano Arione
Open config/view.yml file in your application. First 3 lines (excluding comments) are default: http_metas: content-type: text/html you got a clue ;-) cheers Massimiliano -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] ckWebServicePlugin unit tests

2011-04-04 Thread el-sid
hi all, been trying out the ckWebServicePlugin but i am unable to get the unit tests to show any result my app.yml is all: enable_soap_parameter: off #your environment for webservice mode soap: #enable the `ckSoapParameterFilter` enable_soap_parameter: on

[symfony-users] [Symfony 2] Problem with a very simple thing

2011-04-04 Thread Antonio Antunes
Hello, I'm new to Symfony but I have some experience with PHP programming, anyway I've tried looking on the google for this problem but haven't found a solution. I'm getting error 500 when acessing thru browser, and this message is being generated at error_log: [Fri Apr 01 20:02:28 2011] [error]

Re: [symfony-users] [Symfony2] How to use services for entity persisting

2011-04-04 Thread Tim Nagel
There is no way to force them to use your service. You'll just need to make sure they're aware of what they should be doing. You could potentially set the entity manager to private but I dont know if thats a good idea or not. Additionally, if you've got loads of developers who will end up doing

[symfony-users] [New Forms] Form without a DataClass with Custom Fields+Validators?

2011-04-04 Thread ericclemmons
I'm really liking the complex-types that the new forms support (Date, DateTime, Birthday, File, etc.), but I'm curious about how flexible they can be. The forms I use come straight from an API similar to: fields: [ field: { name: 'firstName', type:

[symfony-users] [Symfony2] Custom role providers for SecurityBundle

2011-04-04 Thread Ville Mattila
Hi everyone, I've been trying to get Symfony 2's security bundle to fit on some specific requirements - no luck yet. My target would be to use the SecurityBundle only partially: to take care of authorization decisions but nothing else. Authentication and all other actions would be done by

[symfony-users] [Symfony2] DependencyInjection config

2011-04-04 Thread Максим Воробей
trying to load my own config from extension: namespace MyBundle\DependencyInjection; class MyExtension extends Extension { public function load(array $configs, ContainerBuilder $container) { $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));

[symfony-users] Re: MP4 mime type sfValidatorFile troubles with IE6

2011-04-04 Thread _kud
$_FILES returns application/octet-stream. :/ On 31 mar, 20:46, Gábor Fási maerl...@gmail.com wrote: Check what mime type is sent by IE. You can use wireshark, or do a quick n' dirty die(var_dump($_FILE)) in your action. On Mar 31, 2011 8:35 PM, _kud kud.g...@gmail.com wrote: Hello,

[symfony-users] The Hello Symfony! Page - Documentation

2011-04-04 Thread Gabriel
http://symfony.com/doc/2.0/book/page_creation.html This tutorial caused me to loose an hour to frustration at the very beginning The Bundle naming convention is apparently now required, and can't be left off. In the routing for this tutorial it illustrates dropping the word. hello:

[symfony-users] [1.4] Which is the best way to avoid to hardcode ID in functional test?

2011-04-04 Thread fain182
I found functional tests quite comfortable in symfony, but i have a problem with ID. For example, if I had to test a method that edit a post I should visit http://www.example.com/post/edit/:id; but the :id of the fixture can change everytime i rebuild the database.. I know I can do something

[symfony-users] My experience with the new Form framework

2011-04-04 Thread Pouledodue
Hello! I love sf2! I'm not a high skill coder and I think it is easy to play with. I did play with the new forms, and I write this message just to be sure my needs are written somewhere so I can hope my needs are met so I can start develop my next project soon with SF2 :) 1) Error message bound

[symfony-users] using custom validation constraint service

2011-04-04 Thread kzr_pzr
Hi, I'm trying to make a custom validation constraint with dependency injection according to docs (http://symfony.com/doc/2.0/cookbook/ validation/custom_constraint.html). So I've created some constraint and constraint validator classes and made some configuration (the Seminar Code Validator

[symfony-users] Re: How to use services for entity persisting

2011-04-04 Thread ericclemmons
Ruben, Like my good friend Wil has already mentioned, code reviews are key, especially setting expectations on what's available for developers to use in their controller. What you may consider is simply extending the `Controller` and overriding the container to a sandboxed container with only

[symfony-users] Re: [Symfony2] How to use services for entity persisting

2011-04-04 Thread Wil Moore III
Ruben, While I'm no expert on sf2 (I've only used certain components and not the MVC portion), I can't imagine there are any constraints from the framework's perspective that would stop your user from doing $this-get('em') any more than it could stop them from doing $this-get('mailer'). My

[symfony-users] Problem with http_basic auth in Symfony 2

2011-04-04 Thread xaben
Hello all, I am trying to use http_basic authentication with the PR9 standard release, basically replacing the security.yml with the Configuration example found on: http://symfony.com/doc/2.0/book/security/overview.html (code snippet at the end of the post). What i expect is that any page under

[symfony-users] Re: How to use services for entity persisting

2011-04-04 Thread Ruben de Vries
Thanks for the response, I got a lot of info from browsing more code on github today. The hardest part was actually getting the right syntax for yml instead of the xml files I had been browsing :( -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] autentication problem

2011-04-04 Thread bitgandtter
first i´m really new in symfony 2.0. I am developing an application using symfony 2.0 and so far everything works perfectly, but when I try to use security, can not find where or how it is that it authenticates the user. I followed step by step tutorials and examples that come with PRE8 but not

Re: [symfony-users] Re: AsseticBundle Configuration + Usage

2011-04-04 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi and thanks for documenting this, it really helps. i think there are two glitches in your config: you duplicate bundles by having it both in write_to and and in your stylesheet tag. the most simple use case is probably: write_to:

[symfony-users] Want jobeet-1.4-doctrine-en.pdf reference source code

2011-04-04 Thread Jehan
Hi everyone Thanks for availability of pdf books on http://www.symfony-project.org/doc/1_4/ if any one have reference source code of* * http://www.symfony-project.org/get/pdf/jobeet-1.4-doctrine-en.pdf then please send it it to me. Regards -- If you want to report a vulnerability issue on

[symfony-users] Re: MP4 mime type sfValidatorFile troubles with IE6

2011-04-04 Thread _kud
For the moment, I did that which is really ugly: http://pastie.org/1753850 On 4 avr, 10:11, _kud kud.g...@gmail.com wrote: $_FILES returns application/octet-stream. :/ On 31 mar, 20:46, Gábor Fási maerl...@gmail.com wrote: Check what mime type is sent by IE. You can use wireshark, or

[symfony-users] Re: MP4 mime type sfValidatorFile troubles with IE6

2011-04-04 Thread _kud
For the moment, I had to do that: if(preg_match('/MSIE 6.0/i', $_SERVER['HTTP_USER_AGENT'])) { $this-setValidator('video', new sfValidatorFile( array( 'mime_types' = array('video/mpeg','video/mpg', 'video/ mp4', 'application/octet-stream'), 'path' =

Re: [symfony-users] MP4 mime type sfValidatorFile troubles with IE6

2011-04-04 Thread Gareth McCumskey
The other solution is do not support IE6. Many major web companies have stopped support and even Microsoft is stopping support for it and has created a website to try and discourage web developers developing for it. At some point you need to decide to stop supporting ageing technologies. IE6 is a

Re: [symfony-users] [Symfony2] DependencyInjection config

2011-04-04 Thread Christophe COEVOET
Le 03/04/2011 04:49, ?? ??? a écrit : trying to load my own config from extension: namespace MyBundle\DependencyInjection; class MyExtension extends Extension { public function load(array $configs, ContainerBuilder $container) { $loader = new XmlFileLoader($container, new

[symfony-users] Re: Problem with http_basic auth in Symfony 2

2011-04-04 Thread Dennis Jacobfeuerborn
Not 100% sure if this helps but can you add security: true to the main firewall? Regards, Dennis -- 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 Groups symfony

[symfony-users] Re: MP4 mime type sfValidatorFile troubles with IE6

2011-04-04 Thread _kud
Gareth, you know as I do it's not a solution. I'm webdev, I work in a web agency. The client wants the IE6 support, the project director tells me to support it, that's the thing. I've already told him to explain to the client what's the problem with IE6, no one cares: I have to support it, that's

[symfony-users] Re: Problem with http_basic auth in Symfony 2

2011-04-04 Thread xaben
Nope, security: true didn't help. Any other ideas? Regards, Alex On Apr 4, 2:59 pm, Dennis Jacobfeuerborn djacobfeuerb...@gmail.com wrote: Not 100% sure if this helps but can you add security: true to the main firewall? Regards,   Dennis -- If you want to report a vulnerability issue on

[symfony-users] Re: The Hello Symfony! Page - Documentation

2011-04-04 Thread weaverryan
Hey Gabriel- Thanks - I've added the missing quotations (https://github.com/symfony/ symfony-docs/commit/952cd3a2cbdb725a1e734a98ab94b1b437d78ae2) and I'll be re-reading the chapters to make sure we're very clearly explaining the bundle syntax, which I think we need to do a better job at. Per

[symfony-users] Re: Problem with http_basic auth in Symfony 2

2011-04-04 Thread Dennis Jacobfeuerborn
Since you are using PR9 probably want to update the /.* to ^/.* (see the PR8-PR9 section at https://github.com/symfony/symfony/blob/master/UPDATE.md ) though technically in this case the patterns should still match so I doubt this has anything to do with the problem. Other than that I don't

[symfony-users] keywords meta helper in templates

2011-04-04 Thread Vincent Régnard
Hi all, I set my global keywords for the meta headers at the application level in view.yml I would like to append some more specific keywords to the meta header at the module level within a template by calling a helper. Just saying addMeta('keywords','newkeyword1, newkeyword2') in the

[symfony-users] Using Controller annotated Routes twice

2011-04-04 Thread phiamo
Hi i was just wondering if i am doing somethong not wanted or if i discovered a bug: i wanted to use a SecurityController twice cause i need exactly the same thing twice so why duplicating code: i wanted to have two different login sections: _blub_login: resource:

Re: [symfony-users] Using Controller annotated Routes twice

2011-04-04 Thread Christophe COEVOET
Le 04/04/2011 16:42, phiamo a écrit : Hi i was just wondering if i am doing somethong not wanted or if i discovered a bug: i wanted to use a SecurityController twice cause i need exactly the same thing twice so why duplicating code: i wanted to have two different login sections: _blub_login:

[symfony-users] Re: Jobeet (doctrine help)!

2011-04-04 Thread Roger Webb
Hello again, Here is a more concrete example: class UserTable extends Doctrine_Table { public function findActiveUsersByUsername($username) { return Doctrine_Query::create() -from('Users u') -where('u.username = ?', $username)

[symfony-users] Re: AsseticBundle Configuration + Usage

2011-04-04 Thread Wizermil
Hi, David is 100% right about write_to in app/config/config.yaml I found the bug this week end when I worked on my project. Tips for others devs you have to be careful when you play with write_to you set the right path in the attribute output of {% stylesheets %} ... BTW I used the default value

[symfony-users] [Symfony2] Access a service from a entity

2011-04-04 Thread Chris
Hey everyone, I know this or a similar question has been asked several times, but I couldn't find a satisfying answer. The problem is that I need to access a service from a model/entity. In my case it's a layout manager object which is the only object which knows about page layout positions,

Re: [symfony-users] Re: Jobeet (doctrine help)!

2011-04-04 Thread Federico Hoerth
Very very helpfull, thank you very much! Now It's clear :D On 4 April 2011 17:07, Roger Webb webb.ro...@gmail.com wrote: Hello again, Here is a more concrete example: class UserTable extends Doctrine_Table { public function findActiveUsersByUsername($username) { return

Re: [symfony-users] [Symfony2] Access a service from a entity

2011-04-04 Thread Christophe COEVOET
Le 04/04/2011 17:37, Chris a écrit : Hey everyone, I know this or a similar question has been asked several times, but I couldn't find a satisfying answer. The problem is that I need to access a service from a model/entity. In my case it's a layout manager object which is the only object which

Re: [symfony-users] [Symfony2] Access a service from a entity

2011-04-04 Thread Johannes Schmitt
Why is accessing a service from an entity a bad practice? The only problem here is the PHP language, the design pattern itself is fine imo. Kind regards, Johannes On Mon, Apr 4, 2011 at 6:35 PM, Christophe COEVOET s...@notk.org wrote: Le 04/04/2011 17:37, Chris a écrit : Hey everyone, I

Re: [symfony-users] Want jobeet-1.4-doctrine-en.pdf reference source code

2011-04-04 Thread Matt Gibson
On 4 Apr 2011, at 09:29, Jehan wrote: Hi everyone Thanks for availability of pdf books on http://www.symfony-project.org/doc/1_4/ if any one have reference source code of http://www.symfony-project.org/get/pdf/jobeet-1.4-doctrine-en.pdf then please send it it to me. You want the

[symfony-users] [Symfony2] Security ACL: Check for class-field / object-field permissions from the security context?

2011-04-04 Thread Gustavo Adrian
Hi all, If we want to check a class permission / object permission like CREATE, we would do: if ($securityContext-isGranted('CREATE', $objectIdentity) { // Do something } Now, what if I want to check for class-field or object-field? I looked at the SecurityContext class but I didn't find a

Re: [symfony-users] [Symfony2] Security ACL: Check for class-field / object-field permissions from the security context?

2011-04-04 Thread Johannes Schmitt
$securityContext-isGranted('CREATE', new FieldVote($oid, 'field')); On Mon, Apr 4, 2011 at 8:19 PM, Gustavo Adrian comfortablynum...@gmail.comwrote: Hi all, If we want to check a class permission / object permission like CREATE, we would do: if ($securityContext-isGranted('CREATE',

Re: [symfony-users] [Symfony2] Security ACL: Check for class-field / object-field permissions from the security context?

2011-04-04 Thread Gustavo Adrian
That was quick! Thanks a lot, it works like a charm :) 2011/4/4 Johannes Schmitt schmitt...@gmail.com $securityContext-isGranted('CREATE', new FieldVote($oid, 'field')); -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] [Symfony2][Form] How to retrieve the file extension that was uploaded?

2011-04-04 Thread spike3111
Hello, I have a form to send pictures, but when I want to display picture it doesn't work: class PhotosForm extends Form { public function configure() { $this-setDataClass('Nt\\SocialBundle\\Entity\\Photos'); $this-add('nom');

[symfony-users] [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-04 Thread Dennis Jacobfeuerborn
I just upgraded from PR8 to the current git state but this broke the security stuff. Apparently the security component no longer handles the _security_check route? Unable to find the controller for path /login_check. Maybe you forgot to add the matching route in your routing configuration?

Re: [symfony-users] [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-04 Thread Christophe COEVOET
Le 04/04/2011 22:27, Dennis Jacobfeuerborn a écrit : I just upgraded from PR8 to the current git state but this broke the security stuff. Apparently the security component no longer handles the _security_check route? Unable to find the controller for path /login_check. Maybe you forgot to

Re: [symfony-users] [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-04 Thread Dennis Jacobfeuerborn
On Monday, April 4, 2011 10:31:30 PM UTC+2, Christophe COEVOET wrote: Le 04/04/2011 22:27, Dennis Jacobfeuerborn a écrit : I just upgraded from PR8 to the current git state but this broke the security stuff. Apparently the security component no longer handles the _security_check route?

Re: [symfony-users] [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-04 Thread Christophe COEVOET
Le 04/04/2011 22:44, Dennis Jacobfeuerborn a écrit : On Monday, April 4, 2011 10:31:30 PM UTC+2, Christophe COEVOET wrote: Le 04/04/2011 22:27, Dennis Jacobfeuerborn a écrit : I just upgraded from PR8 to the current git state but this broke the security stuff. Apparently the

[symfony-users] Re: [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-04 Thread Christian Schaefer
hi all, thanks for raising this topic. I experience the exact same behaviour. I am still running on PR8 for that exact reason. apparently the listener do not get called any longer. I tried to hunt this down but run out of time and reverted back to PR8. I got as far as there is a method

[symfony-users] Re: ckWebServicePlugin unit tests

2011-04-04 Thread el-sid
ok, i managed to get the unit tests to atleast show an output, however, it shows this error # Multiply(...) ok 1 - response object . is a double not ok 2 - response object . is 10 # Failed test (./plugins/ckWebServicePlugin/lib/test/ ckTestSoapClient.class.php at line 368) #got: 1

[symfony-users] Re: Using Controller annotated Routes twice

2011-04-04 Thread phiamo
Hmm the route name i assume is this: _blub_login and _bla_login: and its not used the same ... the usecase would be to have different login sites where people can login call it areas or something where they could do different things ... On 4 Apr., 17:06, Christophe COEVOET s...@notk.org wrote:

Re: [symfony-users] [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-04 Thread Dennis Jacobfeuerborn
On Monday, April 4, 2011 11:10:26 PM UTC+2, Christophe COEVOET wrote: Le 04/04/2011 22:44, Dennis Jacobfeuerborn a écrit : On Monday, April 4, 2011 10:31:30 PM UTC+2, Christophe COEVOET wrote: Le 04/04/2011 22:27, Dennis Jacobfeuerborn a écrit : I just upgraded from PR8 to the

[symfony-users] Re: ckWebServicePlugin unit tests

2011-04-04 Thread el-sid
can anyone please help me with this situation, or at least point me to the right direction. I would be happy to provide further information if needed. I'm stumped and google doesn't point to such an error. thanks again On Apr 5, 12:23 am, el-sid sydneyari...@gmail.com wrote: ok, i managed to

[symfony-users] how to include footer

2011-04-04 Thread Laxmi
I tried to include footer below ?php echo $sf_content ? using include_slot('footer'), Where i defined slot in a module called home/ indexsuccess.php. but i did not get any out put. please let me know where i am doing mistake . Thanks -- If you want to report a vulnerability issue on symfony,

Re: [symfony-users] [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-04 Thread oscar balladares
Hi. Did you define the route for login_check? #app/config/routing.yml _security_login: pattern: /login defaults: { _controller: YourBundle:Security:login } _security_check: pattern: /login_check _security_logout: pattern: /logout 2011/4/4 Dennis Jacobfeuerborn

Re: [symfony-users] Re: The Hello Symfony! Page - Documentation

2011-04-04 Thread oscar balladares
Hi. I should add that Symfony2 is still in Preview Release state, not even Beta. So confusing is expected. I've been following the S2 development since PR6 so for me (and for many more) It hasn't be that hard to keep up. I'm pretty sure that S2 will come along with high quality docs when stable

[symfony-users] Re: [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-04 Thread Christian Schaefer
no. and why would I? there is no controller to handle that route. instead the security component provides a listener that intercepts. or did that change as well? On 5 Apr., 07:14, oscar balladares liebegr...@gmail.com wrote: Hi. Did you define the route for login_check?

[symfony-users] SecurityBundle stops working when moving from PR8 to PR9. (can't find /login_check)

2011-04-04 Thread Christian Schaefer
On 5 Apr., 07:55, Christian Schaefer cae...@gmail.com wrote: no. and why would I? there is no controller to handle that route. instead the security component provides a listener that intercepts. or did that change as well? On 5 Apr., 07:14, oscar balladares liebegr...@gmail.com wrote: