[symfony-users] Re: Embed forms of one-to-many relation (doctrine)

2009-03-03 Thread caefer
even something as simple as this will fail with the same error: {{{ $this->form = new OrderForm(); $this->form->embedForm('Items[0]', new OrderItemForm()); }}} On 4 Mrz., 08:37, Christian Schaefer wrote: > Hi all, > > I've read several similar posts so far but none was helping so far.. > > T

[symfony-users] Embed forms of one-to-many relation (doctrine)

2009-03-03 Thread Christian Schaefer
Hi all, I've read several similar posts so far but none was helping so far.. This is my schema.yml: {{{ Order: tableName:orders actAs: Timestampable: columns: id: { type: integer(4), primary: true, autoincrement: true } count: { type: integer(4) } order_ad

[symfony-users] sfFunctionCache causing Segmentation fault?

2009-03-03 Thread Sumedh
Hi Friends, I am executing this simple code - $city=$this->getRequestParameter('city'); $function_cache_dir = sfConfig::get('sf_cache_dir').'/function'; $fc = new sfFunctionCache($function_cache_dir); // set life time for city cache is define in app.yml file $fc->setLifeTi

[symfony-users] Re: How do you efficiently build object graphs

2009-03-03 Thread Lawrence Krubner
This is also worth noting: http://propel.phpdb.org/trac/wiki/Users/Documentation/1.2/ManyToManyRelationships "Because Propel's support for relationships maps directly to the way that relationships are handled at the database level, there is no magical support for many-to-many relationships in Pr

[symfony-users] Re: How do you efficiently build object graphs

2009-03-03 Thread Lawrence Krubner
> The ideal way I would think to solve this would be for Propel to be > able to efficiently create composite objects, but I don't see an easy > way to do this, since the Criteria objects only allow me to specify > conditions regarding the query results, not column selects that would > allow me to

[symfony-users] Re: how to get minimum/maximum longitude and longitude

2009-03-03 Thread jukea
google gives the following : http://mathforum.org/library/drmath/view/61135.html On Mar 3, 10:57 pm, xhe wrote: > I have met a problem. I want to get boundary longitude and latitude of > an area. That is within xxx KM of point A. > If you have the formula, can you please share with me? > > Than

[symfony-users] Re: I can not get sfWidgetFormTextareaTinyMCE to work, even when I copy the examples straight from the Symfony website

