[symfony-users] Looking for a simple doctrine nested form example symfony 1.2 branch

2009-07-27 Thread pcummins
Can anyone point me to a simple on- to-many Doctrine nested form example? The simplest implementation I've seen that works on 'create' and 'edit' is this one: http://redotheoffice.com/?p=4 and it seems a little dated. I'm suprised to see the need to: a) create a temporary form. couldn't we just

[symfony-users] Re: sfMemcache & sfAdvMemcache

2009-07-27 Thread Eno
On Mon, 27 Jul 2009, Frank Stelzer wrote: > If you want to use memcache as view cache, you can use the > sfMemcacheCache(http://trac.symfony-project.org/browser/branches/1.2/lib/cache/sfMemcacheCache.class.php > > ). Just change the view cache in the factories.yml and define your > memcache

[symfony-users] Re: filter=filter does not work in admin

2009-07-27 Thread yo
Tengo el mismo problema, debe ser un problema de versiones. Me interesaba un link_to a un módulo que me diese sólo los articulos con un autor_id en concreto. A seguir investigando... On 16 jul, 10:56, Ken Golovin wrote: > Hi, > > I am to trying to do a redirect from one module to another's lis

[symfony-users] Re: sfMemcache & sfAdvMemcache

2009-07-27 Thread Frank Stelzer
If you want to use memcache as view cache, you can use the sfMemcacheCache(http://trac.symfony-project.org/browser/branches/1.2/lib/cache/sfMemcacheCache.class.php ). Just change the view cache in the factories.yml and define your memcache connection settings. The first part of this article

[symfony-users] Re: sfMemcache & sfAdvMemcache

2009-07-27 Thread Eno
On Mon, 27 Jul 2009, Frank Stelzer wrote: > Memcached is best installed via PECL, as you already pointed out. > When you use symfony > 1.2 you do not need a plugin for it. > sfMemcacheCache will do the job build in. Ive installed the memcached PECL extension. We're running symfony 1.2.7 - you

[symfony-users] Re: sfMemcache & sfAdvMemcache

2009-07-27 Thread Frank Stelzer
Memcached is best installed via PECL, as you already pointed out. When you use symfony > 1.2 you do not need a plugin for it. sfMemcacheCache will do the job build in. Am 27.07.2009 um 21:56 schrieb Eno: > > > Anyone using these plugins? If so, do you know which PHP extension > they > nee

[symfony-users] sfMemcache & sfAdvMemcache

2009-07-27 Thread Eno
Anyone using these plugins? If so, do you know which PHP extension they need (there appears to be two PECL extensions for memcache) ? -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group.

[symfony-users] Re: comparing values between embedded forms

2009-07-27 Thread Eno
On Mon, 27 Jul 2009, septem wrote: > How can I compare and validate that the user has not chose one > language several times? > Each language is embedded in a languages form, which is embedded in > the main form. > Language has columns 'member_id' (which is unset) and 'language_id'. > I need to c

[symfony-users] Re: Dynamic edition of a yaml configuration file

2009-07-27 Thread Eno
On Mon, 27 Jul 2009, Ahmed wrote: > Hi all, i need to change a config value in the app.yml file > i use this : > sfConfig::set('app_max_news_permited', $request->getParameter('config > [max_news_permited]')) > but it change the value in the runtime configuration not in the file > it self That's

[symfony-users] Re: sfLucene update

2009-07-27 Thread Thomas Rabaix
If you feel confident of doing this you can write a patch, I will included it into the trunk. I havn't look to the code yet, so I have no idea how action are loaded ... On Mon, Jul 27, 2009 at 4:49 PM, Olivier Revollat wrote: > Ok that explain why I have sevral error with this ... > I have replace

[symfony-users] Symfony y Javascript -- Help me!!!

2009-07-27 Thread Germana Oliveira
Hi! I have been reading tha 'ajax integration' chapter from symfony book, but i haven't figured out how to make it work. The thing is: I want that when i select something in a combo box (1st. combo) the options in the 2th. combo change. Until now i have this. First i have de form: $this->for

[symfony-users] Re: sfLucene update

2009-07-27 Thread Olivier Revollat
Ok that explain why I have sevral error with this ... I have replace include(sfConfigCache::getInstance()->checkConfig($config)); With include(sfContext::getInstance()->getConfigCache()->checkConfig($config)); Now this line of code work, but I still have problems loading actions name ... As you

[symfony-users] Re: sfLucene update

2009-07-27 Thread Thomas Rabaix
The action indexation has not been ported to 1.1 and 1.2. I will try to fix that this week shoot me an email if not ;) On Mon, Jul 27, 2009 at 3:54 PM, Olivier Revollat wrote: > When I try to rebuild the index I get this error (see below) . I am using > symfony 1.2.9-DEV .. > $ ./symfony luce

[symfony-users] Re: dynamic input fields

2009-07-27 Thread Mo Mughrabi
It might be a little complicated, first you need to do a regular static form just so you can understand the methods you need to use. As for the table structure you are proposing, it is too simple to be used, you must also have information about field types, sfValidations..etc idfield_names

[symfony-users] Re: Error - You must specify a "moduleName"

2009-07-27 Thread Frank He
the strange thing is even if I delete everthing and do this: 1. symfony init-app backend 2. symfony propel-init-admin backend article Article the exactly same error happened! Perhaps this is because my php? On Mon, Jul 27, 2009 at 9:52 AM, Alexandru-Emil Lupu wrote: > hmmmz... maybe if you wo

[symfony-users] Dynamic edition of a yaml configuration file

2009-07-27 Thread Ahmed
Hi all, i need to change a config value in the app.yml file i use this : sfConfig::set('app_max_news_permited', $request->getParameter('config [max_news_permited]')) but it change the value in the runtime configuration not in the file it self i don't found any solution to do this .. Thanks for any

[symfony-users] Re: sfLucene update

2009-07-27 Thread Olivier Revollat
When I try to rebuild the index I get this error (see below) . I am using symfony 1.2.9-DEV .. $ ./symfony lucene:rebuild frontend Processing "MyIndex/en" now... >> LuceneRebuilding index... Fatal error: Call to undefined method sfConfigCache::getinstance() in C:\workspa ces\zend\escotav2\plug

[symfony-users] Re: Error - You must specify a "moduleName"

2009-07-27 Thread Alexandru-Emil Lupu
hmmmz... maybe if you would CC you cache ... check if you have "registrations" module... i haven't meet this error before ... also, you might wanna check your config/generator.yml file ... there you might find some answers ... Alecs On Mon, Jul 27, 2009 at 4:46 PM, xhe wrote: > > Today I suddenl

[symfony-users] Error - You must specify a "moduleName"

2009-07-27 Thread xhe
Today I suddenly meet an error for my syfmony project, this is symfony 1.0 project, the error message is as follows: *** [sfParseException] You must specify a "moduleName" stack trace * at () in SF_ROOT_DIR\lib\symfony\generator\sfCrudGenerator.class.php line 52 ...

[symfony-users] Re: sfLucene update

2009-07-27 Thread Olivier Revollat
Thanks for your work ... :) Do you know where can I find the last documentation ? 2009/2/9 Thomas Rabaix > Hello, > > I have updated the sfLucene plugin with new tasks : > >- rebuild-index : index only one index >- update-model : index one model for one index (doctrine only) >- update

