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 =
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
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:
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',
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
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
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
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
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
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
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
11 matches
Mail list logo