[symfony-users] Re: Symfony + Propel + Multiple Schemas

2008-04-10 Thread Ryan G
Multiple schemas in terms of Oracle basically means multiple user accounts, with a different set of tables in each. Potentially the same table name could exist in both, with different DDL data in those tables. Luckily in my case, the same table name doesnt appear to exist in multiple schemas

[symfony-users] Re-using a 1.1 form on the same template

2008-04-10 Thread tom ee
Hi everyone, Hopefully someone will have come across this scenario before and will be happy to share their knowledge. I am developing a CMS, which re-uses a form in a template. The form has a text input, and a couple of hidden fields. The form is used 5 times in the view template, with a

[symfony-users] Mangled HTML after POST

2008-04-10 Thread plungerman
greetings, we are using symfony 1.0.9 under apache 2.2 with PHP 5.2.3 on ubuntu. after a POST request is sent from a form, the HTML is changed somehow by symfony internals. that is, a new html and body tag are substituted into the HTML, which renders the remaining layout rather mangled. here

[symfony-users] Re: component variable

2008-04-10 Thread Thomas Rabaix
Hello, Please keep in mind that the partial should not do any logic, or creates variables for another partial. As a partial can be used at different places. Partial should be used only to render elements. Thomas On Wed, Apr 9, 2008 at 11:54 AM, Eugene Leonovich [EMAIL PROTECTED] wrote: You

[symfony-users] Re: production profiling

2008-04-10 Thread Thomas Rabaix
Hello, You can look to the code of sfWebDebug and sfWebDebugFilter. Thomas On Wed, Apr 9, 2008 at 11:15 PM, hutchic [EMAIL PROTECTED] wrote: In a production environment I'd like to be able to record profiling statistics such as execution time, number of queries and time per query.

[symfony-users] Re: Redirect AND https

2008-04-10 Thread Thomas Rabaix
Hello, If your current action (the one which redirect) is http the sfWebController will redirect to an http server. If your current action (the one which redirect) is httpS the sfWebController will redirect to an https server. Now if you want to redirect from a http server to a https serveur

[symfony-users] Re: Symfony + Propel + Multiple Schemas

2008-04-10 Thread Ryan G
ah hmm.. even though a master schema exists which has privileges to access these tables from other schemas, of course actually i still need to prepend the schema name onto the select statement.. eg. select * from schema.tablename for it to work .. which is something propel/doctrine doesn't

[symfony-users] Re: csrf_token required

2008-04-10 Thread Marijn
Hi everybody, pretty indecent of me to bump my thread but I'm really in need of a solution :-( For the sake of clarity: - have installed the latest symfony 1.1 beta - created my model - generated crud actions with the symfony CLI - set the csfr_secret value in settings.yml all .settings -

[symfony-users] Re: Mangled HTML after POST

2008-04-10 Thread Thomas Rabaix
Hello, This could be an issue with the yml form validator. : - The validator uses the sfFillInForm class to put values back to the form. - The sfFillInForm class uses the DomDocument class to parse and access to form element. The error may come from when the DomDocument return the html. The

[symfony-users] Re: Symfony + Propel + Multiple Schemas

2008-04-10 Thread Reynier Perez Mira
. Reynier Pérez Mira Grupo Soporte al Desarrollo - Dirección Técnica IP __ Information from ESET NOD32 Antivirus, version of virus signature database 3015 (20080410) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com

[symfony-users] Re: Symfony + Propel + Multiple Schemas

2008-04-10 Thread Luciano A. Andrade
in the same DB. [1] http://orafaq.com/wiki/Schema ¿Another approach? Cheers and thanks in advance Ing. Reynier Pérez Mira Grupo Soporte al Desarrollo - Dirección Técnica IP __ Information from ESET NOD32 Antivirus, version of virus signature database 3015 (20080410

[symfony-users] Re: csrf_token required

2008-04-10 Thread Fabien POTENCIER
Do you use the 1.1 beta 2 or /branches/1.1? Do you use the code generated by the generate-crud CLI or have you modified something? It will easier to help you out if you can post the generated code as I've just tested the generate-crud on a brand new project and it works for me. Thanks,

[symfony-users] Re: Redirect AND https