2009-03-03 Thread Lawrence Krubner
Even if I do something desperate, such as open up the editSuccess template and this widget schema info right before it is called, I still get the same error: widgetSchema['description'] = new sfWidgetFormTextareaTinyMCE(array( 'width' => 550, 'hei

[symfony-users] sfWidgetFormSelectDoubleList problem.

2009-03-03 Thread Meher
Hello, I'm trying to use your : sfWidgetFormSelectDoubleList from the sfFormExtraPlugin... I downloaded the plugin manually .. and copied the folder in the plugins folder in my project .. it seems to be working ... i can initialize the plugin by filling the choices array my two questions are :

[symfony-users] Re: I can not get sfWidgetFormTextareaTinyMCE to work, even when I copy the examples straight from the Symfony website

2009-03-03 Thread Lawrence Krubner
This page has some useful documentation: http://www.symfony-project.org/book/forms/1_2/en/A-Widgets#chapter_a_sub_sfwidgetformtextareatinymce It gives this example: $w = new sfWidgetFormTextareaTinyMCE( array(), array('class' => 'foo') ); It doesn't mention that "class" is required, but th

[symfony-users] I can not get sfWidgetFormTextareaTinyMCE to work, even when I copy the examples straight from the Symfony website

2009-03-03 Thread Lawrence Krubner
If you go here: http://www.symfony-project.org/blog/2008/10/18/spice-up-your-forms-with-some-nice-widgets-and-validators then you see this as an example: $this->widgetSchema['content'] = new sfWidgetFormTextareaTinyMCE(array ( 'width' => 550, 'height' => 350, 'config' => 'theme_advanced_

[symfony-users] Re: what is the best way to enable JQuery in Symfony?

2009-03-03 Thread Lawrence Krubner
On Mar 3, 10:35 pm, Damien Lepage wrote: > You can use sfJqueryReloadedPlugin which allows to specify a path to > jquery.js in your app.yml > The plugin does not handle the UI extension yet. > I guess you can set the path to your UI js in a custom property of app.yml. Thanks, but I'm using Jq

[symfony-users] how to get minimum/maximum longitude and longitude

2009-03-03 Thread xhe
I have met a problem. I want to get boundary longitude and latitude of an area. That is within xxx KM of point A. If you have the formula, can you please share with me? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[symfony-users] Re: what is the best way to enable JQuery in Symfony?

2009-03-03 Thread Damien Lepage
You can use sfJqueryReloadedPlugin which allows to specify a path to jquery.js in your app.yml The plugin does not handle the UI extension yet. I guess you can set the path to your UI js in a custom property of app.yml. 2009/3/3 Lawrence Krubner > > I'm looking at this page: > > http://www.symf

[symfony-users] Re: How does one activate the Rich Date widget?

2009-03-03 Thread Lawrence Krubner
I managed to get the rich date widget mostly working. However, it is not formatting correctly. This is what it looks like for me: http://lawrence.sds5.com/date_widget_looks_wrong.gif You notice how the Prev and Next buttons are forced together? And there is no background color or image? What do

[symfony-users] what is the best way to enable JQuery in Symfony?

2009-03-03 Thread Lawrence Krubner
I'm looking at this page: http://www.symfony-project.org/book/1_1/11-Ajax-Integration It says; --- All of the helpers described here are available in templates, provided that you declare the use of the Javascript helper group. --- But

[symfony-users] Re: How does one activate the Rich Date widget?

2009-03-03 Thread Lawrence Krubner
Apologies, I didn't see that I had to install JQuery myself. On Mar 3, 9:09 pm, Lawrence Krubner wrote: > I'm running Symfony 1.1.4 > > I want to use the rich date widget mentioned here: > > http://www.symfony-project.org/blog/2008/10/18/spice-up-your-forms-wi... > > I've installed the plugin.

[symfony-users] Re: Most developed CMS plugin using doctrine?

2009-03-03 Thread Lawrence Krubner
Tom, that sounds really great. What kind of license will this be under? On Jan 14, 10:25 am, "Tom Boutell" wrote: > We're speeding along on one right now and should have an early public > beta in a couple weeks. Features of the forthcoming pkContextCMS > include: > > * Use of Doctrine column ag

[symfony-users] How does one activate the Rich Date widget?

2009-03-03 Thread Lawrence Krubner
I'm running Symfony 1.1.4 I want to use the rich date widget mentioned here: http://www.symfony-project.org/blog/2008/10/18/spice-up-your-forms-with-some-nice-widgets-and-validators I've installed the plugin. In my form class, I tried this: $this->widgetSchema['date'] = new sfWidgetFormJQu

[symfony-users] routing for multilingual website

2009-03-03 Thread yannick.gauth...@gmail.com
We are working on a website (symfony 1.2 and doctrne) that need to be in 2 language: french and english. We needto have route translate in each language so : route_a: url : /my/route/in/english { module: abc , actions: xyz } route_a: url : /ma/route/en/francais { module: abc , act

[symfony-users] routing for multilingual website

2009-03-03 Thread yannick.gauth...@gmail.com
We are working on a website (symfony 1.2 and doctrne) that need to be in 2 language: french and english. We needto have route translate in each language so : route_a: url : /my/route/in/english { module: abc , actions: xyz } route_a: url : /ma/route/en/francais { module: abc , act

[symfony-users] Re: Propel 1.3 nestedset strange behavior

2009-03-03 Thread Yevgeniy A. Viktorov
Have you tried to post ticket there? BTW, http://propel.phpdb.org/trac/wiki/Development/NewSite On Tue, 2009-03-03 at 12:11 -0800, Jérôme TEXIER wrote: > I've found a weird behavior while using Propel 1.3 with included > nestedset module on symfony 1.2.4. > > Moving a node to one of its desc

[symfony-users] Re: Most developed CMS plugin using doctrine?

2009-03-03 Thread Dolorian
Looking forward for your solution. I've been googling around for doctrine CMS and found this thread. Wich you luck for the implementation, hope it will come out soon :) On Jan 14, 5:25 pm, "Tom Boutell" wrote: > We're speeding along on one right now and should have an early public > beta in a co

[symfony-users] How do you efficiently build object graphs

2009-03-03 Thread Java Guy
I have three tables and I am using Propel for my data layer. Here is a quick description of my tables: Facility, which has an address defined in the Address table, and the Address has a reference to the RefStateProvince table. I've built a search index for facilities (using Zend Search Lucene),

[symfony-users] Propel 1.3 nestedset strange behavior

2009-03-03 Thread Jérôme TEXIER
I've found a weird behavior while using Propel 1.3 with included nestedset module on symfony 1.2.4. Moving a node to one of its descendant put strange values on tree_left & tree_right fields and breaks the tree. I'd like to post this as a propel ticket on http://propel.phpdb.org/ but my message

[symfony-users] Re: sfForms - group validator

2009-03-03 Thread thierrybo
On 3 oct 2008, 09:58, adrive wrote: > Hello. I am wondering, if there is any kind of group validator. > > I have fields which are not required unless one of them is filled. > > What is the best way to implement this? Can anybody give me some > example of how to validate a group in symfony 1.1? >

[symfony-users] Ajax form submit with same forms values than previous submit doesn't work !

2009-03-03 Thread Shinkan
Hi there ! I just want to submit a form with ajax, so basicaly, I do : 'stats', 'url' => $action_url, 'script' => true )) ?> If I put a value on the input field, and click submit, this does work like a charm. BUT, the action result is a template containing the form again, with submit

[symfony-users] Re: symfony errors to display line numbers

2009-03-03 Thread Richtermeister
Hi Joshua, the logs don't include stacktraces, but when you're browsing in dev mode you should get a stacktrace, no? Have a great day, Daniel On Mar 3, 12:27 am, naholyr wrote: > Maybe because your class has a primary key named another way than > "Id". > > On 3 mar, 04:10, Joshua wrote: > >

[symfony-users] Re: Frontend & backend - one login form

2009-03-03 Thread Yevgeniy A. Viktorov
You can override backend login application to simply redirect any request to frontend application and put all logic there, i.e. let it make decision on who is logged in and were redirect him to. Cross application links would be helpfull also. On Tue, 2009-03-03 at 12:00 +0100, Tomasz Ignatiuk

[symfony-users] uploadin flash

2009-03-03 Thread torso
Hi! I am using symfony 1.0. Now i am doing flash file upload. I cant send some files to server, what is the problem? Here is the simple upload form. 40, 'type' => 'file')) ?> Here is the action update $gallery = new Gallery(); $gallery->setFlash($this->getRequest()->getFileName('flash'));

