[symfony-users] Re: [Symfony2] Problems creating sqlite database

2010-09-08 Thread Fangzx
I have the same problem, my Doctrine Configuration for sqlite is as follows (in config/config.php): $rootDir = dirname(dirname(__DIR__)); $container-loadFromExtension('doctrine', 'dbal', array( 'driver' = 'PDOSqlite', 'path' = $rootDir . '\db.sqlite', 'user' = '',

Re: [symfony-users] Re: IE8 and isXmlHttpRequest

2010-09-08 Thread Gareth McCumskey
http://www.i-marco.nl/weblog/images/breakdown.png http://www.i-marco.nl/weblog/images/breakdown.pngNotice the nice big Orange pie slice ;) On Thu, Sep 2, 2010 at 8:27 PM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Damn... it indeed was a cache problem. God I hate IE Thank you!

Re: [symfony-users] Re: [Symfony2] Problems creating sqlite database

2010-09-08 Thread Greg Thornton
Hmm, Alfonso you posted this on both the developers and users list! I answered your question there: It looks like this is a bug in Doctrine2, or at least a lack of support for the newer driverClass option in the SqliteSchemaManager class. I believe Doctrine2 expects the driver parameter to be

[symfony-users] Practical symfony Day 3, need help

2010-09-08 Thread Jeff
Hi, I am trying to learn symfony. Upon reaching the day 3 of the document http://www.symfony-project.org/jobeet/1_4/Propel/en/03 On the part of the document where it tells me to run php symfony propel:data-load, I get this error propelload data from /home/leaf/jobeet/data/fixtures Call

[symfony-users] Re: Race condition with session data

2010-09-08 Thread Phil Moorhouse
The site needs to work with javascript disabled so unfortunately that's not an option at present. Adding a delay seems a bit of an unreliable way to work around the problem due to not being able to guarantee how long A1 will take to finish sending content. Is there definitely no way to force a

[symfony-users] Re: find out if user has credentials for route

2010-09-08 Thread Jochen Daum
Hi, On Wed, Sep 8, 2010 at 2:01 PM, Jochen Daum jdau...@gmail.com wrote: Hi all, I have a backend application with various access cerdentials for a variety of modules. I'd like to build a navigation list, which should obviously be adjusted depending on what access rights you have. Is

Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin + Admin Generator

2010-09-08 Thread Daniel Lohse
Hey there, you'll need to set the displayEmptyRelations option to true as described in the README. That way, even if there are no embedded relations yet (as in the edit view or the add view), the widget Documents exists in the form. Cheers, Daniel On 07.09.2010, at 18:44, John Kary wrote:

[symfony-users] Re: Race condition with session data

2010-09-08 Thread Phil Moorhouse
The answer is: yes - $this-getUser()-shutdown() seems to work. If anyone knows of a particular reason why this might be a bad idea, please let me know. On 8 Sep, 09:10, Phil Moorhouse moorhouse.p...@gmail.com wrote: The site needs to work with javascript disabled so unfortunately that's not an

Re: [symfony-users] Re: Race condition with session data

2010-09-08 Thread Gareth McCumskey
This is not a bad idea and in fact we have used to prevent session write locking as we would have multiple ajax requests running on a page load each with semi-lengthy processes running that would force the ajax requests to queue instead of run asynchronously because of session write locking. By

Re: [symfony-users] Using mysql php functions in symfony

2010-09-08 Thread Gareth McCumskey
Why do things outside of symfony and the databases.yml? http://www.lampjunkie.com/2008/04/using-multiple-databases-in-symfony-with-propel/ On Tue, Sep 7, 2010 at 7:52 AM, DEEPAK BHATIA toreachdee...@gmail.comwrote: Hi, I tried accessing some other database than specified in databases.yml.

Re: [symfony-users] Using mysql php functions in symfony

2010-09-08 Thread DEEPAK BHATIA
Hi, I have four databases by the name 1. rtdb 2. crb 3. pist The rtdb and pist has emp_table but the same is given employee_table in crb. This link shows that if two tables names are same in two different databases then the connection can be switched. pist1 database - databases.yml

Re: [symfony-users] Abridged summary of symfony-users@googlegroups.com - 36 Messages in 18 Topics

2010-09-08 Thread joost . farla
Beste, Tot en met vrijdag 10 september ben ik niet aanwezig op kantoor. U kunt voor dringende zaken contact opnemen met mijn collega Dimitri van Hees: dimi...@freshheads.com of 013 5448761. Met vriendelijke groet, Joost Farla joost.fa...@freshheads.com - - freshheads grafisch ontwerp en

[symfony-users] Re: ahDoctrineEasyEmbeddedRelationsPlugin + Admin Generator

2010-09-08 Thread John Kary
'displayEmptyRelations' = true fixed my problem. Thanks Daniel! On Sep 8, 3:58 am, Daniel Lohse annismcken...@googlemail.com wrote: Hey there, you'll need to set the displayEmptyRelations option to true as described in the README. That way, even if there are no embedded relations yet (as in

[symfony-users] [Symfony2] Manually doing SQL

2010-09-08 Thread Stephane Duguay
Hi, I want to use 2 MySQL databases with my Symfony2 project. I want to have my code stay Doctrine-free or Propel-free because I'm ok at manually building SQL queries and I want minimal DB overhead (major scaling requirements). Is this a bad idea? It seems like I can just write the controllers

Re: [symfony-users] Using mysql php functions in symfony

2010-09-08 Thread DEEPAK BHATIA
Thanks Gareth, Please see if you can answer my question. Regards Deepak Bhatia On Wed, Sep 8, 2010 at 5:28 PM, DEEPAK BHATIA toreachdee...@gmail.comwrote: Hi, I have four databases by the name 1. rtdb 2. crb 3. pist The rtdb and pist has emp_table but the same is given employee_table

Re: [symfony-users] readonly related value in form

2010-09-08 Thread Marco Rocci
I solved this. Maybe the solution can be of use to someone else. Il 06/09/2010 9.27, Marco Rocci ha scritto: Symfony 1.4 Doctrine admin backend application With this simplified schema: Product: columns: code: { type: string(10) } name: { type: string(100) }

[symfony-users] [Symfony 1.x] Basic question: Problems getting instances of Doctrine Table in production server

2010-09-08 Thread Gustavo Adrian
Hi, This is not a Symfony / Doctrine specific question but well.. I'm sure you can help me with this. I have to instantiate a doctrine table dynamically: *$table = 'MyDoctrineTable'; $instance= $table::getInstance();* In my dev server (PHP v5.3.2) it works fine. In my production

[symfony-users] Doubts about translations in a plugin

2010-09-08 Thread Juan
Hi every body, I made an app following the Jobeet tutorial and I packaged in a plugin without I10N and I18N, currently I need to get this app translated but the command symfony i18n:extract... doesn't work. It returns 0 strings to translate. Is posible to translate an application that is already

[symfony-users] Removing a field from a form in an action

2010-09-08 Thread torok84
Hi, I have a form to select some search options. I have a field that I wanto to show only if the user is logged in. I want to do something like this: if(!$this-getUser()-hasAttribute('user')) unset($this-form-widgetSchema['mine']); that doesn't work because widgetSchema is protected.

[symfony-users] Escape quote on FormFilter

2010-09-08 Thread jdeveloper
Hi I have a little problem in implementing a form filter using doctrine. The problem is that I need to filter fields belonging to an related table. So I create cutom addXColumnQuery methods: public function addPnombreColumnQuery(Doctrine_Query $query, $field, $value) {

[symfony-users] Re: Removing a field from a form in an action

2010-09-08 Thread jdeveloper
I think you could pass the user as an option in the constructor, and than unset it in the configure method. Hope it helps On Sep 8, 4:31 pm, torok84 toro...@gmail.com wrote: Hi, I have a form to select some search options. I have a field that I wanto to show only if the user is logged in. I

[symfony-users] [Symfony2+Doctrine2]Testing with SQLite In-Memory Databases

2010-09-08 Thread Fangzx
How can I test with SQLite In-Memory databases in Symfony2+Doctrine2? -- 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 users group. To post to this

AW: [symfony-users] Removing a field from a form in an action

2010-09-08 Thread Christopher Schnell
hi, you could do something nasty like if(!$this-getUser()-hasAttribute('user')) $tempSchema=$this-form-getWidgetSchema(); unset($tempSchema ['mine']; $this-form-setWidgetSchema($tempSchema); } but this wouldn't be testable. better solution is

[symfony-users] Re: Removing a field from a form in an action

2010-09-08 Thread jdeveloper
I think you could pass the user as an option in the constructor, and than unset it in the configure method. Hope it helps On Sep 8, 4:31 pm, torok84 toro...@gmail.com wrote: Hi, I have a form to select some search options. I have a field that I wanto to show only if the user is logged in. I

[symfony-users] Re: mobile site strategy

2010-09-08 Thread Kevin
How do you get it to work for layouts? On Sep 7, 8:40 am, Kevin kevinb...@gmail.com wrote: Thanks, this stuff is great.  Never thought of that. On Sep 7, 3:49 am, klemens_u klem...@ull.at wrote: Hi, it's basically really just a question of view. Here's an old blog post about creating

Re: [symfony-users] Re: mobile site strategy

2010-09-08 Thread Gustavo Adrian
You could create a custom layout for mobile sites. Then, in the action: $this-setLayout( 'myMobileLayout' ); You could create a custom base action that extends from sfActions, where you check for the sf_format value for the request in the preExecute method. Then, based on that value, set the

[symfony-users] Re: mobile site strategy

2010-09-08 Thread Kevin
I found also you can add .sf_format to a layout: layout.mobile.php to automatically use that layout when sf_format is not html (this was mentioned above my klemens_u) On Sep 8, 1:48 pm, Gustavo Adrian comfortablynum...@gmail.com wrote: You could create a custom layout for mobile sites. Then, in

Re: [symfony-users] Re: mobile site strategy

2010-09-08 Thread Gustavo Adrian
That's a nice tip that I didn't know. Thanks for mention it! On Wed, Sep 8, 2010 at 2:57 PM, Kevin kevinb...@gmail.com wrote: I found also you can add .sf_format to a layout: layout.mobile.php to automatically use that layout when sf_format is not html (this was mentioned above my klemens_u)

Re: [symfony-users] Practical symfony Day 3, need help

2010-09-08 Thread Marcio Pozzato
Hi Jeff, (Symfony Users Group) I did it with success, but on Windows and using the XAMPP Package (PHP, MySQL and Apache). For Linux, it is LAMPP. It needs so much patience. Now, I'm in Day 5. I can't find your problem, then I'm giving you below some tips. In my case, all commands were typing

Re: [symfony-users] [Symfony2] Manually doing SQL

2010-09-08 Thread Alexandre Salomé
It's not a bad idea, and can be justified in some cases. Doctrine was separated in 2 parts in the version 2 : ORM and DBAL. ORM provides mapping Object - Database. DBAL provides abstraction for SQL querying. Have a look at Doctrine project website. The service is named doctrine.dbal in

Re: [symfony-users] [Symfony2] Manually doing SQL

2010-09-08 Thread Richard D Shank
If you aren't wanting to use Doctrine at all, its possible, but never put your sql in the controller. The idea behind the MVC Pattern is to separate the business from the control, and of course, the display from both of those. Put your sql in your model and put your model in the Entity