[symfony-users] Re: Chinese Lanuage in the URL, failed, please share some of your ideas, thanks

2009-05-18 Thread t...@soe
AFAIK, Chinese characters can be used in the route, at least as one of the parameters. You can check this out: http://www.rsywx.net/readings/. On May 18, 7:55 am, Frank He wrote: > I used Gabor's solution, just change the requirement in the routing.yml, > change from \w+ to .+, then it works

[symfony-users] Re: Chinese Lanuage in the URL, failed, please share some of your ideas, thanks

2009-05-18 Thread Gábor Fási
You can use any unicode character in the url, they just get encoded. See http://➡.ws/symfony (takes you to symfony-project.com). On Mon, May 18, 2009 at 01:53, gestadieu wrote: > > Chinese characters cannot be used in URL unfortunately, they are not > ASCII compatible obviously. > I had some sim

[symfony-users] Re: What might cause output to appear when running a command line script? We're getting: Content-type: text/html; charset=iso-8859-1

2009-05-18 Thread Gareth McCumskey
Did you rebuild the model and then clear cache? (propel:build-model) On Mon, May 18, 2009 at 8:02 AM, Lawrence wrote: > > We are now unable to run commands such as: > > symfony propel:build-all-load > > Because this seems to output between all the major steps: > > X-Powered-By: PHP/5.2.9 > Cont

[symfony-users] Re: What might cause output to appear when running a command line script? We're getting: Content-type: text/html; charset=iso-8859-1

2009-05-18 Thread Gareth McCumskey
Oops wrong thread sorry o.O On Mon, May 18, 2009 at 11:18 AM, Gareth McCumskey wrote: > Did you rebuild the model and then clear cache? > > (propel:build-model) > > > On Mon, May 18, 2009 at 8:02 AM, Lawrence wrote: > >> >> We are now unable to run commands such as: >> >> symfony propel:build-al

[symfony-users] Re: how to change an integer form input to a string?

2009-05-18 Thread Gareth McCumskey
Did you rebuild model after changing schema? (propel:build-model) On Mon, May 18, 2009 at 7:13 AM, Lawrence wrote: > > I've got a field that was mistakenly defined in the schema as an > integer. So the base class looks like this (I'm leaving out the > irrelevant fields): > >$this->setWidgets

[symfony-users] Re: how to change an integer form input to a string?

2009-05-18 Thread Gábor Fási
Did you do a propel:build-forms after changing the schema? It should change that integer validator to an sfValidatorNumber. On Mon, May 18, 2009 at 07:13, Lawrence wrote: > > I've got a field that was mistakenly defined in the schema as an > integer. So the base class looks like this (I'm leavin

[symfony-users] Sanitize special chars

2009-05-18 Thread esion
Hello, I discovered some special chars do my symfony generated rss feed garbled , youpi :( In my app, an user can post the text he wants then the text appears in a rss feed. The feed seems broken due to a vertical tag character. Actually the app has been migrated from sf1.0 to 1.1 I tried to se

[symfony-users] Enum column validation Fail

2009-05-18 Thread Ahmed
Hi all; I have an enum column with two choice, i write it in my yml schema like this : news: type: { type: varchar, sqltype:enum, size: "'request','offer'", default: request, required: true, notnull: true } the column is correctly generated this is part off my baseNewsForm.class.php : public fu

[symfony-users] form doctrine association with attributes in association class

2009-05-18 Thread Mathieu Tricoire
Hi I've a problem with form on Doctrine. This is my problem, I've a schema like this : Schema: Page: columns: title: { type: string(255), notblank: true } content: { type: text, notblank: true } Tag: columns: name: { type: string(255), notblank: true } PageTag: columns:

[symfony-users] Re: Enum column validation Fail

2009-05-18 Thread Gábor Fási
Quote from its description: "The sfValidatorPropelChoice validator validates that the tainted value is among the list of records of a given Propel model" so you cannot use it like you wanted to. You'll need to use sfValidatorChoice. Also, I recommend you create enums like this: http://snippets.sym

[symfony-users] Re: Enum column validation Fail

2009-05-18 Thread Ahmed
Thanks :) Gábor Fási a écrit : > Quote from its description: "The sfValidatorPropelChoice validator > validates that the tainted value is among the list of records of a > given Propel model" so you cannot use it like you wanted to. > You'll need to use sfValidatorChoice. > Also, I recommend you c

[symfony-users] Re: sympal installation problem

2009-05-18 Thread Gandalf
I installed sympal again, same version (svn 3~4 days ago) and It worked fine... However, bug 126 stands. On 5/17/09, Daniel Holmes wrote: > > I have this same issue; however changing to interactive didn't fix it > for me. Let me know if there is anything in particular i can do to > give you t

