[symfony-users] Re: missing field names in posted form -- Unexpected extra form field 0 ...

2010-08-26 Thread Lutz
Just in case somebody read my question and was wondering The problem seems to be related to access rights on the Sever and does not seem to have anything special to do with Symfony. I was able to reproduce and show the mysterious behaviour by just printing the received $_POST and without

[symfony-users] Re: Credentials for actions in admin generated module

2010-08-26 Thread Tomasz Ignatiuk
It works !!! Thank you! :) On Aug 25, 5:15 pm, Thor thorste...@gmail.com wrote: there is the credential conditions under the object_actions , you can do something similar to this in your generator.yml to hide the actions list:   title: something   object_actions:     _edit:  # no

Re: [symfony-users] setCookie with a different domain

2010-08-26 Thread Gareth McCumskey
http://blog.jetienne.com/2009/05/symfony-sfguard-and-sfremember.html On Thu, Aug 26, 2010 at 3:53 AM, Mariano Sola mariano.s...@gmail.comwrote: Hi all, how is it going? I'd like to ask you how can I set a domain that is not the same the setCookie method is invoked in order to be read from

Re: [symfony-users] setCookie with a different domain

2010-08-26 Thread Georg
AFAIK for security reasons, you cannot set cookies for another domain. Sub domains of your own domain are possible. Am 26.08.2010 03:53, schrieb Mariano Sola: Hi all, how is it going? I'd like to ask you how can I set a domain that is not the same the setCookie method is invoked in order to

Re: [symfony-users] setCookie with a different domain

2010-08-26 Thread Gareth McCumskey
If you are looking to support cross-domain single sign on kind of functionality do some research into SAML. Its the SSO standard that Google, OpenID and others use. On Thu, Aug 26, 2010 at 3:53 AM, Mariano Sola mariano.s...@gmail.comwrote: Hi all, how is it going? I'd like to ask you how can

[symfony-users] Re: How to set an error message for invalid login with sfGuardAuth plugin?

2010-08-26 Thread Vojta
The problem is probably in your template: You must use one of these methods: 1/ echo $form; - not so flexible but print everything (incl errors) 2/ echo each row by $form['username']-renderRow() 3/ echo each element of the row (label, input, help, ERROR), echo $form['username']-renderError();

[symfony-users] Using 'IN' in a subquery with doctrine

