[symfony-users] Re: Tabs in Auto-Generated Code

2010-09-12 Thread Davide Borsatto
Which generated file are you referring to? It may be a Propel or Doctrine issue. On Sep 11, 3:17 pm, Felix E. Klee felix.k...@inka.de wrote: In the Symfony coding standards, it says:   Never use tabulations in the code.

[symfony-users] Re: demo site - seperate db connection?

2010-09-09 Thread Davide Borsatto
I guess this has nothing to do with symfony. Just run a SQL file that truncates the tables and inserts the demo content using cron. On Sep 9, 11:46 am, Tofuwarrior p...@clearintent.co.uk wrote: Hi, I want to do a demo of our site and to reset the database every 30 minutes. Would it be

[symfony-users] Re: demo site - seperate db connection?

2010-09-09 Thread Davide Borsatto
databases maybe depending on url or something? Hence the question, what do you think? OR do I just need to run 2 sites/apps which seems like a pain in the head to maintain to me. Cheers, Paul On 9 September 2010 12:04, Davide Borsatto lloy...@gmail.com wrote: I guess this has nothing

[symfony-users] Re: doubt about segment_separators in symfony 1.4

2010-09-05 Thread Davide Borsatto
What error are you receiving? Anyway, pay attention to the fact that without . as segment separator, your URL definition is not correct since you still use / categories.:sf_format (the dot is before :sf_format). My suggestion would be anyway not to use . in the API version number. This way 1.2

[symfony-users] Re: Inconsistent syntax errors in cache files

2010-07-30 Thread Davide Borsatto
Can you upload the generated files, using pastebin or a gist on github? On Jul 29, 6:07 pm, Jonotron jonot...@gmail.com wrote: I've just started playing with Symfony 1.4.6 (after having worked with 1.0 many moons ago) and I am having a significant problem with the generated cache files. It

[symfony-users] Re: Use database in app.yml

2010-07-06 Thread Davide Borsatto
This is not the correct way to handle this. Yaml configuration files are meant for static values. If you need something dynamic, this is probably the wrong way to achieve it. In my opinion, a better approach would be to create a filter in the filter chain, righe before the cache filter, that

[symfony-users] Re: Camel Case

2010-06-09 Thread Davide Borsatto
With Propel (but I think with Doctrine too) tables/columns can have whatever name you want, you simply have to use the attribute phpName in the schema definition: propel: systemUsers: _attributes: { phpName: User } id: ~ userName: { type: varchar(255), required: false, phpName:

[symfony-users] Templates in a single directory

2010-05-16 Thread Davide Borsatto
Hi everybody, for the project I've been working on I need to be able to define multiple themes. With theme I mean the full thing, including php code for the templates, images, stylesheets and javascripts too. But symfony templates structure is not quite friendly for this kind of operation, since

[symfony-users] Re: Templates in a single directory

2010-05-16 Thread Davide Borsatto
://www.symfony-project.org/plugins/ysfDimensionsPluginhelp? cheers, Tony. On May 16, 6:53 pm, Davide Borsatto lloy...@gmail.com wrote: Hi everybody, for the project I've been working on I need to be able to define multiple themes. With theme I mean the full thing, including php code

[symfony-users] Re: before_filter-like function on Symfony

2010-03-15 Thread Davide Borsatto
Gareth suggested a specific use case (the authentication), but if you need something more specific, you can add sfActions::preExecute() and sfActions::postExecute(), which are self-explaining :) The only flaw, compared to rails, is that preExecute and postExecute are executed for every action you

[symfony-users] Re: What do you use symphony for?

2010-01-27 Thread Davide Borsatto
By the way, it's Symfony, not Symphony. On Jan 27, 1:37 am, raviu ravi.undupit...@gmail.com wrote: Hello, Could you tell us what you use symphony for, and how it has helped. Just a summary of one or two lines. I'm making up a report and would like some output from the symphony community.

[symfony-users] Re: Help with should be simple stuff...

2010-01-12 Thread Davide Borsatto
You actually know that the function is sha1 and not sh1, and it's just a typo, right? On Jan 12, 1:24 am, Darren884 darren...@gmail.com wrote: Hello, I am having trouble with the following: I am trying to override my setPassword method for my employee model but everytime I try to overwrite it

[symfony-users] Re: How to set variables In the Global template?

2009-12-20 Thread Davide Borsatto
You have all that code in the global layout? Are you crazy? :) On Dec 17, 3:44 pm, ajit csa...@gmail.com wrote: Hi all, I have an application where I need to customize the look(Color Scheme which matches the client site) for each client using the single codebase...So what I am doing is I am

[symfony-users] Re: My first work with Twig template

2009-11-16 Thread Davide Borsatto
:) On Nov 16, 2:28 pm, ReynierPM rper...@uci.cu wrote: Davide Borsatto wrote: 1 - This is not Twig, you are using the templating component. Maybe you are using both of them, but I actually don't see any reference to twig in the code Yes, I have seen this yesterday but anyway it don't work

[symfony-users] Re: validateMyAction is not executed

