[symfony-users] Re: has anyone used link helper to generate absolute URL in command line task?

2009-03-13 Thread Jeremy Benoist
Like all others, I use app.yml but I don't set the host in $_SERVER ['HOST'] but in $_SERVER['HTTP_X_FORWARDED_HOST']. I remember I got some problem when saving host in HOST instead of HTTP_X_FORWARDED_HOST. Anyway, try this out and you will see what is the best :-) On 13 mar, 00:48, Sid Bacht

[symfony-users] Re: Object delete(), only by success

2009-03-13 Thread HAUSa
I've seen this happen in the default base form class. When I overwrote the updateObject(), I put some creation of other objects in it. When I placed a die() function, I printed the created objects on screen. They were created, but because of the none-completion of the updateObject() function not s

[symfony-users] Re: Doctrine 1.0 search utf8 strings

2009-03-13 Thread tonio607
I have a Doctrine_PgSql_Exception : SQLSTATE[22021]: Character not in repertoire: 7 ERREUR: séquence d'octets invalide pour l'encodage « UTF8 » : 0xe3a925 HINT: Cette erreur peut aussi survenir si la séquence d'octets ne correspond pas au jeu de caractères attendu par le serveur, le jeu étant con

[symfony-users] Re: Overriding plugin schema with doctrine and sf 1.2

2009-03-13 Thread Nicolas
I have looked more closely and what happens is that doctrine generates the model of the customized schema file (sfGuardUser) in lib/model/ doctrine AND generates another sfGuardUser class for the plugin in lib/model/sfDoctrineGuardUser. I've tried to use the "package" attribute in the customized

[symfony-users] Re: Overriding plugin schema with doctrine and sf 1.2

2009-03-13 Thread Thomas Rabaix
I will advice you to symply overwrite the setTableDefinition of the generated class. As this will allow to tweak only some part of the model, and you will get less bugs when plugins is updated. On Fri, Mar 13, 2009 at 10:39 AM, Nicolas wrote: > > I have looked more closely and what happens is th

[symfony-users] sfWidgetFormSelect and values from database

2009-03-13 Thread dziobacz
I would like to make select list where each option name is from database - city and value is also from database - id. I have made that query (it return id and city): public function getSomething() { $q = Doctrine_Query::create() ->select('s.id, s.city') ->from('SfGu

[symfony-users] Symfony 1.1 admingen. one-to-one

2009-03-13 Thread Hofferek Attila
Hello! I have an admin generator module for a mysql table mobilephones, with a foreign key to simcards ID. Simcards are selectable in the edit action with a select box. I want to achieve to disappear from the select box, if it is already assigned to a cellphone. Please tell me directions, whe

[symfony-users] Re: Class 'sfGuardSecurityUser' not found

2009-03-13 Thread ramirez.cardenas.alv...@gmail.com
have you activated the plugin in config/ProjectConfiguration.class.php? --~--~-~--~~~---~--~~ 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 un

[symfony-users] Re: sfWidgetFormSelect and values from database

2009-03-13 Thread dziobacz
I know :D !! $choice = Doctrine::getTable('SfGuardUserProfile')->getSomething(); foreach ($choice as $w): $table[$w->getId()] = $w->getCity(); endforeach; $this->setWidgets(array( 'city' => new sfWidgetFormSelect(array('choices' => $table)), )); On 13 Mar, 11:34, dzioba

[symfony-users] Re: sfWidgetFormSelect and values from database

2009-03-13 Thread Sid Bachtiar
> I know :D !! Why am I so familiar with this expression of yours dziobacz? ;) On Sat, Mar 14, 2009 at 12:20 AM, dziobacz wrote: > > I know :D !! > > $choice = Doctrine::getTable('SfGuardUserProfile')->getSomething(); > >    foreach ($choice as $w): >        $table[$w->getId()] = $w->getCity();

[symfony-users] Re: Pake V's Phing?

2009-03-13 Thread Lee Bolding
FWIW, I chose Phing. Seems pretty cool - just trying to work out how to make a wrapper so I can deploy my application like so : ./deploy.sh --target=[dev|test|stage|prod] --tag= On 10 Mar 2009, at 10:45, Lee Bolding wrote: > > We touched on this a while ago with talk about Capistrano etc. >

[symfony-users] sfEasyGMapPlugin v1.0 out

2009-03-13 Thread Fabrice B
sfEasyGmapPlugin is a very easy to use Google Maps API plugin for symfony, inspired by the Phoogle class... but better :-) A very simple version has been available for a few months but I have now finally released the 1.0 version, with the following new features : - it is now sf1.2 compatible st

[symfony-users] Re: sfEasyGMapPlugin v1.0 out

2009-03-13 Thread Fabrice B
For the official page I meant of course: http://www.symfony-project.org/plugins/sfEasyGMapPlugin Fabrice Bernhard --http://www.theodo.fr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post

[symfony-users] Re: How to cleanly post populating form fields or object

2009-03-13 Thread Steve the Canuck
Thanks - I considered that option, but in this context, the postal/zip code is only valid if it can be geocoded. For example, if you buy a house in a new development, you may not be able to find your code yet. I'm just using Google at this point for Geocoding. It's pretty simple and easy to use

[symfony-users] Re: How to cleanly post populating form fields or object

2009-03-13 Thread Steve the Canuck
Thanks. I have used this technique, for example when I want to set a field which I keep in the session rather than in the form. Unfortunately, in my case, I cannot use this approach because I do not have access to the values I want from within my action. Steve On Mar 12, 1:03 pm, wissl wrote

