[symfony-users] Re: using Yahoo UI in Symfony

2009-03-11 Thread Dustin Whittle
Vikram, You can copy and paste this example: http://developer.yahoo.com/yui/examples/editor/simple_editor_clean.html Otherwise, is there an error message? Also, tons of examples and docs are available here: http://developer.yahoo.com/yui/editor/ http://developer.yahoo.com/yui/examples/editor/

[symfony-users] Re: Add values after form submit

2009-03-11 Thread avorobiev
Place for adding of additional values to the submitted array is form validator for that field, because you need transform it to get valid values. Form can be used in some places (frontend + backend), and must work equal... That is why adding of additional values in controller action isn't good dea

[symfony-users] Re: using Yahoo UI in Symfony

2009-03-11 Thread SeeVik
The images are being referenced using relative pathslike background: url(../../../../assets/skins/sam/sprite.png) In this case it should work fine. What could be going wrong in this? thanks and regards Vikram On Mar 12, 2:23 pm, Eno wrote: > On Wed, 11 Mar 2009, SeeVik wrote: > > This doe

[symfony-users] Re: using Yahoo UI in Symfony

2009-03-11 Thread Eno
On Wed, 11 Mar 2009, SeeVik wrote: > This does display the text-editor, but it does not display the images? > Is there something that I missed in between? The images are already > there in the path they have been referenced to in the css files > specified here. The images are referenced in t

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

2009-03-11 Thread xhe
I want to send email in task, but when I used link_to ('text','@url','absolute=true'), the responded url is always like this one http://.\symfony/action/module... I think this is because it is running in commandline taks environment. Are there any good solution to use the url helper to generate a

[symfony-users] using Yahoo UI in Symfony

2009-03-11 Thread SeeVik
Hello all, I want to use Yahoo UI library in my symfony project for displaying a simple editor. I put the downloaded YUI library in my web/js folder. and just added references to the javascript files and css files in my modules view.yml like this all: javascripts: [yui/build/yahoo-dom-even

[symfony-users] Re: sfValidatorPropelUnique fails on updates - 1.2

2009-03-11 Thread Benjamin
I spoke too soon. Now it allows you to create multiple entries with the same user name. I've spent about 12 hours researching this, I read the form book, looked through all the tutorials, looked at the api documentation and search good for hours. Can someone please for the love of god help me f

[symfony-users] Re: pkContextCMS: the first beta is out!

2009-03-11 Thread Sid Bachtiar
Just wondering, is DbFinder in the plan at all? As it would mean Propel projects can use it ... This is a great news, I love sfSimpleCMS, so an improved CMS for Symfony 1.2 is long overdue. Thank you Tom :) On Thu, Mar 12, 2009 at 11:00 AM, Tom Boutell wrote: > > The first beta release of pkCon

[symfony-users] Re: Add values after form submit

2009-03-11 Thread Lawrence Krubner
On Mar 10, 12:58 pm, HAUSa wrote: > I got a form, in which users can select multiple values for a field > using sfWidgetFormChoiceMany(). > > Now, is it possible to add more values to the submitted array on > submit? I'm not talking about default values when the form shows, but > specifically w

[symfony-users] Re: Model Peer question about default values

2009-03-11 Thread Benjamin
Yes, if I var dump an instance of new Members(), it is preloaded with the default values. It is also set in the new entry form. This may be a bug. On Mar 11, 8:15 pm, Lawrence Krubner wrote: > I'm guessing that if a value is equal to the default value, then the > Model class should assume that

[symfony-users] Re: Model Peer question about default values

2009-03-11 Thread Lawrence Krubner
I'm guessing that if a value is equal to the default value, then the Model class should assume that this value has never been set before. Think about it the other way around: how should the Model code determine when a value has been previously set? Also, I'm curious, does the default value appea

[symfony-users] Re: a plugin to generate Google Sitemaps

2009-03-11 Thread Sid Bachtiar
Hey, just be warned it is alpha! :P You need to install alpha stability plugin like this (Symfony 1.2): $ php symfony plugin:install -s "alpha" sfSimpleGoogleSitemapPlugin Note the -s "alpha" I'm going to be working for Symfony 1.0 and 1.1 compatibility. On Thu, Mar 12, 2009 at 2:09 PM, Lawre

[symfony-users] Re: pkContextCMS: the first beta is out!

2009-03-11 Thread Lawrence Krubner
On Mar 11, 6:00 pm, Tom Boutell wrote: > The first beta release of pkContextCMS is out. > > pkContextCMS is a CMS based on Symfony 1.2 and Doctrine. > > Notable features include: > >     * Editing takes place “in context.” sfSimpleCMS followed this > principle for editing slots; we extend it to