[symfony-users] Re: What might cause output to appear when running a command line script? We're getting: Content-type: text/html; charset=iso-8859-1

2009-05-18 Thread Marek
what does "php -v" tells you? I get: PHP 5.2.9 (cli) (built: Apr 1 2009 16:50:35) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies The important part is cli after version number. That means Command Line Interface. If you have cgi, that's causin

[symfony-users] doctrine transaction advice

2009-05-18 Thread Gandalf
Hello, Ive read on the documentation that doctrine issues all querys transaction wise, my application is being affected by this, since a select issued almost at the end didn't get updated results from the database. What would be the best solution? 1) can I get the doctrine connection name and c

[symfony-users] Re: DbFinder, how to leftJoin with Where clause

2009-05-18 Thread Marek
I think "etpni.news_item_id = 621 or etpni.news_item_id is null" in where clause will work for you. -- Marek On 13. Máj, 12:50 h., Phil Moorhouse wrote: > I need to reproduce the following query with DbFinder. i'm using the > results to build a list of checkboxes that will already be checked if

[symfony-users] Re: sfSympalPlugin

2009-05-18 Thread Jonathan Wage
I am not sure why you'd be getting this error and I don't. You need to set the attribute like this: attributes: mysql_attr_use_buffered_query: true Not sure if that'll work, but if it will that is the syntax it'd be in. - Jon On Sun, May 17, 2009 at 8:28 AM, David Ashwood wrote: > I’ve tri

[symfony-users] Re: sympal installation problem

2009-05-18 Thread Jonathan Wage
I know what the issue is. When you are in a certain "site" in sympal, the routes for that site are loaded. Currently when you view the content list, it includes the content records for ALL sites, and it tries to reference a route from another sites content record, and that route isn't loaded. I'l

[symfony-users] Handling match sorting

2009-05-18 Thread Iltar
Basically I want the following sorting for a match: per date (combination of year-month-day) per week per team per match identification number win / loss And maybe some others. A combination of those must be possible: - I want to see all matches lost by the A1 - I want to see all matches at 20

[symfony-users] Re: symfony 1.2 admin generator - how to integrate calendar-setup.js?

2009-05-18 Thread yengama...@gmail.com
I have managed to use the jQuery calendar, but it doesn't let me edit the time part of the date and only displays 5 years forward/backward. What if I want to introduce my birth date or a 20-year-beyond date? On May 12, 10:36 pm, Joan Teixidó wrote: > or use plugin sfFormExtraPlugin that comes w

[symfony-users] sfDoctrinePlugin/sf1.2

2009-05-18 Thread Johannes Heinen
HI all, is there a way to revert changes made to an doctrine object during a transaction? I user the preSave() Hook to do some stuff and set attributes depending on their original values. I don't see any way to retrieve these original values, i'd only found methods to retrieve information about

[symfony-users] get data from a table with multiple key fields

2009-05-18 Thread flaquitqm
I am trying to get data for a table with two id fields. When the table is empty all is ok but, if is has only 1 row, a get an error. Does Anyone can help my? Excuse my bad English and thanks Lynette --~--~-~--~~~---~--~~ You received this message because you are su

[symfony-users] Re: get data from a table with multiple key fields

2009-05-18 Thread Alexandru-Emil Lupu
anyone could get errors... could you be more specific ? - what is the error you get ? - how does look your schema for the table ? - what is the query that are you trying to use ? - symfony version ? - what is the record you have ? Please try to provide as more and detailed info as you can. --- E

[symfony-users] Symfony backend questions?

2009-05-18 Thread torso
Hi I am going to do a backend application which can do frontend pages. I need to know is it possible to do modules on backend. For example: I have apps which are backend and frontend. On backend I have module admin, which can do new frontend modules like home, contacts, etc and those are shwoin

[symfony-users] Re: What might cause output to appear when running a command line script? We're getting: Content-type: text/html; charset=iso-8859-1

2009-05-18 Thread Lawrence
On May 18, 9:15 am, Marek wrote: > what does "php -v" tells you? I get: > > PHP 5.2.9 (cli) (built: Apr  1 2009 16:50:35) > Copyright (c) 1997-2009 The PHP Group > Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies > > The important part is cli after version number. That means Comman

[symfony-users] Re: Symfony backend questions?

2009-05-18 Thread Eno
On Mon, 18 May 2009, torso wrote: > I am going to do a backend application which can do frontend pages. I > need to know is it possible to do modules on backend. > > For example: > > I have apps which are backend and frontend. On backend I have module > admin, which can do new frontend modules

[symfony-users] sfTask::logProgress()

