[symfony-users] Re: Regarding Url

2008-04-03 Thread manish
what is the default parameter in url_for . true or false? On Apr 4, 11:33 am, D3F <[EMAIL PROTECTED]> wrote: > url_for has extra parameter "true", > example: >'listing/list?prop_category=' . $prop_category . '&listing_type=' . > $listing_type . '&search_str=' . $location, true) > > On Apr 4,

[symfony-users] Re: Regarding Url

2008-04-03 Thread manish mishra
Thanks friend . now its working... On Fri, Apr 4, 2008 at 12:03 PM, D3F <[EMAIL PROTECTED]> wrote: > > > url_for has extra parameter "true", > example: > 'listing/list?prop_category=' . $prop_category . '&listing_type=' . > $listing_type . '&search_str=' . $location, true) > > > > > On Apr 4, 8

[symfony-users] Re: Regarding Url

2008-04-03 Thread D3F
url_for has extra parameter "true", example: wrote: > Hi Friends, > > I have generated a routing rule in routing.yml > > search_email_friend: > url: /:prop_category/:listing_type/properties/:search_str > param: { module: listing, action: list} > requirements: { listing_type: rent|sale|new|

[symfony-users] Re: Putting forms in session

2008-04-03 Thread Sumedh
Thanks Thomas... I've always felt that there should be a scope between session and request... Think of a wizard in an interactive web application... We need the data for 4-8 requests...but not after that... I think struts 2.0 has something for this... Have you guys felt this? Do you clear the

[symfony-users] Regarding Url

2008-04-03 Thread manish
Hi Friends, I have generated a routing rule in routing.yml search_email_friend: url: /:prop_category/:listing_type/properties/:search_str param: { module: listing, action: list} requirements: { listing_type: rent|sale|new|resale, prop_category: residential|commercial } and create a url in

[symfony-users] Re: Putting forms in session

2008-04-03 Thread manish mishra
It can be help me. Thanks, Manish. On Fri, Apr 4, 2008 at 1:55 AM, Thomas Rabaix <[EMAIL PROTECTED]> wrote: > Hello, > > There are different solutions to temporary store form information : > - use the session : store the form value into a hash key array > - use hidden values in the form

[symfony-users] Re: AdminGenerator : showing field other than ID

2008-04-03 Thread James
create a __toString() function in your payment table and have it return the public function __toString() { return $this->paymentTypeName(); } That is what you want. James On Apr 3, 2008, at 9:29 PM, Craig Boxall wrote: > Hi, > > I've got a foreign key in my schema: > > I have a

[symfony-users] Problems to get Oracle working - databases.yml

2008-04-03 Thread Pedro Casado
Im running symfony 1.0.13 Ive just installed Oracle from a rpm on a Fedora 7. Everything is ok. Ive created an user and its logging in on the schema throught console without problems. Im now testing.. My schema.yml: propel: cliente: id: nome: varchar(200) propel.ini propel.database

[symfony-users] Re: Best approach to get data from a sfLucenePager object

2008-04-03 Thread gestadieu
I guess the best would be to store enough information in your lucene db to be able to re-create most of your data from it, it will be faster and does not need to retrieve data from your db on display. you could easily store in lucene your avatar filename and display the avatar without the need of

[symfony-users] Re: a mixing for all get*

2008-04-03 Thread hutchic
Ian: I have seen and considered installing phpaspect (or similar alternative on our development site). Lee: Not so much auditing although an interesting idea as well. Basically I was looking to catch and log all fatal errors however it's occured to me that this will not work. We end up with fatal

[symfony-users] Re: Admin generator - how to force a field type in 'list' view?

2008-04-03 Thread Jill Elaine
Hmmm, not sure this will work, but, if you are using the admin generator, in your generator.yml, you might try: list: title: My List Title display: [ _my_partial, column1, column2 ] fields: my_partial: { type: checkbox } Does that work? --~--~-~--~~

[symfony-users] AdminGenerator : showing field other than ID

2008-04-03 Thread Craig Boxall
Hi, I've got a foreign key in my schema: I have a table called registration with a field called payment_type_id which is a foreign key relationship to the table payment_type and the field id Symfony is generating this relationship for me happily but in the admin, i want to display payment_

[symfony-users] Re: Admin generator - how to force a field type in 'list' view?

2008-04-03 Thread James
Create a table of attributes and create a relationship between your attribute table and the field that has one of the values. Then in your model for attributes define the __toString() function and the admin genorator will automatically pull whatever __toString() returns so if you have a f

[symfony-users] Re : [symfony-users] Re: Symfony Developer (For freelance)

2008-04-03 Thread Loïc Vernet
Indeed, he should use the wonderfull Symfonians application and the dedicated wiki page :) :) - Message d'origine De : "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> À : symfony users Envoyé le : Jeudi, 3 Avril 2008, 23h55mn 38s Objet : [symfony-users] Re: Symfony Developer (For freelance)