[symfony-users] Re: How to cleanly post populating form fields or object

2009-03-13 Thread Steve the Canuck
Cool! I got this working, and a little cleaner than I expected. I created a post validator, and the validator itself returns the longitude and latitude coordinates as the cleaned values. I also discovered, that I could unset the coordinate fields in the form configuration, and as long as the va

[symfony-users] Re: Overriding plugin schema with doctrine and sf 1.2

2009-03-13 Thread Jonathan Wage
ohhh I know what it is :) Add this to the top of the plugin: "package: sfDoctrineGuardPlugin.lib.model.doctrine" This "package" option is automatically added to the schema files found in plugins so that the models are all generated in the right places. When you copy that schema file you just need

[symfony-users] Re: sfEasyGMapPlugin v1.0 out

2009-03-13 Thread Yevgeniy A. Viktorov
Congrats, Fabrice :) What do you think about form widget with such functionality: http://addresschooser.mapeed.com/doc/ to pick lng/lat visually? That's just an idea I would like to implement, but if no one did it yet? :D Thanks. Fabrice B wrote: > sfEasyGmapPlugin is a very easy to use Googl

[symfony-users] Re: sfEasyGMapPlugin v1.0 out

2009-03-13 Thread Thomas Rabaix
You should read these posts : http://rabaix.net/en/articles/2009/03/02/how-to-create-a-multi-field-widget-with-sf-form http://rabaix.net/en/articles/2009/03/04/how-to-use-the-sw-widget-form-g-map-address-widget ;) On Fri, Mar 13, 2009 at 6:15 PM, Yevgeniy A. Viktorov wrote: > > > Congrats, Fabr

[symfony-users] Re: sfEasyGMapPlugin v1.0 out

2009-03-13 Thread Yevgeniy A. Viktorov
Yeah, that's it! Have you any futher todo? :) Thank you! Thomas Rabaix wrote: > You should read these posts : > > http://rabaix.net/en/articles/2009/03/02/how-to-create-a-multi-field-widget-with-sf-form > http://rabaix.net/en/articles/2009/03/04/how-to-use-the-sw-widget-form-g-map-address-widg

[symfony-users] Generate fixture from database contents

2009-03-13 Thread Java Guy
Is there a task or method anyone knows of to generate a fixture from a plugin? I've got some initial data I've put into my database using a fixture? But some of it needs tweaking, and after tweaking, I'd like to regen the file. Tweaking it in the database makes life quite a bit simpler. If all

[symfony-users] how to index text with special characters

2009-03-13 Thread zero0x
Hi, (I'm talking about Zend Lucene as shown in Jobeet tutorial) I have text like this "žltý kôň" and want to be able to find it by "zlty kon" How should I index it? I tried UTF8 analyzer, but it didn't work. It could find it only by entering exact characters. So I tried to remove accented char

[symfony-users] Re: Generate fixture from database contents

2009-03-13 Thread Lee Bolding
Try the sfYamlDumper class - http://www.symfony-project.org/api/1_2/sfYamlDumper You'll probably need to write a small action/task to dump each object, but shouldn't be too hard :) On 13 Mar 2009, at 18:59, Java Guy wrote: > > Is there a task or method anyone knows of to generate a fixture fr

[symfony-users] Re: Generate fixture from database contents

2009-03-13 Thread Lee Bolding
I forgot - phpMyAdmin also allows you to export to YAML That'd probably be quicker On 13 Mar 2009, at 18:59, Java Guy wrote: > > Is there a task or method anyone knows of to generate a fixture from a > plugin? > > I've got some initial data I've put into my database using a fixture? > But some

[symfony-users] Re: where should I add file with javascript.

2009-03-13 Thread dziobacz
It is strange - Your method is logical but it doesn't work for me :/ I cleared cache. I have also tried to do that for all module 'registration' in yourapp/frontend/config/view.yml: registration: javascripts: [registration.js] but it also didn't work. So I will have to use my method. :O On 1

[symfony-users] Strange white spaces

2009-03-13 Thread Tomasz Ignatiuk
Hi, I have a strange bug. In one of my page with forms there is a one white space (brak line). I don't know why, because everything seems to be OK. And this code generates this:  Nowy dokument And this white space makes one line break. It is strange because in two other pages witch

[symfony-users] Re: where should I add file with javascript.

2009-03-13 Thread Sid Bachtiar
Whoops, leave out the .js, for example javascripts: [registration] (no .js) On Fri, Mar 13, 2009 at 12:07 PM, dziobacz wrote: > > It is strange - Your method is logical but it doesn't work for me :/ I > cleared cache. I have also tried to do that for all module > 'registration' in yourapp/fron

[symfony-users] Re: how to index text with special characters

2009-03-13 Thread Maerlyn
Check the slugify method, also found in the Jobeet tutorial, in svn it's in lib/Jobeet.class.php. It uses iconv to convert accented characters via transliteration, so Jobeet::slugify("žltý kôň") returns "zlty kon". On márc. 13, 20:02, zero0x wrote: > Hi, > > (I'm talking about Zend Lucene as sho

[symfony-users] Dynamic select box default value

2009-03-13 Thread tundrax
Hi all, I am using sfDoctrineForm where 1 select box is dynamic. In the form i set the 'choices' of the dynamic select box: $this->widgetSchema['s2'] = new sfWidgetFormChoice(array( 'choices' => Doctrine::getTable('S2')->getRelatedValues() )); I have this function on Doctrine Table: class S2