2009-11-12 Thread Davide Borsatto
I don't know the solution of your problem, but my advice is this: That's a deprecated feature from symfony 1.0. Now the whole validation system is included within the form framework. Use that instead of relying on deprecated stuff, especially if you're using sf 1.2. On Nov 11, 3:12 pm, Adrien

[symfony-users] Re: Specify connection parameters (databases.yml) in PHP

2009-10-16 Thread Davide Borsatto
, Davide Borsatto lloy...@gmail.com wrote: Hi everybody, Is there a way to specify the connection parameters (those normally specified in databases.yml) via PHP? Maybe in the ProjectConfiguration class, but how? -- Gareth McCumskey http://garethmccumskey.blogspot.com

[symfony-users] Re: Specify connection parameters (databases.yml) in PHP

2009-10-16 Thread Davide Borsatto
and then transfer domain when you're ready for it. On Fri, Oct 16, 2009 at 9:18 AM, Davide Borsatto lloy...@gmail.com wrote: I don't have multiple connections or something like that :) The point is that my crappy company hosting does not allow me to put stuff outside the default root directory

[symfony-users] Specify connection parameters (databases.yml) in PHP

2009-10-14 Thread Davide Borsatto
Hi everybody, Is there a way to specify the connection parameters (those normally specified in databases.yml) via PHP? Maybe in the ProjectConfiguration class, but how? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[symfony-users] Re: Own form formatter

2009-10-07 Thread Davide Borsatto
The form book is not fully written, and IMHO, it will not be completed (at least not soon). My suggestion is to look into the default formatters and see how they work. If i remember well, they just define the html using object protected properties, so you can extend the default formatter and

[symfony-users] Re: spl support: undefined function spl_autoload_register()

2009-10-02 Thread Davide Borsatto
SPL should can not be disabled IMHO. It's called Standard PHP Library, why would someone not enable that... Same as filter library (I'm talking to you, my crappy hosting, I hate you). Back to the topic, I don't think symfony (or its cache) is the problem here, since it can not even load the core

[symfony-users] Re: difficulty with running native SQL command

2009-09-30 Thread Davide Borsatto
Try activating mysql query log in my.ini, it log every query it executes in a file you specify, so you can see what the problem is (or where the string is escaped). It kills the performance, so remember to turn it off after you found the problem. On Sep 30, 6:09 am, wasabhi

[symfony-users] Re: Insert custom styles in template

2009-09-19 Thread Davide Borsatto
Slots are the solution to your problem, read about them in the docs --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To

[symfony-users] Configure a virtual host to access multiple symfony projects

2009-09-18 Thread Davide Borsatto
Hi everybody, Lately I've been doing many experiments with symfony, creating differents projects for each of them. I usually create an apache dedicated virtual host, with a defined server name, link to the web/ directory of symfony, and add a row to the /etc/hosts file to match the new server

[symfony-users] Re: Configure a virtual host to access multiple symfony projects

2009-09-18 Thread Davide Borsatto
, 2009 at 9:48 AM, Davide Borsatto lloy...@gmail.com wrote: Hi everybody, Lately I've been doing many experiments with symfony, creating differents projects for each of them. I usually create an apache dedicated virtual host, with a defined server name, link to the web/ directory of symfony

[symfony-users] Re: Put message from forward404() into template

2009-09-15 Thread Davide Borsatto
I think a flash message for the user object would do the job --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe

[symfony-users] Re: can't use Criteria() class in frontendConfiguration.class.php

2009-09-03 Thread Davide Borsatto
I don't know what you want to do, but you can try in myUser.class.php something like class myUser extends sfBasicSecurityUser { public function initialize(sfEventDispatcher $dispatcher, sfStorage $storage, $options = array()) { parent::initialize($dispatcher, $storage, $options); //

[symfony-users] Re: jobeet day 2 (subversion)

2009-06-13 Thread Davide Borsatto
Cze, 00:20, Davide Borsatto lloy...@gmail.com wrote: And back to the subvesion question, I'm sorry, but I don't use neither ANT nor Eclipse... I can't be helpful... If you understand a little bit of italian, at this link http://server.html.it/guide/leggi/147/guida-subversion

[symfony-users] Re: jobeet day 2 (subversion)

2009-06-12 Thread Davide Borsatto
It requires Apache if you want to use it via a web url, like http://localhost.svn/trunk If you want to use it simply giving the path of the repository in your filesystem, I think there Apache is not needed. Switch to distribuited VCS, by the way. Bazaar is so much better :) On Jun 12, 12:53 

[symfony-users] Re: jobeet day 2 (subversion)

2009-06-12 Thread Davide Borsatto
definitely true :) On Jun 12, 5:47 pm, Orkan ork...@gmail.com wrote: Switch to distribuited VCS, by the way. Bazaar is so much better Can you put some light on this? On Jun 12, 11:10 am, Davide Borsatto lloy...@gmail.com wrote: It requires Apache if you want to use it via a web url

[symfony-users] Re: jobeet day 2 (subversion)

2009-06-12 Thread Davide Borsatto
plugin. For ANT script, I use local filesystem path to access my WC of SVN repository... and without Apache running I get Java returned: 1 error in cmd window. On 12 Cze, 11:10, Davide Borsatto lloy...@gmail.com wrote: It requires Apache if you want to use it via a web url, likehttp