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ć
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
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
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
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
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:
.
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
/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
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
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
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.
.
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
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
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
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.
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
/**
*
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
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
/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
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
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
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
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
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
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
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
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
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
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
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 %}
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
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
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]:
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
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
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,
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
37 matches
Mail list logo