2008-04-10 Thread Bruno Reis
Since my servers were configured in a diferent way the request-isSecure did not work... so I did the following change to work: /** * Returns true if the current request is secure (HTTPS protocol). * * @return boolean */ public function isSecure() { $pathArray =

[symfony-users] Re: modify filters location on admin generated

2008-04-10 Thread Jill Elaine
To be honest, I just hacked the sf/sf_admin/css/main.css for many of my changes. I know it's not good practice though, but I make a list of all hacked symfony files so I can pay attention if I upgrade or have other problems later. I think though, that you can override symfony's css by putting a

[symfony-users] Re: Re-using a 1.1 form on the same template

2008-04-10 Thread Fabien POTENCIER
You definitely need to create 5 separate forms in your actions as one default value is different for each as you've said (changing a field value in the template is not a good thing IMO). To have unique ids, and to be able to validate/save your forms, you need to change the name format of each

[symfony-users] Re: Symfony + Propel + Multiple Schemas

2008-04-10 Thread Ryan G
. [1]http://orafaq.com/wiki/Schema ¿Another approach? Cheers and thanks in advance Ing. Reynier Pérez Mira Grupo Soporte al Desarrollo - Dirección Técnica IP   __ Information from ESET NOD32 Antivirus, version of virus signature database 3015 (20080410) __ The message

[symfony-users] Re: Symfony + Propel + Multiple Schemas

2008-04-10 Thread Ian P. Christian
Ryan G wrote: Reynier - I agree with you - this is exactly my situation too. As far as I'm aware Doctrine also does not support this yet. There is a ticket for this issue: http://trac.phpdoctrine.org/ticket/594, and heres Propels: http://propel.phpdb.org/trac/ticket/460 ... Apparently nobody

[symfony-users] Re : [symfony-users] Re: csrf_token required

2008-04-10 Thread Loïc Vernet
Same problem with 1.1 beta2 It only happens if i manually set the widgets of my form class CollaborateurForm extends BaseCollaborateurForm { /** * Configuration du formulaire. * * @author lvernet * @since 09 apr 08 */ public function configure() {

[symfony-users] Re : [symfony-users] Re: problems generation of form in 1.1b2

2008-04-10 Thread Loïc Vernet
Ok, thanks Fabien, i will use the trunk then. Loïc. - Message d'origine De : Fabien POTENCIER [EMAIL PROTECTED] À : symfony-users@googlegroups.com Envoyé le : Jeudi, 10 Avril 2008, 16h00mn 22s Objet : [symfony-users] Re: problems generation of form in 1.1b2 Hi Loïc, Loïc Vernet

[symfony-users] Re: Re : [symfony-users] Re: problems generation of form in 1.1b2

2008-04-10 Thread Fabien POTENCIER
not the /trunk, but /branches/1.1. Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.com | aide-de-camp.org Tél: +33 1 40 99 80 80 Loïc Vernet wrote: Ok, thanks Fabien, i will use the trunk then. Loïc. - Message d'origine De :

[symfony-users] modifying default date and time format for a culture

2008-04-10 Thread pihentagy
Hi all! Is it possible to override the dateformat for a given culture? I would like to remove the CEST string from the end of the date of one culture, but I would like not to touch other culture's date displays. Thanks Gergo --~--~-~--~~~---~--~~ You received

[symfony-users] Re: Symfony + Propel + Multiple Schemas

2008-04-10 Thread Ryan G
lol thats useful :) Nah seriously, does anyone from Doctrine read these forums and could give us any direction? :) Maybe we should be posting this on the Doctrine forum too? :) On 10 Apr, 14:39, Ian P. Christian [EMAIL PROTECTED] wrote: Ryan G wrote: Reynier - I agree with you - this is

[symfony-users] Re: Symfony + Propel + Multiple Schemas

2008-04-10 Thread Reynier Perez Mira
lol thats useful :) Nah seriously, does anyone from Doctrine read these forums and could give us any direction? :) Maybe we should be posting this on the Doctrine forum too? :) A friend mine in spanish community/list made a modifications to PgSQLDatabaseInfo and PgSQLConnection classes [1]

[symfony-users] Re: cache without layout - setLayout and addStyleSheet

2008-04-10 Thread pihentagy
Maybe I am misunderstanding something, but I think this ticket is not the same as my problem. I have an action cached without layout. Layout is changed in a filter. Stylesheets and layout seems to be cached, but they shouldn't. On Apr 9, 1:45 pm, Fabien POTENCIER [EMAIL PROTECTED] project.com

[symfony-users] Re: csrf_token required

2008-04-10 Thread Marijn
Hi Fabien, The output of the version that I have installed on my server from the symfony CLI: symfony version 1.1.0-BETA2 (/var/www/vhosts/example.org/sf_core/ lib) I installed the framework via SVN from this location: http://svn.symfony-project.com/tags/RELEASE_1_1_0_BETA2 I made some

[symfony-users] wrong-generated sql-query (symfony propel-generate-crud)

2008-04-10 Thread Dan Jipa
One of my actions in a module calls the *RetrievebyPK method* and generated 0 results. I've used the debug mode and I discovered a *wrong generated sql-query*. SELECT menu_items.ID, menu_items.CATEGORY_ID, menu_items.PRODUCT_NAME, menu_items.OWNER_ID, ... WHERE menu_items.ID IS NULL I can't

[symfony-users] Re: Symfony + Propel + Multiple Schemas