2009-05-18 Thread isleshocky77
I don't know if I'm the first or only person to find this functionality useful, but in a recent project of mine one of my tasks was used for importing large amounts of data which took a total of 20 minutes combined. It was extremely nice knowing where in the import it was so I wrote a function wh

[symfony-users] Re: Symfony backend questions?

2009-05-18 Thread Lawrence
As Eno says, you would create a plugin to share a module between the backend and frontend. For the sake of simplicity, I usually create duplicate, redundant modules on the frontend and backend. Once the project is up and running, if there is time, I pull them out and make them a plugin. Fabien Po

[symfony-users] Re: What might cause output to appear when running a command line script? We're getting: Content-type: text/html; charset=iso-8859-1

2009-05-18 Thread Eno
On Mon, 18 May 2009, Lawrence wrote: > mybai...@mybailiwick.com [~/home/sfprojects/bw2]# php -v > PHP 5.2.9 (cgi-fcgi) (built: May 18 2009 02:46:53) > Copyright (c) 1997-2009 The PHP Group > Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies > > > But this just started a few days ago

[symfony-users] forum plugin for propel & sf 1.2

2009-05-18 Thread Alexandru-Emil Lupu
HI there! do you know a simple forum application compatible with symfony 1.2 ? i know that sfSimpleForumPlugin is available just for symfony 1.1 Also sfZnForumPlugin it sems is unstable. Thanks in advance. Alecs -- I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedi

[symfony-users] Re: forum plugin for propel & sf 1.2

2009-05-18 Thread Frank Stelzer
I wanted to branch this plugin and make it compatible to 1.2. However my contribution request is open since days and i do not have commit permissions :/ Am 18.05.2009 um 22:51 schrieb Alexandru-Emil Lupu: > HI there! > do you know a simple forum application compatible with symfony 1.2 ? > i

[symfony-users] Re: forum plugin for propel & sf 1.2

2009-05-18 Thread Alexandru-Emil Lupu
do you have it developed? maybe you could upload it as pear package somwhere else... alecs On Tue, May 19, 2009 at 12:21 AM, Frank Stelzer wrote: > I wanted to branch this plugin and make it compatible to 1.2. However my > contribution request is open since days and i do not have commit permissi

[symfony-users] Re: What might cause output to appear when running a command line script? We're getting: Content-type: text/html; charset=iso-8859-1

2009-05-18 Thread Lawrence
On May 18, 4:43 pm, Eno wrote: > On Mon, 18 May 2009, Lawrence wrote: > > mybai...@mybailiwick.com [~/home/sfprojects/bw2]# php -v > > PHP 5.2.9 (cgi-fcgi) (built: May 18 2009 02:46:53) > > Copyright (c) 1997-2009 The PHP Group > > Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies >

[symfony-users] Re: What might cause output to appear when running a command line script? We're getting: Content-type: text/html; charset=iso-8859-1

2009-05-18 Thread Jacob Coby
On May 18, 2009, at 5:34 PM, Lawrence wrote: >> >> So there's been no software updates? What's weird is, on most >> platforms, >> the CGI binary is called php-cgi and the command-line is called >> just php. > > Well, I don't know. We keep the Symfony project in Subversion, but we > don't keep

[symfony-users] Re: how to change an integer form input to a string?

2009-05-18 Thread Lawrence
On May 18, 5:19 am, Gareth McCumskey wrote: > Did you rebuild model after changing schema? (propel:build-model) I just rebuilt the model and that seems to have fixed the problem. I had assumed that the conversion to an integer would have happened in the form class - in the validators. But I gue

[symfony-users] Re: sfDoctrinePlugin/sf1.2

2009-05-18 Thread Johannes Heinen
whoho, got it. For the ones who want to know: http://www.doctrine-project.org/documentation/manual/1_1/en/component-overview getModified(true) is the keyword. thanks. On 18 Mai, 18:17, Johannes Heinen wrote: > HI all, > > is there a way to revert changes made to an doctrine object during a

[symfony-users] Re: forum plugin for propel & sf 1.2

2009-05-18 Thread Frank He
Yes, I like to have a try with this plugin also. Thanks. On Mon, May 18, 2009 at 5:28 PM, Alexandru-Emil Lupu wrote: > do you have it developed? > maybe you could upload it as pear package somwhere else... > alecs > > > On Tue, May 19, 2009 at 12:21 AM, Frank Stelzer wrote: > >> I wanted to branc

[symfony-users] Re: sfTask::logProgress()

2009-05-18 Thread nick
On May 18, 3:12 pm, isleshocky77 wrote: > I don't know if I'm the first or only person to find this > functionality useful, but in a recent project of mine one of my tasks > was used for importing large amounts of data which took a total of 20 > minutes combined. It was extremely nice knowing