[symfony-users] Re: How to get the database password and login in symfony 1.4 ?

2011-04-07 Thread Flukey
In sfDoctrinePlugin, you can look at the file: sfDoctrineConfigureDatabaseTask.class.php: protected function execute($arguments = array(), $options = array()) { // update databases.yml if (null !== $options['app']) { $file =

[symfony-users] Re: Symfony2 Doctrine2 cheat sheets Released

2011-03-24 Thread Flukey
Excellent work! :-) I've just printed them out for use in my next Symfony 2 and Doctrine 2 project. In A3, attached to the wall. heh. -- 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

[symfony-users] Re: Use Constant in Symfony

2011-02-21 Thread Flukey
Use app.yml In app.yml you could do: all: site: name: domix.in blog: blog.domix.in In a template or action you can do this to retrieve a site setting: sfConfig::get('app_site_name') or sfConfig::get(app_site_blog) You can also set it for different environments, such as: all:

[symfony-users] Re: Use Constant in Symfony

2011-02-21 Thread Flukey
Ah, I do apologise. It's in reference to Symfony 2 and not Symfony 1.4. Discard my post. Sorry. On Feb 21, 2:24 pm, Haulyn Jason saharab...@domix.in wrote: Hi, Before I am Kohana user, I always define something like: ?php     return Array( 'site_name'='domix.in',                        

[symfony-users] Re: (Newbie) Problem with validation: all fields REQUIRED on example form from book

2010-12-14 Thread Flukey
Hi, I know it says in the book that you can create a form on the fly in an action, but this is really bad practice. Even if you try setting the name format for the form with $this-form- widgetSchema-setNameFormat('contact[%s]') you'll get thrown an error because this is a protected property

[symfony-users] Re: Different format for :sf_culture

2010-12-10 Thread Flukey
Hi Felix, As far as I'm aware if you use example.com/es symfony should automatically look for the messages.es.xml file. I have an application where I have English, French and German translations. When I got to a URL like this: example.com/fr/home symfony looks for my messages.fr.xml translations

[symfony-users] Re: (Newbie) Problem with validation: all fields REQUIRED on example form from book

2010-12-10 Thread Flukey
Can you post your action code please? Thanks On Dec 9, 2:55 pm, gfranzini gabriele.franz...@nervianoms.com wrote: Hello, I am experimenting with symfony 1.4.8/Doctrine. I have started entering examples from the Gentle Introduction, and have set up the contact action as in page 171 of the

[symfony-users] Re: Configuration by apache directive

2010-12-09 Thread Flukey
Ah, nice idea :-) On a side note, if you're going to set some settings via the apache directive, you might aswell put the .htaccess (and delete the .htaccess file) rewrite rules in the apache configuration too. You'll get a performance boost too (.htaccess isn't cached, it is read on every

[symfony-users] Re: Learning Symfony2 is difficult because...

2010-12-07 Thread Flukey
Hi Fabien, Thanks for the prompt response and clarifying that. On Dec 7, 9:15 am, Fabien Potencier fabien.potenc...@symfony- project.com wrote: On 12/7/10 1:24 AM, Flukey wrote: Also, from reading a presentation (http://www.slideshare.net/jwage/ symfony2-and-doctrine2-integration) i'm

[symfony-users] Re: Learning Symfony2 is difficult because...

2010-12-07 Thread Flukey
DoctrineUserBundle are very specific on a few things like DAO, so I think it's normal there is no default naming or conventions. On 7 déc, 01:24, Flukey jstevenh...@gmail.com wrote: I've been doing a lot of fiddling around with Symfony2 (latest PR4 release) and reading a lot of it's documentation (I've

[symfony-users] Learning Symfony2 is difficult because...

2010-12-06 Thread Flukey
I've been doing a lot of fiddling around with Symfony2 (latest PR4 release) and reading a lot of it's documentation (I've read pretty much all of it) The problem i'm faced with now, are the best practices. I've looked at many of the bundles/projects source on symfony2bundles.org and they all