[symfony-users] Re: Symfony Developer (For freelance)

2008-04-03 Thread [EMAIL PROTECTED]
Bad style body. This is not the place for that. Posting it on all groups makes it even worser. Sorry, my 2 cents. Michael On 3 Apr., 20:55, tolga <[EMAIL PROTECTED]> wrote: > Hi there, > I have experience with Symfony Framework created frontend of an > internetional dating site. > I want to c

[symfony-users] Re: Admin generator - how to force a field type in 'list' view?

2008-04-03 Thread Ben
Thanks Jill, not quite what I was after but thanks anyway. Basically, in the 'list' view I've created a new partial column "has_attribute_x" which (obviously) corresponds to getHasAttributeX() in my actions. That method does nothing more than: public function getHasAttributeX() { return $this

[symfony-users] Re: Putting forms in session

2008-04-03 Thread Thomas Rabaix
Hello, There are different solutions to temporary store form information : - use the session : store the form value into a hash key array - use hidden values in the form - store the values in the database (a memory table) - use sfFunctionCache (this is not documented but it is very nice) Is u

[symfony-users] Re: Best approach to get data from a sfLucenePager object

2008-04-03 Thread Marco Schierhorn
Im trying now to use Temporary Tables in mysql. I get all the results from the index lucene search, create a new temporary table and insert all the ids in the table. After that i do a INNER JOIN on the temp table... Would this be a good solution? You have to remember that there could be many ids

[symfony-users] Best approach to get data from a sfLucenePager object

2008-04-03 Thread Marco Schierhorn
Hi symfonians, first of all i have to thank Carl for this great plugin ( sfLucene ). Now to my questions : The search on the index works perfect. I get a sfLucenePager object after that. Now my question is, what would be the best approach to gather additional data from the database for exampl

[symfony-users] Putting forms in session

2008-04-03 Thread Sumedh
Duh... ??? On Apr 3, 2:11 pm, Marco Schierhorn <[EMAIL PROTECTED]> wrote: > Hi, > > is there an easy way to drop some objects of the result object of the > sfLucenePager Object? > I have to reduce the number of values which i get with getNbResults. > My thoughts are to just get the data of the in

[symfony-users] Re: Modules organisation

2008-04-03 Thread Georg Sorst
Hi Nicolas, what's your motivation behind this separation you are trying to achieve? Anyway, this separation is already built into Symfony, just not across different files and directories depending on the layer. The URL myproject/product/listproduct/ for example will actually call the executeLi

[symfony-users] Re: messages on the login and security modules...

2008-04-03 Thread Dmitry Nesteruk
use secure_module: secure // your secure module with message secure_action: index 2008/4/3, Bruno Reis <[EMAIL PROTECTED]>: > > Hi, > > when a user does not have acess he is redirected as configured in > settings.yml: > > all: > login_module: login > login_action:

[symfony-users] Re: messages on the login and security modules...

