[symfony-users] Re: Months in date field not always in same format

2011-06-05 Thread umpirsky
Is there any chance to get them in full name format (January, February...) by configuring intl? On Jun 5, 6:26 pm, Саша Стаменковић umpir...@gmail.com wrote: Yes, you are right. After installing intl months are displayer like Jan, Feb... Thank you evry much! --- Regards, Saša Stamenković

[symfony-users] Months in date field not always in same format

2011-06-03 Thread umpirsky
i use form date field like: // ... -add('valid_untill', 'date', array( 'label' = 'Valid untill', 'years' = range(date('Y'), date('Y') + 5) )); // ... render it like: {{ form_row(form.valid_untill, { 'date_pattern': '{{ month }} {{ year }}' }) }} I

[symfony-users] Re: Custom user authorization

2011-05-26 Thread umpirsky
you enable custom factories http://symfony.com/doc/current/reference/configuration/security.html, but listeners are defined in separate config file. So, I don't know how to force it to use my custom listener. Any idea? On May 25, 7:36 pm, umpirsky umpir...@gmail.com wrote: Thank you for your

[symfony-users] Re: Custom user authorization

2011-05-26 Thread umpirsky
Now I'm getting 'LogicException' with message 'No authentication listener registered for pattern ^/. and it looks like I'm not alone http://forum.symfony-project.org/viewtopic.php?f=23t=35423 On May 26, 11:58 am, umpirsky umpir...@gmail.com wrote: I managed to implement my own factory class

[symfony-users] Re: Custom user authorization

2011-05-26 Thread umpirsky
arguments: [@security.context, @security.authentication.manager, @security.authentication.session_strategy, ''] Error: Uncaught exception 'OutOfBoundsException' with message 'The index 4 is not in the range [0, 3]. On May 26, 2:03 pm, umpirsky umpir...@gmail.com wrote: Now I'm getting

[symfony-users] Custom user authorization

2011-05-25 Thread umpirsky
I want to implement simple user authorization via hash url. I see there is support for in memmory auth, simple HTTP auth and login form. Is there any way to implement custom authorization, in my case via hash url? Ofc, I will implement auth algorithm, but I want Symfony to handle the rest:

[symfony-users] Re: Custom user authorization

2011-05-25 Thread umpirsky
. It looks like I need to implement UserAuthenticationProvider implements AuthenticationProviderInterface but I'm not sure. Not sure how to enable it either. On May 25, 2:32 pm, Christophe COEVOET s...@notk.org wrote: Le 25/05/2011 14:25, umpirsky a crit : I want to implement simple user

[symfony-users] Re: Symfony2 theming

2011-05-24 Thread umpirsky
/yuicompressor.jar yui_js: jar: %kernel.root_dir%/Resources/java/yuicompressor.jar And in layout I have: {% stylesheets 'css/*' filter='?yui_css' %} link rel=stylesheet type=text/css media=all href={{ asset_url }} / {% endstylesheets %} On Apr 29, 1:13 pm, umpirsky umpir

[symfony-users] Access DI contaier in twig layout

2011-05-23 Thread umpirsky
I want to have html meta data configurable in my project. I have my custom service which holds this information (page title, keywords, description...). So I want to access them in my layout. How can I achieve this? -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] Theming Symfony2 application

2011-05-23 Thread umpirsky
I want to have separate css/img (static) files for each theme configured for my Symfony project. How can I do this, probably some url and asset configuration? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

[symfony-users] Re: SF2 Beta2 - Date Field (3 Text Boxes instead of 1)

2011-05-23 Thread umpirsky
Can I render only year and month? Useful for credit cards for example. On May 23, 8:11 pm, Roger Webb webb.ro...@gmail.com wrote: It's in the update doc and I'm having a severe case of the mondays. Form: Renamed option value text of widget option of the date type was renamed to single-text.

[symfony-users] Re: SF2 Beta2 - Date Field (3 Text Boxes instead of 1)

2011-05-23 Thread umpirsky
. Not sure if that's the best solution, but either one should work. On May 23, 1:35 pm, umpirsky umpir...@gmail.com wrote: Can I render only year and month? Useful for credit cards for example. On May 23, 8:11 pm, Roger Webb webb.ro...@gmail.com wrote: It's in the update doc and I'm

[symfony-users] Re: Access DI contaier in twig layout