[symfony-users] Re: a plugin to generate Google Sitemaps

2009-03-11 Thread Lawrence Krubner
On Mar 11, 8:53 pm, Sid Bachtiar wrote: > > the plugin has also no orm depensies. > > Just an update, I added auto detection to detect if DbFinder exists > and use it otherwise use Propel. > This is fantastic. Thanks. It looks like a good plugin, in the first place, and having it use DbFinder

[symfony-users] Re: a plugin to generate Google Sitemaps

2009-03-11 Thread Sid Bachtiar
> the plugin has also no orm depensies. Just an update, I added auto detection to detect if DbFinder exists and use it otherwise use Propel. On Wed, Mar 11, 2009 at 10:04 PM, gimler wrote: > > it generate sitemap with this standard (use by google, yahoo, > microsoft) > http://www.sitemaps.org/

[symfony-users] Re: Form Error Messages i18n

2009-03-11 Thread Tiago Nunes
Hi again, I already got it to work. I forgot to enable i18n in settings.yml... My mistake :) Now the error messages are translated. Thanks for your help. On Mar 11, 11:14 pm, Tiago Nunes wrote: > I had anerrorin the previous email. > > The tag shouldn't be there, but it's not the cause of i

[symfony-users] Re: Form Error Messages i18n

2009-03-11 Thread Tiago Nunes
I had an error in the previous email. The tag shouldn't be there, but it's not the cause of it not working.. On Mar 11, 11:10 pm, Tiago Nunes wrote: > Hi, > > I have tried to do it using an XLIFF file without success... > > I have put a file named "messages.pt.xml" in "apps/frontend/i18n/" > w

[symfony-users] Re: Form Error Messages i18n

2009-03-11 Thread Tiago Nunes
Hi, I have tried to do it using an XLIFF file without success... I have put a file named "messages.pt.xml" in "apps/frontend/i18n/" with the following content: Required. Campo Obrigatório. But the translation doesn't work... What am I doing w

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

2009-03-11 Thread HAUSa
Hmm... can you tell me more about this? I'm using MySQL. On 11 mrt, 22:56, Michael Smith wrote: > Try using transactions if your db supports it. Begin the transaction > before setting the rank and if the object can't be deleted roll back > otherwise commit it. > > On Mar 11, 4:47 pm, HAUSa > wr

[symfony-users] Model Peer question about default values

2009-03-11 Thread Benjamin
In my schema for a members table I have the default value for country set to 223. The BaseMembers.php class contains a setCountry method. This method flags the column as modified if it is not equal to the previous value. It also flags the column as modified if it is equal to the default value, e

[symfony-users] Re: sfValidatorPropelUnique fails on updates - 1.2

2009-03-11 Thread Benjamin
I'm going to leave this up in case anyone else has the same problem. The answer is that you must specify the primary key, if the unique field is not the primary key. Here is a working example: [code=php]  new sfValidatorPropelUnique(     array(         'model'         => 'Members',         'colu

[symfony-users] pkContextCMS: the first beta is out!

2009-03-11 Thread Tom Boutell
The first beta release of pkContextCMS is out. pkContextCMS is a CMS based on Symfony 1.2 and Doctrine. Notable features include: * Editing takes place “in context.” sfSimpleCMS followed this principle for editing slots; we extend it to adding, managing and reordering pages * Much easie

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

2009-03-11 Thread Michael Smith
Try using transactions if your db supports it. Begin the transaction before setting the rank and if the object can't be deleted roll back otherwise commit it. On Mar 11, 4:47 pm, HAUSa wrote: > Hi everybody, > > In one of my class models, I added an action on the delete() function: > >        

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

