[symfony-users] Re: Different result on two servers when submitting a form that sends email automatically

2010-08-17 Thread El Duderino
The problem was eventually identified to where a type cast was being made. The PreProduction server did not have an issue with this but the Live server failed when converting the object to a string with (string). Solved when __toString() was used instead. Before: $replaceVariables = array('var1'

[symfony-users] Re: Implementing an existing ACL API in symfony

2010-08-17 Thread Christian Schaefer
hi chris, I would suggest to not reinvent the wheel and look for a solution that uses sfguard on the inside and oauth to the outside. I haven't tested them myself yet but there are some plugins in that area already. cheers /christian On Aug 16, 5:31 pm, catchamonkey ch...@sedlmayr.co.uk wrote:

[symfony-users] Re: trying to make a relation with sfGuardUser and got error

2010-08-17 Thread Joep Brunsveld
It seems that you forgot the relations indentation. It must be: RankDomain: columns: name: { type: string(255), notnull: true, unique: true } user_id: { type: integer, notnull:true } relations: sfGuardUser: { local: user_id, foreign: id } On Aug 17, 7:33 am, RusAlex

[symfony-users] Re: How i can implement this with sfGuard plugin

2010-08-17 Thread RusAlex
Can you explain please: I've tried to add relation to schema.yml RankDomain: columns: name: { type: string(255), notnull: true, unique: true } user_id: { type: integer, notnull:true } relations: sfGuardUser: { local: user_id, foreign: id } But when i type command: php symfony

[symfony-users] IS there any manual to correct unit test system for integrating with sfGuard auth symfony?

2010-08-17 Thread RusAlex
I've installed sfGuard plugin and now most of old tests didn't work well. They need to be authenticated to the frontend system. Is there any official decision ? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

Re: [symfony-users] Implementing an existing ACL API in symfony

2010-08-17 Thread Gareth McCumskey
We actually implemented our own ACL system. We used symfony's builtin user session management features (i.e. $this0getUser()-setAuthenticated(true) etc) but not any of sfGuards special functionality because our needs were too complex. We also send an authentication request to our ACL server to

[symfony-users] created_at gets deleted on edit

2010-08-17 Thread Christopher Schnell
Hi all, currently, I am facing a strange problem. My created_at and updated_at values get deleted when editing an object via its form. Everything should be straightforward, both fields are in my schema.yml. I customize the corresponding Form class via $this-useFields(array(...)), so that

[symfony-users] Re: Different result on two servers when submitting a form that sends email automatically

2010-08-17 Thread pghoratiu
We encountered something similar with OS version 32 bit vs. 64 bit, having the same PHP version 5.2.4. The dev machines use 32 bit OS but staging/prod run on 64 bit and the problem happened only on the 64 bit machines. gabriel On Aug 17, 10:18 am, El Duderino tleftw...@gmail.com wrote: The

[symfony-users] Re: trying to make a relation with sfGuardUser and got error

2010-08-17 Thread RusAlex
No im sorry i have mistake in pasting. I have a correct relations RankDomain: columns: name: { type: string(255), notnull: true, unique: true } user_id: { type: integer, notnull:true } relations: sfGuardUser: { local: user_id, foreign: id } but error still exist On Aug 17, 11:44 

Re: [symfony-users] PHP related,Symfony unrelated

2010-08-17 Thread Gustavo Adrian
You can add the order type as another parameter to the link (ASC or DESC) too. Then, at the moment of link generation, you check for the column that is being used for ordering. In that link you then just change the order type to the opposite of the actual one (so, if the user is looking at a user

Re: [symfony-users] Re: How i can implement this with sfGuard plugin

2010-08-17 Thread Gustavo Adrian
In your fixtures check if you are indeed assigning a valid sfGuardUser to the user_id field of rank_domain objects On Tue, Aug 17, 2010 at 2:12 AM, RusAlex interpret...@gmail.com wrote: Can you explain please: I've tried to add relation to schema.yml RankDomain: columns: name: { type:

Re: [symfony-users] Re: trying to make a relation with sfGuardUser and got error

2010-08-17 Thread Javier Garcia
Could paste the fixture? On 08/17/2010 12:50 PM, RusAlex wrote: No im sorry i have mistake in pasting. I have a correct relations RankDomain: columns: name: { type: string(255), notnull: true, unique: true } user_id: { type: integer, notnull:true } relations: sfGuardUser:

[symfony-users] Re: IS there any manual to correct unit test system for integrating with sfGuard auth symfony?

2010-08-17 Thread Massimiliano Arione
On 17 Ago, 05:32, RusAlex interpret...@gmail.com wrote: I've installed sfGuard plugin and now most of old tests didn't work well. They need to be authenticated to the frontend system. Is there any official decision ? Just create your own test class, like explained in

[symfony-users] Re: basic Action module/action does not exist

2010-08-17 Thread Massimiliano Arione
On 17 Ago, 06:43, Abraham amontil...@gmail.com wrote: any ideas to overcome my problem? What is your problem? It's not really clear in your message. cheers Massimiliano -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received

[symfony-users] Re: Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-17 Thread Tom Boutell
Daniel, this almost works and I got pretty excited thinking about it... but there's a tragic flaw. On the first page access you slurp up all the CSS files, minify them, md5 that and create a cache file. Fine. On the second page access you... can't point to the cache file without first doing all

Re: [symfony-users] Re: Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-17 Thread Stéphane
I didn't took a look at the implementation yet. PHP is caching filesystem infos AFAIK. Can't we use these file informations as part of the key cache to compute md5 ? So their will be no more need to invalidate, it will invalidate by itself, or by calling (for hard-writting apps) clearstatcache()

[symfony-users] Re: trying to make a relation with sfGuardUser and got error

2010-08-17 Thread qp
try changing the type attribute of the foreignKey user_id under RankDomain to type: integer(4) i.e RankDomain: columns: name: { type: string(255), notnull: true, unique: true } user_id: { type: integer(4), notnull:true } relations: sfGuardUser: { local: user_id, foreign: id }

Re: [symfony-users] Re: Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-17 Thread Daniel Lohse
Mhm, I somehow I knew that this would have been t easy. (: But okay, so we do need to cache these relations array(bundle = sha1sum.ccsgz) somewhere it gets loaded on every request and I'd guess the app.yml.php file is a good place. Still, using this approach does not necessitate – or even

Re: [symfony-users] Re: Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-17 Thread Stéphane
+1 for the specific task ! Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Aug 17, 2010 at 3:52 PM, Daniel Lohse annismcken...@googlemail.comwrote: Mhm, I somehow I knew that this would have been

[symfony-users] Overriding files from a plugin within another plugin

2010-08-17 Thread Daniel Kucharski
Hi, Is it possible to create a plugin which overrides various settings / classes from other symfony plugins (routing, schema, model classes)? If so, does the order how plugins are loaded (in the project configuration) matter? Kind regards, Daniel -- If you want to report

Re: [symfony-users] link_to_function

2010-08-17 Thread Parijat Kalia
Daniel, Thanks for that. I was browsing the link_to_function, what it states is that this tag is useful for triggering javascript functions, essentially what I have looks like this: link_to_function('Click here' , 'javascript:function()'); This renders itself in HTML format as: a onclick=

[symfony-users] Ajax Forms

2010-08-17 Thread Joshua Estes
A picture is worth a thousand words, so I attached one. My idea is to create an Ajax form. As you can see from the image this is a very basic form. The one I will make would be slightly more complex. The code is all in the filter forms. What I am wanting to do with this is each group, users will

Re: [symfony-users] link_to_function

2010-08-17 Thread Daniel Lohse
Mhm, I meant the link_to function – damnit (sorry), I should have read your post better, because now I see that you do want to use link_to_function. Maybe you could send a parameter through the JavaScript (just a string like 'do_x' or 'do_y') and then decide in the symfony action what to

[symfony-users] Re: basic Action module/action does not exist

2010-08-17 Thread Abraham
My problem is that i'm getting this 404 | Not Found | sfError404Exception Action poa_propuesto/action does not exist. stack trace when I click trasladar action in the list view of poa_propuesto module. I have the executeListTrasladar action defined, so i don't know what is the problem. The

[symfony-users] APPs vs Modules/Actions: Pro's and Con's????

2010-08-17 Thread Kei Takahashi
Hi, I am seeking opinions. We have a group of about 5 developers and we are engaging in a discussion about how to structure a project. In the past, each developer has made a separate configuration system for various websites. One is reporting, one is configurations and settings, etc. Now, we are