2011-05-23 Thread umpirsky
Fixed with: twig: globals: globalMeta: @myMetaService On May 23, 3:40 pm, umpirsky umpir...@gmail.com wrote: I want to have html meta data configurable in my project. I have my custom service which holds this information (page title, keywords, description...). So I want to access

[symfony-users] Entities passed to the choice field must be managed

2011-05-18 Thread umpirsky
I have a wizard of few steps. Each step manage separate doctrine entity, save it in session and proceed to next step. On one step I have address data, and using EntityChoiceList to display countries from database in choice (select) field. Problem is, when I go back in my wizard, I load entity

[symfony-users] Re: Re : Custom validator never called

2011-05-15 Thread umpirsky
Thank you very much Michael, this helped a lot. One important thing: framework: # ... validation: enabled: true annotations: namespaces: my: My\Validator\Constrains - my: My\Validator \Constrains\ Won't work without \ at the end. Very strange.

[symfony-users] Callback validation

2011-05-14 Thread umpirsky
I'm trying to do something like this https://github.com/brikou/AcmePizzaBundle/blob/master/Entity/Factory/OrderFactory.php#L12 in symfony2 beta1, but it simply does not trigger my validation callback. When I try this http://symfony.com/doc/current/book/validation.html#getters /** *

[symfony-users] Symfony2 multiple forms on one page

2011-05-10 Thread umpirsky
I have one form that have several subforms. Depending on radio button clicked, javascript expands one subform. In order to achieve this using form component, I have created many separated form objects, which are rendered under main form. Depedngin on radio switch ($request-get('radio')) I

[symfony-users] Re: Symfony2 multiple forms on one page

2011-05-10 Thread umpirsky
I see children can be added to form. But nothing in the doc. On 10 мај, 11:40, umpirsky umpir...@gmail.com wrote: I have one form that have several subforms. Depending on radio button clicked, javascript expands one subform. In order to achieve this using form component, I have created many

[symfony-users] Re: Symfony2 multiple forms on one page

2011-05-10 Thread umpirsky
/Bundle/TwigBundle/Resources/views/Form/div_layout.html.twig collection_widget is never used in form_widget. Strange. Anyone knows how to render collections? Also, I want to add CreditCardFormType as well, but don't know how. On 10 мај, 11:44, umpirsky umpir...@gmail.com wrote: I see children can

[symfony-users] Translating model validation assertion messages

2011-05-09 Thread umpirsky
What about validation messages like http://symfony.com/doc/current/book/validation.html#getters how do we translate them? /** * @assert:True(message = The token is invalid) */ public function isTokenValid() { // return true or false } Message The token is invalid

[symfony-users] Add custom listener