2010-08-26 Thread Sebastien Armand [Pink]
'IN' being one of the worst possible keyword to search online ever, I found nothing interesting to solve my problem, so here it goes: My query should look something like this: Doctrine_Query::create()-from('Furniture f')-where('f.id IN (SELECT pa.furniture_id FROM Panel pa WHERE pa.id IN ? )',

[symfony-users] Re: Trying to replace the default 'Required' message

2010-08-26 Thread Javier Garcia
Thanks!, i would swear i tried it.. On Aug 26, 12:53 am, Michał Piotrowski mkkp...@gmail.com wrote: 2010/8/24 Javier Garcia tirengar...@gmail.com:  Sorry, could you paste the entire validator? I dont understand..     $this-validatorSchema['email_address'] = new sfValidatorAnd(array(      

[symfony-users] How to validate: required: true for foreign key

2010-08-26 Thread Jochen Daum
Hi, I have schema.yml (extract) as follows: Person: columns: id: { type: integer(4), notnull: true, unique: true, primary: true, autoincrement: true } name: { type: string(100), notnull: true } hnr_street: { type: string(200), notnull: true } suburb: { type: string(50),

Re: [symfony-users] Re: missing field names in posted form -- Unexpected extra form field 0 ...

2010-08-26 Thread Jochen Daum
Hi, this could have to do with the suhosin patch that ships with Ubuntu and Debian systems. It may be configured stricter on your server than on your dev PC. Or, if you somehow manually installed PHP on your dev machine, you may not have it ay all. I can;t recall your error message though from

Re: [symfony-users] Using 'IN' in a subquery with doctrine

2010-08-26 Thread Georg
try whereIn('f.id', array(1,7,8,9)) Am 26.08.2010 11:12, schrieb Sebastien Armand [Pink]: 'IN' being one of the worst possible keyword to search online ever, I found nothing interesting to solve my problem, so here it goes: My query should look something like this:

[symfony-users] Re: How to validate: required: true for foreign key

2010-08-26 Thread Raphael Schumacher
This is quite easy. The validator that the (Doctrine-generated) class BaseOrganisationForm is setting up, is fine and doesn't need to be replaced. Just add the required option to that validator, such as follows: In the configure() method of your form class:

Re: [symfony-users] Re: How to validate: required: true for foreign key

2010-08-26 Thread Jochen Daum
Hi Raphael, On Thu, Aug 26, 2010 at 11:07 PM, Raphael Schumacher m...@raphaelschumacher.ch wrote: This is quite easy. The validator that the (Doctrine-generated) class BaseOrganisationForm is setting up, is fine and doesn't need to be replaced. Just add the required option to that validator,

[symfony-users] htaccess 2 applications in /web: strange problem

2010-08-26 Thread Benoit Pr
Hi, I have 2 applications: app1 app2, which directory web files are both in /web. Here's my problem:while rewrite works perfectly for app1, rewrite works partially for app2: css, img js are not loaded. When we both exchange app* places in .htaccess, app2 works perfectly, then app1 works

[symfony-users] Re: Non existent model 'Blogpost'

2010-08-26 Thread tek123
The company is not willing to update. Even with 1.4 I get stuck on the same problem with the sandbox. On Aug 24, 3:27 pm, Romain Pouclet pall...@palleas.com wrote: Why exactly are you using Symfony 1.1 considering it's no longer maintained? 2010/8/24 tek123 paktek...@googlemail.com: Hi,

[symfony-users] Re: sfFormExtraPlugin - jquery UI DatePicker - Safari 5

2010-08-26 Thread Joe666
Thanks, that is very nice, it actually turned out to be a cache problem, once I cleared symfony's cache everything was working alright. Cheers. On Aug 23, 11:32 pm, Tom Ptacnik to...@tomor.cz wrote: Try thishttp://garakkio.altervista.org/datepickerui/ I like it. On 16 srp, 21:42, Joe666

[symfony-users] set_flash and browser's cache

2010-08-26 Thread Joe666
Hi Guys, I have the following in a module actions.class.php: class myPageActions extends sfActions { public function executeIndex(sfWebRequest $request) { $q = Doctrine_Query::create()-from('table t'); $this-items = $q-execute(); } public function executeNew(sfWebRequest

[symfony-users] Catch and handle Doctrine's exceptions (Doctrine_Connection_Exception)

2010-08-26 Thread J K
Hey everyone, I have one mysql db server, and one apache symfony server. It happens (very rarely) that the web server can't temporarily reach the db server, and I get those a couple times per day: Aug 23 16:00:52 symfony [err] {Doctrine_Connection_Exception} PDO Connection Error: SQLSTATE[HY000]

[symfony-users] Re: symfony Day Cologne 2010

2010-08-26 Thread pghoratiu
Hi! What's the latest date one can get a ticket for Symfony Day (subscription deadline)? gabriel On Aug 25, 11:20 am, Dennis Benkert spinecras...@googlemail.com wrote: Hi, this year we are organizing a symfony Day again here in Cologne, Germany on 8th October. As last year the conference

[symfony-users] Re: Catch and handle Doctrine's exceptions (Doctrine_Connection_Exception)

2010-08-26 Thread pghoratiu
Unless it's a problem with the network connection it's probably a problem with the number of connections allowed by the MySQL server. This is usually set up to 100 by default, it should be increased to something like 500. MySQL has admin tools to monitor the connections to the server, use it to

[symfony-users] Re: htaccess 2 applications in /web: strange problem

2010-08-26 Thread pghoratiu
Try uncomenting this lines: # we skip all files with .something RewriteCond %{REQUEST_URI} \..+$ RewriteCond %{REQUEST_URI} !\.html$ RewriteRule .* - [L] These rules are used to process .css, .js and other static files. gabriel On Aug 26, 1:55 am, Benoit Pr benoit.perro...@gmail.com wrote:

Re: [symfony-users] Non existent model 'Blogpost'

2010-08-26 Thread Gareth McCumskey
Did you use the build-model command for your ORM (propel or doctrine)? On Tue, Aug 24, 2010 at 3:41 PM, tek123 paktek...@googlemail.com wrote: Hi, I have just started symfony 1.1 but I have ran into this complete blockade. I seem to be stuck on the create an application part on here:

[symfony-users] synfony rest routing doubt

2010-08-26 Thread Shihab KB
Hello friends, I am preparing REST apis for my content management system. I am using symphony 1.4. Finally I could create a REST api for getting contents from the server. The content of my routing file is given below. Code: Select all api_womenbytitle: url:

[symfony-users] Re: setCookie with a different domain

2010-08-26 Thread Mariano Sola
thanks for your answers! I'm going to take a look to SAML. On Aug 26, 5:20 am, Gareth McCumskey gmccums...@gmail.com wrote: If you are looking to support cross-domain single sign on kind of functionality do some research into SAML. Its the SSO standard that Google, OpenID and others use. On

[symfony-users] Re: setCookie with a different domain

2010-08-26 Thread Mariano Sola
Has somebody implemented a SSO in Symfony 1.4 ? or has a working example to share? thanks! On Aug 26, 10:15 am, Mariano Sola mariano.s...@gmail.com wrote: thanks for your answers! I'm going to take a look to SAML. On Aug 26, 5:20 am, Gareth McCumskey gmccums...@gmail.com wrote: If you are

[symfony-users] Re: set_flash and browser's cache

2010-08-26 Thread pghoratiu
Is there a proxy between the browser and the webserver (for caching purposes or some other reason)? Have you tested with different browsers (Firefox, IE, Opera, Chrome)? AFAIK symfony sets up the HTTP headers correctly to disable caching by adding the following two lines in the HTTP response

[symfony-users] Url genartion bug for '/' ?

2010-08-26 Thread torok84
Hi, I noticed that $this-redirect(/) in actions or url_for(/) in views when called from an url like http://host/frontend_dev.php/something throw away the frontend_dev.php and generate url like http://host/. While url_for(module/action) will generate an url containing frontend_dev.php. url_for()

[symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin is adding empty rows

2010-08-26 Thread Marco Rocci
Symfony 1.4 PHP 5.3.1 I am trying to add some master-detail capabilities to an admin generated application. I had a look around and installed the ahDoctrineEasyEmbeddedRelationsPlugin. I followed the readme, and I quickly got something very similar to what I'd like. Editing and inserting new

Re: [symfony-users] Re: set_flash and browser's cache

2010-08-26 Thread Joe666
Our Apache setup had turned on the mod_expires module, the module was setting up an Expires header of 24 hours in the future and that was causing the problem, we fixed it by adding: ExpiresActive Off to the virtual conf section for the host, is working alright now, thanks for the help. Cheers.

[symfony-users] Search with AJAX doesn´t work in pr od environment

2010-08-26 Thread Barry
Hi! I am doing the Jobeet tutorial and when I did the AJAX search it works in dev environment but when I test it in prod, it always give me No Results. I tried putting the no_script_name key to false in the setting.yml file but it´s the same. Does anyone have the same problem? Thanks Leandro --

[symfony-users] saving a form without displayig it

2010-08-26 Thread cosmy
Hi all. I want to duplicate some inserted categories (retrieved by a query) of my model changing some attribute. I've written this code in a backend action but it doesn't work foreach($categories as $category){ $c2 = new Category(); $c2 = clone

[symfony-users] Integrate log4j with symfony

2010-08-26 Thread jdeveloper
Hi I would like to know if there is a way to integrate log4j with symfony since log4j has a powerfull configuration options? Thanks -- 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

RE: [symfony-users] Search with AJAX doesn´t work i n prod environment

2010-08-26 Thread Daniel Kucharski
Try enabling debug in production and check whether or not the ajax request actually gets a response. -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Barry Sent: donderdag 26 augustus 2010 17:48 To: symfony users Subject:

[symfony-users] Re: organizing partials in folders

2010-08-26 Thread Joshua
Or just not use the include_partial function at all and handle all partials as normal php include() files. Its actually easier because I don't have to pass a specific array of variables. On Aug 24, 2:30 pm, James Cauwelier james.cauwel...@gmail.com wrote: You can support it yourself: 1.

[symfony-users] Re: Url genartion bug for '/' ?

2010-08-26 Thread pghoratiu
Do you have a route set up for your homepage, something like: homepage: url: / param: { module: homepage, action: index } Try also redirecting to $this-redirect('@homepage') it's much more efficient. gabriel On Aug 26, 5:48 pm, torok84 toro...@gmail.com wrote: Hi, I noticed that

[symfony-users] What Symfony CMF should I use? Apostrophe, Sympal, Diem?

2010-08-26 Thread Fabian Barrera
Hi, I have a question about the Symfony CMFs (Sympal, Apostrophe, Diem). I hope someone could help me: I haven't used any CMS before (but I use Symfony and love it :) ) and I'll have to build a site with a lot of features that a CMF can manage (forum, news, personal blogs, events). But it also

Re: [symfony-users] Using 'IN' in a subquery with doctrine

2010-08-26 Thread Sebastien Armand [Pink]
It wouldn't be whereIn('f.id', array(1,7,8,9)), because 1,7,8,9 are the ids of the panels. So I tried fetching the first request as an array (that I did hope would be an array of Ids) and using that array in whereIn('f.id', $furnitureIdArray) But it turns out this array is like this: [ 0 = [ 'id'

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

2010-08-26 Thread Benoit Pr
Hi, I just implemented this plugin, which seems very interesting (1.4 compatible also). However, when i use a_include*, I am collecting js and css which are not in my project, like these one for example: /apostrophePlugin/css/a-reset.css /apostrophePlugin/css/a-utility.css

Re: [symfony-users] Using 'IN' in a subquery with doctrine

2010-08-26 Thread Bruno
Use this: -where('column' , array(1,2...n) ) Sent from my iPhone On 27/08/2010, at 00:05, Sebastien Armand [Pink] khe...@gmail.com wrote: It wouldn't be whereIn('f.id', array(1,7,8,9)), because 1,7,8,9 are the ids of the panels. So I tried fetching the first request as an array (that I

Re: [symfony-users] Using 'IN' in a subquery with doctrine

2010-08-26 Thread Georg
Actually I do not understant what you want to do. You have a group of panels, and want to find a group of furniture so that no panel is without furniture. But I can't image what you want to do with this information without the relation to each panel. I have no good solution for your problem, only

[symfony-users] Re: synfony rest routing doubt

2010-08-26 Thread Shihab KB
I have identified the solution for my question. I have modified the routing file as followings, Old Code: Select all api_womenbytitle: url: /rest/:title/womenbytitle.:sf_format class: sfDoctrineRoute param: { module: rest, action: womenbytitle } options: { model: Women, type:

Re: [symfony-users] Using 'IN' in a subquery with doctrine

2010-08-26 Thread Sebastien Armand [Pink]
Ok, probably did not explain myself very well then. I receive an array of panel Ids that I know have issues, but since the panels are only parts of a bigger thing that is a furniture, I'm not interested in showing anyone that those panel have issues, I'd rather show that the bigger furniture as a