[symfony-users] Re: Escape quote on FormFilter

2010-09-09 Thread jdeveloper
Anyone knows a beter way? On Sep 8, 4:40 pm, jdeveloper jdeveloper.inxe...@gmail.com wrote: Hi I have a little problem in implementing a form filter using doctrine. The problem is that I need to filter fields belonging to an related table. So I create cutom addXColumnQuery methods: public

[symfony-users] [symfony 1.4] boolean custom field best practice

2010-09-09 Thread Marco Rocci
Hi, I needed a boolean custom field in an edit form. I added it to the generator.yml, and I added the checkbox widget in the form configure method. I also added the getter and setter methods in the model. The one problem I did have is that changes in the checkbox were being ignored. I had to log

Re: [symfony-users] [symfony 1.4] boolean custom field best practice

2010-09-09 Thread jota
Have you tried to use the sfValidatorBoolean? It should conver 'on' to true On Thu, Sep 9, 2010 at 10:04 AM, Marco Rocci marco.ro...@gmail.com wrote: Hi, I needed a boolean custom field in an edit form. I added it to the generator.yml, and I added the checkbox widget in the form configure

[symfony-users] Problem links between view

2010-09-09 Thread Doc Roms
Hello I have a problem when I set a link with the method generate (); I am in a view and I have a link like: a href = ? Php echo $ view-router- generate ('test', array ('id' = $ id ))? link / a This link is defined in the routing with: test: Pattern: / test /: id defaults: (_bundle:

[symfony-users] Symfony2 Sandbox database collation

2010-09-09 Thread Aleš
How can i set the default collation in the sandbox with the YAML config: $em-getEventManager()-addEventSubscriber(new MysqlSessionInit('utf8','utf8_unicode_ci')); I found somewhere it should be like this: doctrine.dbal: dbname: s2test user:root password: pass options:

[symfony-users] Choosing the best JS toolkit plugin for RIA

2010-09-09 Thread Daniel Toffetti
Hi all, I'm a new Symfony user, with some experience in the Wicket java web framework. I need to develop rich internet apps for internal usage, mainly to replace old VB6 desktop apps. One of the main requirements is that the application must look and behave like a desktop app, say, a drop

Re: [symfony-users] Practical symfony Day 3, need help

2010-09-09 Thread Jeff Lu
Hi Antonio, I was finally able to get past day 3. I guess there are 2 guides, 1 pdf and 1 online. The one where I got stuck was the online guide. When I followed the pdf one and started from scratch It went fine :). Thanks for the tips! On Thu, Sep 9, 2010 at 3:41 AM, Marcio Pozzato

Re: [symfony-users] [symfony 1.4] boolean custom field best practice

2010-09-09 Thread Marco Rocci
Il 09/09/2010 10.35, jota ha scritto: Have you tried to use the sfValidatorBoolean? It should conver 'on' to true Thanks. That works, and is much more cleaner. Marco Rocci -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

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

2010-09-09 Thread Tofuwarrior
Hi, I want to do a demo of our site and to reset the database every 30 minutes. Would it be better to run the demo using a different database connection and a separate database or can anyone think of a way to do it within the same DB as the rest of the site. I am guessing separate but does

[symfony-users] Re: Problem links between view

2010-09-09 Thread Doc Roms
the problem is resolved; tanks. On 9 sep, 11:30, Doc Roms doc.r...@gmail.com wrote: Hello I have a problem when I set a link with the method generate (); I am in a view and I have a link like:  a href = ? Php echo $ view-router- generate ('test', array ('id' = $ id ))? link / a This

AW: [symfony-users] Choosing the best JS toolkit plugin for RIA

2010-09-09 Thread Christopher Schnell
Hi, I havn't used any of these libraries, but AFAIK, Windows-Users can work very well with extJS. BTW. the TYPO3 CMS will use extJS in their next release for some backend features. Regards, Christopher. -Ursprüngliche Nachricht- Von: symfony-users@googlegroups.com [mailto:symfony-

[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] Connection to MS sql server

2010-09-09 Thread ziclo
Hi everybody, I'm trying to add a new database to my symfony project. One managed by mysql and the other by MS SQL server. I get an error about mssql driver when i rebuild all (schema, etc..)I do not know which driver to use for MS SQL. Here is my database.yml An idea ? Symfony version : 1.4

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

2010-09-09 Thread Paul Burdon
Hi Davide, Thanks for replying. This is the issue, if I truncate the database and the demo data is in the same db as client data I would also dump all the actual client data. Hence the question about 2 databases. If I have demo site accessing demoDB and client stuff clientDB then that makes

Re: [symfony-users] Abridged summary of symfony-users@googlegroups.com - 34 Messages in 18 Topics

2010-09-09 Thread joost . farla
Beste, Tot en met vrijdag 10 september ben ik niet aanwezig op kantoor. U kunt voor dringende zaken contact opnemen met mijn collega Dimitri van Hees: dimi...@freshheads.com of 013 5448761. Met vriendelijke groet, Joost Farla joost.fa...@freshheads.com - - freshheads grafisch ontwerp en

[symfony-users] Re: Removing a field from a form in an action

2010-09-09 Thread torok84
Thanks, this is what I was trying to do, but actually it is not very nice :). It didn't occur to me I could pass a parameter in the constructor. Paolo On Sep 8, 4:43 pm, Christopher Schnell christopher.schn...@mda.ch wrote: hi, you could do something nasty like

[symfony-users] Re: Removing a field from a form in an action

2010-09-09 Thread guiguiboy
Hi, You can also create 2 form classes : the first for authenticated users (authenticatedUsersForm for example) and the other for non-logged users (nonAutenticatedUsersForm for example). class authenticatedUsersForm extends nonAutenticatedUsersForm define your form widgets and validators in