2008-04-10 Thread Eno
On Apr 10, 6:27 am, Ryan G [EMAIL PROTECTED] wrote: Multiple schemas in terms of Oracle basically means multiple user accounts, with a different set of tables in each. Within the same database or does each user have a separate database? I ask because you can define multiple database

[symfony-users] Re: Symfony + Propel + Multiple Schemas

2008-04-10 Thread Reynier Perez Mira
Within the same database or does each user have a separate database? Yep, within the same database. We too have been working with legacy code where we have to work with existing tables but also add new tables for new features (which usually becomes a new database with its own set of tables).

[symfony-users] new snippet: integrate SfGuard tables in your global schema

2008-04-10 Thread Olivier LOYNET
Hi, I wrote a snippet to integrate SfGuard tables in your global schema http://www.symfony-project.org/snippets/snippet/298 Currently it only transform XML schema. Hope that it can be useful ! Olivier --~--~-~--~~~---~--~~ You received this message because

[symfony-users] sfGuard installing problems

2008-04-10 Thread Reynier Perez Mira
Hi every: I build a clean Project to install, configure and try sfGuard and LDAP. I download the file sfGuardPlugin-1.1.13.tgz from www.symfony-project.org uncompress and start read the file README. I start following every step by step: - Configuring the databases.yml all: propel: class:

[symfony-users] low level cache?

2008-04-10 Thread pihentagy
Hi all! Is there a way to store arbitrary data in the cache? (I mean, neither view, not partial, just data of my taste) I have tried $cache = $this-getContext()-getViewCacheManager();

[symfony-users] Re: csrf_token required

2008-04-10 Thread Thomas Rabaix
Marjin, I used the sfFrom class before the introduction of the secret in the settings.yml, And to make thing works fine I have to use this bit of code : Note : I have only used propel form generated by the command line abstract class BaseFormPropel extends sfFormPropel { public function

[symfony-users] Re: low level cache?

2008-04-10 Thread Fabian Lange
Hi, have a look at: http://www.symfony-project.org/book/1_0/18-Performance#Caching%20the%20Resul t%20of%20a%20Function%20Call you can also use APC or eZCache for that. There is a wrapper for that in sf1.0 I wonder why Fabien has deprecated it for 1.1: sfProcessCache (lib/cache) [in sf 1.1 you

[symfony-users] Re: csrf_token required

2008-04-10 Thread Marijn
It seems to get worse and worse. I altered the BaseFormPropel class as you said and now I keep getting require errors like this: Warning: require_once(propel/Propel.php) [function.require-once]: failed to open stream: No such file or directory in /$path_to_symfony$/

[symfony-users] Re : [symfony-users] Re: csrf_token required

2008-04-10 Thread Loïc Vernet
@Thomas: I have added the secret key in the settings.yml file with no success. Your patch didn't work for me. What is strange, is that I have only the bug if i call the setValidators() function in the configure() function of my form. @Marijn: Dont' be sorry, it's normal to have questions

[symfony-users] Re : [symfony-users] new snippet: integrate SfGuard tables in your global schema

2008-04-10 Thread Loïc Vernet
Will be useful indeed. :) - Message d'origine De : Olivier LOYNET [EMAIL PROTECTED] À : symfony-users@googlegroups.com Envoyé le : Jeudi, 10 Avril 2008, 17h23mn 50s Objet : [symfony-users] new snippet: integrate SfGuard tables in your global schema Hi, I wrote a snippet to

[symfony-users] Re: sfValidatorAnd

2008-04-10 Thread Ian P. Christian
Dmitry Nesteruk wrote: I have following code $validatorMobilePhone = new sfValidatorAnd( Dunno if this helps, but... sfValidatorAnd has a 2nd param that is the optoins, which most use as the 1st param.. 39 public function __construct($validators = null, $options = array(),

[symfony-users] Re: sfValidatorAnd

2008-04-10 Thread Dmitry Nesteruk
Thanks! it is works. 2008/4/10, Ian P. Christian [EMAIL PROTECTED]: Dmitry Nesteruk wrote: I have following code $validatorMobilePhone = new sfValidatorAnd( Dunno if this helps, but... sfValidatorAnd has a 2nd param that is the optoins, which most use as the 1st param..

[symfony-users] Refactoring in sfGoogleAnalyticsPlugin

2008-04-10 Thread Kris Wallsmith
Hello all, I'm going to be committing some major refactoring to the sfGoogleAnalyticsPlugin trunk today or in the next few days. If you have the current version of this plugin installed from SVN, please switch your external/checkout to the 1.0 branch:

[symfony-users] symfony cc problem

2008-04-10 Thread Joe Kelsey
I have a symfony project with three apps: sales, tracking and admin. I have been working on it for a while, and I thought that something to do before I start releasing it is to clear the cache. I tried: symfony cc PHP Fatal error: Class '\adminConfiguration' not found in C:\PHP\pear