2009-03-11 Thread HAUSa
Hi everybody, In one of my class models, I added an action on the delete() function: public function delete(PropelPDO $oCon = null){ $aPages = PagePeer::doSelectFollowing($this->getRank (), $this- >getPageId()); foreach($aPages as $oPage){

[symfony-users] Re: Add values after form submit

2009-03-11 Thread HAUSa
Thanks for your replies both! I'm using Symfony 1.2. I considered doing it in the actions.class.php, but this _always_ has to be done by submitting the form. Both on the new action and the edit action. So I prefer doing it in the form class. Marijn, what exactly is the updateObject() function? It

[symfony-users] Re: modify login form in sfGuardPlugin

2009-03-11 Thread dziobacz
I placed it in sf_sandbox/lib/form/doctrine and it works - thx you very much :D On 11 Mar, 19:53, "Yevgeniy A. Viktorov" wrote: > Hello, > > Try to place your form(e.g. sfGuardFormSignin.class.php) into > "sf_sandbox/lib/form" or "sf_sandbox/apps/frontend/lib/form" > And clear cache, of course

[symfony-users] Re: modify login form in sfGuardPlugin

2009-03-11 Thread dziobacz
I placed it in sf_sandbox/lib/form/doctrine and now it works - thx you very much xD On 11 Mar, 19:53, "Yevgeniy A. Viktorov" wrote: > Hello, > > Try to place your form(e.g. sfGuardFormSignin.class.php) into > "sf_sandbox/lib/form" or "sf_sandbox/apps/frontend/lib/form" > And clear cache, of cou

[symfony-users] Re: modify login form in sfGuardPlugin

2009-03-11 Thread dziobacz
I placed it in sf_sandbox/lib/form/doctrine and it works - thx you very much :) On 11 Mar, 19:53, "Yevgeniy A. Viktorov" wrote: > Hello, > > Try to place your form(e.g. sfGuardFormSignin.class.php) into > "sf_sandbox/lib/form" or "sf_sandbox/apps/frontend/lib/form" > And clear cache, of course

[symfony-users] Best way to validate global, non field condition

2009-03-11 Thread Java Guy
I need to create a type of global validation that is not related to any field. Can a global validator handle this type of requirement? Basically my validator is a "limit" validator. The form contents should not be added to the database if there are already N existing entries for a specific set o

[symfony-users] Re: modify login form in sfGuardPlugin

2009-03-11 Thread Yevgeniy A. Viktorov
Hello, Try to place your form(e.g. sfGuardFormSignin.class.php) into "sf_sandbox/lib/form" or "sf_sandbox/apps/frontend/lib/form" And clear cache, of course ;) Thanks. dziobacz wrote: > I would like modify login form + its button (I need polish names). In > sf_sandbox\apps\frontend\modules I h

[symfony-users] modify login form in sfGuardPlugin

2009-03-11 Thread dziobacz
I would like modify login form + its button (I need polish names). In sf_sandbox\apps\frontend\modules I have created folder 'sfGuardAuth' and there 2 folders 'templates' with file 'signinSuccess.php' (button with polish name) and folder 'lib' with 'sfGuardFormSignin.class.php' (polish labels and

[symfony-users] Re: Problem with AJAX

2009-03-11 Thread Russen
Yeah. You should never, ever program javascript without a runtime debugger, and Firebug is pretty much the gold standard for Useful and Versatile. On Mar 10, 8:06 am, Gareth McCumskey wrote: > Are you using Firefox? If so try to get the Firebug add on installed if you > haven't already and try t

[symfony-users] Routing to web/ownfile/, need help fast.

2009-03-11 Thread torso
Hi I have a problem with routing. I have directory in web folder by name files. In web/files there is pic.php which shows pictures by pic? file=picname.jpg. Now I need to make routing www.example.com/files to web/files directory, not to the files module. How I can do that? Thanks for your help!

[symfony-users] Re: I can not get a class in the lib directory to autoload

2009-03-11 Thread Yevgeniy A. Viktorov
Try to place your widget into "widget" folder, i.e. myproject/lib/widget myproject/apps/frontend/lib/widget ... Then clear cache. p.s. with no promises, but might help ;) Lawrence Krubner wrote: > I created a new version of sfWidgetFormPropelSelect. I put > sfWidgetFormPropelSelectForTeams.cla

[symfony-users] Re: I can not get a class in the lib directory to autoload

2009-03-11 Thread Gareth McCumskey
Did you clear cache after creating it to allow the autoloader to add your new file to the autoload list? On Wed, Mar 11, 2009 at 3:17 PM, Lawrence Krubner wrote: > > I created a new version of sfWidgetFormPropelSelect. I put > sfWidgetFormPropelSelectForTeams.class.php in the /lib directory. The

[symfony-users] I can not get a class in the lib directory to autoload

2009-03-11 Thread Lawrence Krubner
I created a new version of sfWidgetFormPropelSelect. I put sfWidgetFormPropelSelectForTeams.class.php in the /lib directory. The class name is sfWidgetFormPropelSelectForTeams. If I read here: http://www.symfony-project.org/book/1_2/19-Mastering-Symfony-s-Configuration-Files#chapter_19_extending

[symfony-users] Re: Symfony Production Performance improvements

2009-03-11 Thread saad
Hi, I was at a php conference last week, and I attended a really good presentation from Ilia Alshanetsky: http://ilia.ws/files/phpquebec_2009.pdf It is NOT symfony specific, but you can find really good clue to optimize your php web app: To summarize: - optimize but don't touch the code (as less a

[symfony-users] no key_method in version 1.1 of Symfony?