[symfony-users] Re: String Variable to ClassName

2009-07-27 Thread Bernhard Schussek
No, but contrary to $classname::myFunction() it works :-) Bernhard --~--~-~--~~~---~--~~ 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 unsub

[symfony-users] Re: More form widgets, ajax live search in input field?

2009-07-27 Thread Tommaso D'Argenio
Hi, thanks for the reply. I've reviewed the plugin documentation and I still don't understand how this can solve my problem. If you use this plugin could you give me more insights? thanks T. 2009/7/25 Melchior Anarchion > Hum sorry for late response but with the > sfWidgetFormPropelJQuer

[symfony-users] Re: String Variable to ClassName

2009-07-27 Thread Amo__
Is this faster than $classname::myFunction() ? On Jul 27, 10:01 am, Davide Borsatto wrote: > If I understood the problem... > You just need to use call_user_func/call_user_func_array > > $class = 'ArticlePeer'; > $articles = call_user_func_array(array($class, 'doSelect'), array > ($criteria)); >

[symfony-users] comparing values between embedded forms

2009-07-27 Thread septem
How can I compare and validate that the user has not chose one language several times? Each language is embedded in a languages form, which is embedded in the main form. Language has columns 'member_id' (which is unset) and 'language_id'. I need to compare and validate 'language_id'. $lang_forms

[symfony-users] Re: String Variable to ClassName

2009-07-27 Thread Davide Borsatto
If I understood the problem... You just need to use call_user_func/call_user_func_array $class = 'ArticlePeer'; $articles = call_user_func_array(array($class, 'doSelect'), array ($criteria)); The first argument is a PHP valid callable, the second is an array of arguments for the called function/

[symfony-users] Re: Form Validation based on a tainted value?

2009-07-27 Thread John - White October
That was exactly what I was looking for. Thanks, been staring at it for a while now! On Jul 26, 9:01 pm, Gábor Fási wrote: > I'm not sure I get what you mean. If you want to make sure one date is > later than another one, I suggest you set up an > sfValidatorSchemaCompare [1] instance as a post