[symfony-users] Re: How do you store names in database?

2009-03-03 Thread Gareth McCumskey
It is probably best to store the names as is for the reasons mentioned. As an example here in South Africa we also have people with "van" in their last names, but also have multiple joined names with dashes seperating and some where first names are only upper cased on the second letter etc. There a

[symfony-users] Re: How do you store names in database?

2009-03-03 Thread David Landgren
David Herrmann wrote: > Lee Bolding schrieb: >> Simple question, for a rather trivial piece of functionality, but it's >> all in the details... >> >> How do you store peoples names in the database? >> >> As in, do you upper/lower case firstname and lastname or ucfirst etc? >> why? > > No, i d

[symfony-users] Re: How do you store names in database?

2009-03-03 Thread Tom Haskins-Vaughan
You could just leave them as the user entered them but ask the user on the form to enter his/her name as he would like it to be displayed. David Herrmann wrote: > Lee Bolding schrieb: >> Simple question, for a rather trivial piece of functionality, but it's >> all in the details... >> >> How d

[symfony-users] Re: How do you store names in database?

2009-03-03 Thread David Herrmann
Lee Bolding schrieb: > Simple question, for a rather trivial piece of functionality, but it's > all in the details... > > How do you store peoples names in the database? > > As in, do you upper/lower case firstname and lastname or ucfirst etc? > why? No, i don't do any modifications of name