2011-05-09 Thread umpirsky
Config: kernel.listener.session_listerner: class: My\SessionListener tags: - { name: kernel.listener, event: core.controller } Code: class SessionListener { public function onCoreController(Event $event) { // TODO: check if session is active here

[symfony-users] Re: Add custom listener

2011-05-09 Thread umpirsky
do I define if my eent is triggered onCoreRequest or onCoreController or ...? On 9 мај, 13:03, Christophe COEVOET s...@notk.org wrote: Le 09/05/2011 12:53, umpirsky a crit : Config:      kernel.listener.session_listerner:          class: My\SessionListener          tags

[symfony-users] Re: Add custom listener

2011-05-09 Thread umpirsky
Probably by event method name. On 9 мај, 13:17, umpirsky umpir...@gmail.com wrote: Thanks, now it works. I thought core.controller is predefined somewhere, I saw it onhttp://docs.pixel-web.org/symfony2/book/internals/kernel.html#handlin... Listeners of the core.controller event can now

[symfony-users] Re: Add custom listener

2011-05-09 Thread umpirsky
Thanks! On 9 мај, 13:20, Christophe COEVOET s...@notk.org wrote: Le 09/05/2011 13:17, umpirsky a écrit : Thanks, now it works. I thought core.controller is predefined somewhere, I saw it on http://docs.pixel-web.org/symfony2/book/internals/kernel.html#handlin... Listeners

[symfony-users] Re: Unknown or bad timezone (1024)

2011-05-06 Thread umpirsky
umpirsky, If you're using Linux, try to see if you have the timezone file /usr/share/zoneinfo/Europe/Berlin. Regards, Haris On 6 May 2011 03:27, umpirsky umpir...@gmail.com wrote: Exception: DateTimeZone::__construct() [datetimezone.--construct]: Unknown or bad timezone (1024

[symfony-users] Re: Unknown or bad timezone (1024)

2011-05-06 Thread umpirsky
Yes, I have /usr/share/zoneinfo/Europe/Berlin. On May 6, 10:34 am, umpirsky umpir...@gmail.com wrote: Hi. Thanks for the answer. I will check that. But same error occured when date.timezone was commented in php.ini. In DateType::buildForm DateTimeZone::UTC (=1024) is passed as time zone ID

[symfony-users] Rendering form errors

2011-05-05 Thread umpirsky
When there are errors in form validation, only field errors are rendered (error message beside each field). Form errors {{ form_errors(form) }} renders nothing for me. I expected there all errors collected from all fields to be rendered. Am I missing something? -- If you want to report a

[symfony-users] Unknown or bad timezone (1024)

2011-05-05 Thread umpirsky
Exception: DateTimeZone::__construct() [datetimezone.--construct]: Unknown or bad timezone (1024) in vendor/symfony/src/Symfony/Component/ Locale/Stub/StubIntlDateFormatter.php Any idea how to solve this? I have date.timezone = Europe/Berlin in php.ini ? -- If you want to report a

[symfony-users] doctrine:generate:repositories not found

2011-05-04 Thread umpirsky
Looks like there is no doctrine:generate:repositories command in Symfony2 beta1. Is it removed? How can I generate repostories now? -- 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

[symfony-users] Translating form labels in custom domain don't work

2011-04-30 Thread umpirsky
I wanted to translate form labels, but to have them in forms translation domain, not in default messages domain as expected by field_label.html.php so I customized it with: {% block field_label %} label for={{ id }}{% trans from forms %}%label%:{% endtrans %}/ label {% endblock field_label %}

[symfony-users] Symfony2 theming

2011-04-29 Thread umpirsky
I want basic theming support in my Symfony2 project, so I wanted to have separated static files (css, js, img) for each theme. I have tried to add assetic: read_from: %kernel.root_dir%/../web/themes/mytheme but this took no effect, my {{ asset('css/style.css') }} are still referencing

[symfony-users] Re: Case problem with doctrine2, symfony2 and postgresql entities

2011-04-19 Thread umpirsky
Solved http://dev.umpirsky.com/soap-server-and-test-client-with-zend_soap-symfony2-doctrine2-and-postgresql/ On 7 апр, 15:06, cgb cgbrando...@gmail.com wrote: replace main to public On 6 abr, 19:44, umpirsky umpir...@gmail.com wrote: Hi. I have a problem with doctrine2 in symfony2

[symfony-users] Case problem with doctrine2, symfony2 and postgresql entities

2011-04-07 Thread umpirsky
Hi. I have a problem with doctrine2 in symfony2 app with postgres database. I get error: SQLSTATE[3F000]: Invalid schema name: 7 ERROR: schema main does not exist Problem is that my schema is Main not main. When I rename it, similar thing happends for table relation: SQLSTATE[42P01]:

[symfony-users] Re: [Sf2] doctrine:schema:create

2011-03-08 Thread umpirsky
My config: doctrine: dbal: driver: pdo_mysql dbname: name user: root password: logging: %kernel.debug% orm: auto_generate_proxy_classes: %kernel.debug% mappings: HelloBundle: ~ when I run console:doctrine:import HelloBundle yml it

[symfony-users] Symfony2 doctrine:mapping:import

2011-03-08 Thread umpirsky
Hi. I'm using latest Symfony2 package and latest sandbox app. In my config I have: CODE: SELECT ALL doctrine: dbal: driver: pdo_mysql dbname: name user: root password: logging: %kernel.debug% orm: default_entity_manager: default

[symfony-users] Symfony2 console

2011-01-09 Thread umpirsky
Hi. Is there any resource where I can read about symfony2 code generation console. For now I only managed to create bundles, but that just creates empty bundle, then I should register it by hand (well that's ok), and I can't see commands for creating new controllers, routes, views... Regards,

[symfony-users] Symfony Console Component

2011-01-02 Thread umpirsky
Hi. I just wrote an article about Building CLI Apps With Symfony Console Component. Since there is no official documentation for this compoent yet, maybe someone will find it useful http://dev.umpirsky.com/building-cli-apps-with-symfony-console-component/. Regards, Saša Stamenković. -- If you