[symfony-users] [Symfony 2] How to use the Assetic Bundle

2011-02-27 Thread Jan Eichhorn
Hi, is there any Documentation how to use the Assetic Bundle correctly within a Symfony 2 Project? I activated the Bundle in my Kernel and added some Configuration to my config.yml In the Twig template i used the assets tag and provide a Folder where my Assets are stored. So far so good. I Ena

[symfony-users] [Symfony2][Doctrine2] Boolean field issue

2011-02-27 Thread Nikita Korotaev
Hi, I'm having issues working with Doctrine2 boolean type(I'm using Mysql db). My mapping is basic: /** * @orm:Column(type="boolean", nullable=false, name="is_deleted") */ protected $isDeleted; When I'm trying to flush the object with $isDeleted=false (or true), the entity is not being added

[symfony-users] Per-application schema.yml files

2011-02-27 Thread Tom Boutell
Should I be able to have separate schema.yml files for separate applications within a Symfony project? That is: apps/frontend/config/doctrine/schema.yml So far it doesn't appear to work, at least not properly, but I want to make sure it's not me before abandoning this useful concept (: Thanks!

[symfony-users] Re: [Doctrine2] Boolean field issue

2011-02-27 Thread Jordi Boggiano
Heya, Please report an issue for this with as much details as you can on the doctrine2 jira http://www.doctrine-project.org/jira/browse/DDC Cheers On Feb 27, 4:27 pm, Nikita Korotaev wrote: > Hi, > > I'm having issues working with Doctrine2 boolean type(I'm using Mysql db). > My mapping is basi

[symfony-users] Normal and ajax version for a template

2011-02-27 Thread Christophe Beyer
Hello, I want to display a template in two modes : the "normal" mode, embedded in the main layout, and an ajax mode; without duplicate my template of course. 1. In my controller, how can I check if the requested url is an ajax request (without adding any parameter) ? 2. In the Twig file, I

Re: [symfony-users] Normal and ajax version for a template

2011-02-27 Thread Christophe COEVOET
Le 27/02/2011 20:48, Christophe Beyer a écrit : Hello, I want to display a template in two modes : the "normal" mode, embedded in the main layout, and an ajax mode; without duplicate my template of course. 1. In my controller, how can I check if the requested url is an ajax request (without

[symfony-users] Re: [Symfony 2] Adding custom labels to form fields

2011-02-27 Thread Justin Fortier
I too found form labels counter intuitive. It would seem it should be easy to override the default label by passing in the option 'label'. Perhaps I'll fork symfony2 implement the changes and do a pull request. -- If you want to report a vulnerability issue on symfony, please send it to security

Re: [symfony-users] Re: [Symfony 2] Adding custom labels to form fields

2011-02-27 Thread Christophe COEVOET
Le 27/02/2011 21:03, Justin Fortier a écrit : I too found form labels counter intuitive. It would seem it should be easy to override the default label by passing in the option 'label'. Perhaps I'll fork symfony2 implement the changes and do a pull request. There is currently a proposal to rewrite

[symfony-users] [Symfony2] Translations custom loader

2011-02-27 Thread MrEnirO
Hey. I am trying to create a custom Translations loader. According to http://docs.symfony-reloaded.org/guides/translation.html i have created my class and configured it, but how do i tell translator to use my custom loader??? And how does it decide what loader to use by default?? YML or PHP ?? --

Re: [symfony-users] [Symfony2] Responding with a template at "core.exception"

2011-02-27 Thread Alexander Kachkaev
Thank you, Christophe. The idea is rather clear. Unfortunately, when I write framework: exception_controller: MyController\Controller\ExceptionController I get the InvalidArgumentException with message “The "framework" tag is not valid”. It seems that I should define this Controller somehow else

[symfony-users] Re: doctrine dbal connection

2011-02-27 Thread igniteflow
I'm having the same issue. I'm using the sandbox and have been following the http://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html tutorial, but am getting the "doctrine.dbal.default_connection" must be defined. error message On Feb 21, 2:06 pm, Daniel Londero wrote: > On 21 Feb

[symfony-users] aid moi 2 jour dans la m pb

2011-02-27 Thread atef naimi
merci mais la pb n'est pas au niveau d'un accolade car si on a ajout cette ligne le message dernier s'affiche et si je supprime cette ligne il n'affiche pas les donner qui ce trouve dans la base de donner (il n'afiche rien): getActiveJobs(sfConfig::get('app_max_jobs_on_homepage')) as $i => $job): ?

[symfony-users] [Symfony2] Base table or view not found error: Doctrine and case-sensitive table names

2011-02-27 Thread olimination
Hello, I have used the console command "php app\console doctrine:schema:create" for automatically creating my database schema out of my annotated class "Wish" in Mysql. The command creates a correct table with the name "wish", it uses lower-case letters at the beginning. On my local dev mach

[symfony-users] Re: Normal and ajax version for a template

2011-02-27 Thread olimination
Hi, Symfony2 offers you a method in the request object called: "isXmlHttpRequest()". See Symfony\Component\HttpFoundation\Request.php /** * Returns true if the request is a XMLHttpRequest. * * It works if your JavaScript library set an X-Requested-With HTTP header. * It is

[symfony-users] Re: Normal and ajax version for a template

2011-02-27 Thread Roger Webb
$this->container->get('request')->isXmlHttpRequest() can also be shortened to $this->get('request')->isXmlHttpRequest() On Feb 27, 1:58 pm, Christophe COEVOET wrote: > Le 27/02/2011 20:48, Christophe Beyer a crit :> Hello, > > > I want to display a template in two modes : the "normal" mode, >

[symfony-users] [Symfony2] Base table or view not found error: Doctrine and case-sensitive table names

2011-02-27 Thread olimination
Hello, I have used the console command "php app\console doctrine:schema:create" for automatically creating my database schema out of my annotated class "Wish" in Mysql. The command creates a correct table with the name "wish", it uses lower-case letters at the beginning. On my local dev mach

Re: [symfony-users] [Symfony2] Translations custom loader

2011-02-27 Thread Christophe COEVOET
Le 26/02/2011 11:26, MrEnirO a écrit : Hey. I am trying to create a custom Translations loader. According to http://docs.symfony-reloaded.org/guides/translation.html i have created my class and configured it, but how do i tell translator to use my custom loader??? And how does it decide what load

Re: [symfony-users] Re: doctrine dbal connection

2011-02-27 Thread Christophe COEVOET
Le 27/02/2011 01:01, igniteflow a écrit : I'm having the same issue. I'm using the sandbox and have been following the http://docs.symfony-reloaded.org/guides/doctrine/dbal/overview.html tutorial, but am getting the "doctrine.dbal.default_connection" must be defined. Which version of the sandb

Re: [symfony-users] Normal and ajax version for a template

2011-02-27 Thread Christophe Beyer
Ok, thanks ! It works fine in the controller, but the line "{% extends ajax ? "" : "MyBundle::layout.twig.html" %}" in the Twig file, bugs : Template name "" is not valid (format is "bundle:section:template.engine.format"). Christophe Le 27/02/2011 20:58, Christophe COEVOET a écrit :

Re: [symfony-users] Normal and ajax version for a template

2011-02-27 Thread Christophe COEVOET
Le 27/02/2011 21:56, Christophe Beyer a écrit : Ok, thanks ! It works fine in the controller, but the line "{% extends ajax ? "" : "MyBundle::layout.twig.html" %}" in the Twig file, bugs : Template name "" is not valid (format is "bundle:section:template.engine.format"). Christophe This

Re: [symfony-users] Re: [Symfony 2] Adding custom labels to form fields

2011-02-27 Thread oscar balladares
The current way is fine for me. I think Labels should go on the View, and be references through the corresponding field's name. Setting the label inside the Form component is what I hated about Symfony 1.x. Lets say the layout desinger tell us that a label like a "UserName" (binded to a field name

[symfony-users] Web hosting provider for Symfony 2? What do you recommend?

2011-02-27 Thread oscar balladares
Hi everybody. As everyone knows, PHP 5.3 is not supported by all web hosting providers. I would be happy to hear about your experience and I would like you to recommend to me a good web hosting provider. There are lots cheaps WHP but I know that you get what you paid for. any suggestion?? -- I