[symfony-users] Re: Connection to MS sql server

2010-09-09 Thread Damon Jones
You have a double-ell in the database.yml you've posted dsn: mssqll:host=localhost;dbname=asadata - is this what the actual file has in it? On Sep 9, 7:18 am, ziclo lauren...@gmail.com wrote: Hi everybody, I'm trying to add a new database to my symfony project. One managed by mysql and the

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

2010-09-09 Thread Davide Borsatto
Sorry, I didn't get that you need to run an actual app too on the same project. Well, then yes, it's the case you need two databases, to keep data clean too. You could use some kind of flag to differentiate real data from the demo stuff, but it would be not to best thing to do... With symfony you

[symfony-users] How to remove send.x and send.y parameters from GET url?

2010-09-09 Thread ScherlOMatic
Hello! I'm looking for a solution to remove unnecessary parameters from an url. I created a form with a few widgets and a template which renders the form as a GET call. Here is the result:

Re: [symfony-users] How to remove send.x and send.y parameters from GET url?

2010-09-09 Thread Pietrino Atzeni
On 09/09/2010 21.01, ScherlOMatic wrote: Hello! I'm looking for a solution to remove unnecessary parameters from an url. I created a form with a few widgets and a template which renders the form as a GET call. Here is the result:

[symfony-users] Re: How to remove send.x and send.y parameters from GET url?

2010-09-09 Thread ScherlOMatic
You are right. I'm using an image button. But that shouldn't be a problem, correct? The input tag looks like this: tag('input', array('src' = '/images/button_send.png', 'alt' = '', 'tabindex' = 3, 'name' = 'send', 'class' = 'send', 'type' = 'image')); Because I need to see the url parameters for

Re: [symfony-users] Re: How to remove send.x and send.y parameters from GET url?

2010-09-09 Thread Gábor Fási
You can disable CSRF protection on an individual form by passing false as the constructor's third parameter. Send.x and send.y are sent by the browser to indicate where the user clicked the image. On Thu, Sep 9, 2010 at 21:10, ScherlOMatic stefan.scherbich...@gmail.com wrote: You are right. I'm

[symfony-users] Re: How to remove send.x and send.y parameters from GET url?

2010-09-09 Thread ScherlOMatic
Thanks for the info. So as I guess it's impossible to remove them. Do you know if the problem is the same with 'button' tag? Bye On 9 Sep., 21:13, Gábor Fási maerl...@gmail.com wrote: You can disable CSRF protection on an individual form by passing false as the constructor's third parameter.

[symfony-users] code execution in action vs lib model

2010-09-09 Thread Joshua
Any help appreciated. There are no errors anywhere in these processes. Permissions are correct. In the action, the file is downloaded: public function executeDownloadfile(sfWebRequest $request) { //download feed file $connection = ssh2_connect($ftp_server, 22);

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

2010-09-09 Thread Wanderson
Why not make use of environments? You can define 2 envs 'prod' and 'demo' in your config/databases.yml setting 2 databases. Take a look at manual about this. 2010/9/9, Davide Borsatto lloy...@gmail.com: Sorry, I didn't get that you need to run an actual app too on the same project. Well, then

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

2010-09-09 Thread John Kary
Paul, You shouldn't ever run anything but your production app on your production server. Let's say your demo site hits front page of a major news site and suddenly you have 5000 people trying to use your demo site. The site can't handle the load and goes down... taking your production site and

[symfony-users] [symfony2] Creating a DoctrineSessionStorage

2010-09-09 Thread Aaron DM
Hey, I was wondering if it was possible to use Doctrine for session storage into a DB. I know there is a PdoSessionStorage already that comes with symfony2 (not functional yet) but how would this be done using Doctrine. What I've done is passed an EntityManager to my DoctrineSessionStorage

[symfony-users] Left Join - Column same name

2010-09-09 Thread Vecsei
Hello, when Im doing a left join and now there are two columns with the same name: For Example: Table: Category Column: Name Table: Articles Column: Name Now there is Name twice. How do I call the different Name-Columns? getName() wouldnt work for both :D :D Thanks for your help Regards --

[symfony-users] Freelance Programmer / Developer

2010-09-09 Thread sumeet....@gmail.com
Hi, I am freelance developer with over 10+ years of experience in software development. skill sets: .NET TECHNOLOGY .NET(ASP.NET / C# / VB.NET) SharePoint 2003, MOSS 2007, VB, ASP (VBScript Javascript), SQL Server, Access (VBA), Excel (VBA), Oracle Crystal Reports SQL Reporting Service LAMP

Re: [symfony-users] Left Join - Column same name

2010-09-09 Thread Gábor Fási
getName will return the name of the object that belongs to the peer you called doSelect on. $articles = ArticlePeer::doSelectJoinCategory(new Criteria()); foreach ($articles as $article) { echo $article-getName(); //echoes the name of the article echo $article-getCategory()-getName();

Re: [symfony-users] Choosing the best JS toolkit plugin for RIA

2010-09-09 Thread Gareth McCumskey
If you want something that is probably the most actively maintained open source JS framework go for JQuery. JQuery even has a collection of JQuery UI elements as a sub project. There is even easy integration options with symfony. On Wed, Sep 8, 2010 at 10:53 PM, Daniel Toffetti dto...@gmail.com

Re: [symfony-users] Choosing the best JS toolkit plugin for RIA

2010-09-09 Thread Stéphane
If you want true javascript framework (with OO layer), for desktop-application UI look-alike, look at qooxdoo ! Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Fri, Sep 10, 2010 at 7:20 AM, Gareth