2008-04-03 Thread Thomas Dedericks
Hi, you could use another action than index to set your message, then redirect to index : secure_action:needCredentials -> in the login controller : public function executeNeedCredentials() { $this->setFlash('message', 'You have to login to access this area'); $this->redirect('login/i

[symfony-users] messages on the login and security modules...

2008-04-03 Thread Bruno Reis
Hi, when a user does not have acess he is redirected as configured in settings.yml: all: login_module: login login_action: index secure_module: login secure_action: index it is working fine. But, how do I show a message to the user on the login telli

[symfony-users] Re: Regarding Cookies and URL.

2008-04-03 Thread Jill Elaine
In symfony, when you go to a 'list' webpage and either sort or filter the records, you get a cookie that remembers this sort or filter. If you don't 'reset' the filter, or somehow undo the sort (I don't even know if it is possible to undo the sort in a default install of symfony?), this cookie wil

[symfony-users] Re: Custom Escaping Method

2008-04-03 Thread Sebastian Busch
Hi, yes, it's possible, not as a class, but rather as a _function_. You can define you own escaping function: grep for "ESC_ENTITIES" and look like it's done in symfony 1.0 core, you can do the same with your custom escaping function. We backported htmlspecialchars() escaping from sf 1.1 to sf

[symfony-users] Re: Force propel to generate exact db schema

2008-04-03 Thread Mrotsalap3x
Same problem. Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL

[symfony-users] Regarding Cookies and URL.

2008-04-03 Thread manish
Hi, i have generate a routing rule in routing.yml and create a url according routing rule in templet. it's working correctly when i don't clear the cookies from the firefox/ IE. but when i clear the cookie from firefox/IE, it's not working. Basically when i clear the cookies from private data in

[symfony-users] Re: sfAlternativeSchemaPlugin broken on Windows?

2008-04-03 Thread Ian P. Christian
Lee Bolding wrote: > I'm guessing that it's something to do with hardcoded /'s in paths or maybe 2 /'s in a row - took me ages to figure that out when deploying onto a windows machine once actaully, maybe a co-worker figured it out... either way, annoying :) define(SOMETHING, dirname(__

[symfony-users] Re: sfAlternativeSchemaPlugin broken on Windows?

2008-04-03 Thread Ian P. Christian
Lee Bolding wrote: > I'm guessing that it's something to do with hardcoded /'s in paths or maybe 2 /'s in a row - took me ages to figure that out when deploying onto a windows machine once actaully, maybe a co-worker figured it out... either way, annoying :) define(SOMETHING, dirname(__

[symfony-users] Re: Custom Escaping Method

2008-04-03 Thread Ian P. Christian
Alex wrote: > Hello, > > I would like to use my own class for escaping output. > > escaping_method: ESC_ENTITIES # Function or helper used for > escaping. Accepted values: ESC_RAW, ESC_ENTITIES, ESC_JS, > ESC_JS_NO_ENTITIES. Unforunatly, you can't - atleast not in sf1.0 (I've not checked sf

[symfony-users] sfAlternativeSchemaPlugin broken on Windows?

2008-04-03 Thread Lee Bolding
Hi All, Can somebody verify for me that sfAlternativeSchemaPlugin doesn't work on Windows? I've tried it on my own machine, and another developer here on his machine and it just doesn't seem to build the objects. The same codebase works fine on our Linux servers, and on my Mac. I'm guessi

[symfony-users] sfLucene - Drop Values from the results object (sfLucenePager)

2008-04-03 Thread Marco Schierhorn
Hi, is there an easy way to drop some objects of the result object of the sfLucenePager Object? I have to reduce the number of values which i get with getNbResults. My thoughts are to just get the data of the index. Before this solution i did a find on the index. After i did run a "filter" over

[symfony-users] Re: Putting forms in session

2008-04-03 Thread Sumedh
So how do YOU guys handle session data? You create form-bean like classes, and use them in actions? or you store the fields individually as attributes? My code is getting unmanageable right now...because of so many form fields...all represented as separate variables...and maintained in hidden va

[symfony-users] Re: difference between lib/file.php and lib/filePeer.php

2008-04-03 Thread shaiin
thank you very much for all your answers :) c.sidney On Apr 2, 10:07 pm, Tom Haskins-Vaughan <[EMAIL PROTECTED]> wrote: > OK, that's better than my answer! :D > > Nicolas Perriault wrote: > > On Wed, Apr 2, 2008 at 3:19 PM, shaiin <[EMAIL PROTECTED]> wrote: > > >> I'd like to know what the diff

[symfony-users] Force propel to generate exact db schema

2008-04-03 Thread [YS.PRO]
I need to generate schema exactly as in database, i.e. also to generate table's length. f.e.: integer(8) instead of INTEGER ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this gr

[symfony-users] Re: Schema.yml generation for Oracle RDBMS

2008-04-03 Thread Mladen Gogala
On Apr 2, 5:47 pm, Tom Haskins-Vaughan <[EMAIL PROTECTED]> wrote: > * propel-generate-schema generates the schema.yml file from a given It's probably a mistake, you wanted propel-build-schema. It does work, but it generates schema.yml for all tables in the given schema. It can be less then prac