[symfony-users] How do you store names in database?

2009-03-03 Thread Lee Bolding
Simple question, for a rather trivial piece of functionality, but it's all in the details... How do you store peoples names in the database? As in, do you upper/lower case firstname and lastname or ucfirst etc? why? Usually, I leave it however the user has formatted it when they entered i

[symfony-users] jq_remonte_function and 'with' =>

2009-03-03 Thread symfony users
Hello i done this script : get('region'), 'getRegionId', array ( 'related_class' => 'AnnonceRegion', 'control_name' => 'region', 'peer_method'=> 'getRegionWithoutIndex', 'class' => 'input_text', 'include_custom' => 'Sélecti

[symfony-users] Re: Frontend & backend - one login form

2009-03-03 Thread Tomasz Ignatiuk
OK, but when I add authentication (Security on) I cannot define an application. It uses own application. So when session is gone it want redirect me to loginapp but to frontend/backend. 2009/3/3 David Herrmann > > Tomasz Ignatiuk wrote: > > I don't get it...But witch action should be targeted in

[symfony-users] Re: Frontend & backend - one login form

2009-03-03 Thread David Herrmann
Tomasz Ignatiuk wrote: > I don't get it...But witch action should be targeted in form? To > backend, or to frontend? I think this depends on your personal taste. But if don't like either solutions why not create a third application (besides frontend and backend), e.g. "loginapp", that handles o

[symfony-users] Re: Frontend & backend - one login form

2009-03-03 Thread Tomasz Ignatiuk
I don't get it...But witch action should be targeted in form? To backend, or to frontend? On 2 Mar, 23:42, Gandalf wrote: > set both app factories yml to use the same cookie and redirect to the > appropriate controller? > > a quick and dirty solution is to redirect using the whole url of the > b

[symfony-users] Re: sf1.2.4 - [resolved] problem of < headers already sent > when I send a file > 5kb to the browser

2009-03-03 Thread Olivier LOYNET
Thanks a lot, it's works well Olivier _ From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Thomas Rabaix Sent: Tuesday, March 03, 2009 8:46 AM To: symfony-users@googlegroups.com Subject: [symfony-users] Re: sf1.2.4 - problem of < headers al

[symfony-users] Re: Overriding javascript_include_tag

2009-03-03 Thread Sumedh
Okk... What about 1.0? :| On Mar 3, 1:25 pm, naholyr wrote: > I'm not sure you can override core-helpers. > > I worked (for Symfony 1.2) on a way to write helpers as classes and > not as functions, allowing inheritance, and a way to "overclass" > helpers (basically, it says "when you want to lo

[symfony-users] Re: symfony errors to display line numbers

2009-03-03 Thread naholyr
Maybe because your class has a primary key named another way than "Id". On 3 mar, 04:10, Joshua wrote: > one of my actions.classes generates the following error > >  Call to undefined method BaseWhatever::getId() > > Most symfony errors show up in the logs like this and I have no idea > where it

[symfony-users] Re: Overriding javascript_include_tag

2009-03-03 Thread naholyr
I'm not sure you can override core-helpers. I worked (for Symfony 1.2) on a way to write helpers as classes and not as functions, allowing inheritance, and a way to "overclass" helpers (basically, it says "when you want to load 'asset', please load 'azzet' instead". This overclassing feature coul