2009-03-11 Thread Lawrence Krubner
I would like to have this in my child form class: public function configure() { $this->widgetSchema['teamnumber'] = new sfWidgetFormPropelSelect(array ('model' => 'NewTeam', 'add_empty' => true, 'key_method' => 'getTeamnumber', 'choices' => 'Choose a team')); } I need for this dro

[symfony-users] Re: form_tag_for

2009-03-11 Thread Lawrence Krubner
On Mar 11, 3:41 am, ken wrote: > Im currently creating my own doctrine admin theme and added tabbing > functionality but I just came across a problem and I cant find any > answer in the net. > > How do I pass additional query_string to form_tag_for in _form.php > template? There seems to be no

[symfony-users] Re: form_tag_for

2009-03-11 Thread Ken Marfilla
this is all I can come up, i expanded the method to suit my need isMultipart() and print 'enctype="multipart/form-data"')?]> [?php if(!$form->isNew() and print $form->getWidgetSchema()- >renderTag('input', array('type' => 'hidden', 'name' => 'sf_method', 'value' => 'PUT', 'id' => false)))?]

[symfony-users] Re: Production, Url without index.php don't work

2009-03-11 Thread Gregoire Laporte
Thx it's works now it's about / ++ > Date: Wed, 11 Mar 2009 22:21:25 +1300 > Subject: [symfony-users] Re: Production, Url without index.php don't work > From: sid.bacht...@gmail.com > To: symfony-users@googlegroups.com > > > Hi, > > First make sure your production environment has mod_rewrite

[symfony-users] Re: Production, Url without index.php don't work

2009-03-11 Thread Sid Bachtiar
Hi, First make sure your production environment has mod_rewrite installed and enabled. Second make sure that mod_rewrite is enabled for your website. And third, you may want to try to uncomment/comment the following line from your web/.htaccess: #RewriteBase / Regards, Sid On Wed, Mar 11, 2

[symfony-users] Re: a plugin to generate Google Sitemaps

2009-03-11 Thread Sid Bachtiar
> it generate sitemap with this standard (use by google, yahoo, > microsoft) > http://www.sitemaps.org/ You're right, after reading that, seems like Google sitemap actually is the same as that. > you can also add in the addDefaultUrls method some urls that has a > model but no modul. > see > ht

[symfony-users] Production, Url without index.php don't work

2009-03-11 Thread saturn1...@hotmail.com
Hello everybody. In localhost my website work. But when i deploy it in OVH(share). If i type www.monsite.com/category/2 ---> don't work. but if i type www.monsite.com/index.php/category/2 > work !!! What can i do for the first url work !! Thx everybody !! Have a nice Day !! --~--~

[symfony-users] Re: a plugin to generate Google Sitemaps

2009-03-11 Thread gimler
it generate sitemap with this standard (use by google, yahoo, microsoft) http://www.sitemaps.org/ it is working wih 1.0, 1.1 and 1.2 there exist also a package for each version. the plugin has also no orm depensies. i use it allready in production on my projects. you can also add in the addDef

[symfony-users] sfValidatorPropelUnique fails on updates - 1.2

2009-03-11 Thread Benjamin
The code is below. I have been searching for hours. This is failing on updates, saying that the user name has already been taken. It's being used as a post validator. new sfValidatorPropelUnique( array( 'model' => 'Members', 'column'=> array('user_name'),

[symfony-users] Re: Add values after form submit

2009-03-11 Thread Marijn
I would suggest you override the updateObject method of your form. Proof of concept: public function updateObject () { parent::updateObject(); if ($this->isValid()) { $this->values['my_custom_added_value'] = 'MyCustomAddedValue'; } } What version of symfony are you using? You need to

[symfony-users] Re: a plugin to generate Google Sitemaps

2009-03-11 Thread Sid Bachtiar
Hi, But does it generate Google format sitemap? Also it isn't flagged as for Symfony 1.2. I was looking for something that just work with sfSimpleBlogPlugin and thought few others would be looking for similar plugin that just work with sfSimpleBlogPlugin. I like it though, especially the idea o

[symfony-users] form_tag_for

2009-03-11 Thread ken
Im currently creating my own doctrine admin theme and added tabbing functionality but I just came across a problem and I cant find any answer in the net. How do I pass additional query_string to form_tag_for in _form.php template? There seems to be no way according to the api. --~--~-~--~

[symfony-users] Re: Sending Email from CLI task in Symfony 1.2

2009-03-11 Thread danielwinter
Have another look at the link you posted - you might be missing these lines: $databaseManager = new sfDatabaseManager($configuration); $databaseManager->loadConfiguration(); On Mar 11, 3:40 am, xhe wrote: > Hi All, > > But can you inform me how I can access other propel class? > > I used > > c