[symfony-users] Looking for a simple doctrine nested form example symfony 1.2 branch
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 use $this->embed('books [0]',new bookForm()) b) use any function other than 'bind', which could automatically look for nested forms matching the objects relations Thanks in advance, -pat --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfMemcache & sfAdvMemcache
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 connection settings. We want to use it to cache database calls primarily. Can we do that without the plugin too? > The first part of this article describes the needed changes: > http://dev.esl.eu/blog/2009/06/05/memcached-as-singleton-in-symfony/ > > However, you have to setup a memcached server first (the PECL > extension only provides the client imho). But i donnu how its done, > i'm just using it :D Yes, Ive already built memcached to play with. And we're building production memcached servers so we'll be dealing with a cluster of memcached servers - is that easy to do? -- --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: filter=filter does not work in admin
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 list > action, and add a filter to the url of the second module, however the > filters don't have any effect. > > Here is my code: > > $this->redirect('feed/index?filter=filter&filters[owner_id]=' . $this- > > >getRequestParameter('id')); > > This redirect then goes to /import_dev.php/feed?filter=filter&filters > [owner_id]=2, however filters[owner_id] does not filter the results, > as I can see all Feeds, not only where owner_id=2. > > Is there something I am missing here? > > Thanks --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfMemcache & sfAdvMemcache
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 describes the needed changes: http://dev.esl.eu/blog/2009/06/05/memcached-as-singleton-in-symfony/ However, you have to setup a memcached server first (the PECL extension only provides the client imho). But i donnu how its done, i'm just using it :D Am 27.07.2009 um 23:30 schrieb 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're saying we dont need a plugin anymore? > > > > -- > > > > > --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfMemcache & sfAdvMemcache
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're saying we dont need a plugin anymore? -- --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfMemcache & sfAdvMemcache
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 > 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. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] sfMemcache & sfAdvMemcache
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. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: comparing values between embedded forms
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 compare and validate 'language_id'. > > $lang_forms = new sfForm(); > foreach ($nv_member->getNvMemberLanguages() as $pos=>$lang) { > $lang_form = new NvMemberLanguageForm($lang); > unset($lang_form['member_id']); > $lang_forms->embedForm($pos, $lang_form); > } > $this->embedForm('languages', $lang_forms); You can set the validator in the configure() method of the embedded form. You can use sfValidatorChoice or sfValidatorPropelChoice. -- --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Dynamic edition of a yaml configuration file
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 right - that's what its supposed to do. if the settings never change, then edit the file and set the value. If it changes then use sfConfig::set(). -- --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfLucene update
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 > > 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 said, it's because it has not been rewite for sf 1.2 (this apply > only to "action idexation", isn't it ?) > If I can help you, I will be glad ... > > 2009/7/27 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 lucene:rebuild frontend >>> Processing "MyIndex/en" now... >>> >> LuceneRebuilding index... >>> >>> Fatal error: Call to undefined method sfConfigCache::getinstance() in >>> C:\workspa >>> ces\zend\escotav2\plugins\sfLucenePlugin\lib\indexer\sfLuceneActionIndexerHandler.class.php >>> on line 45 >>> >>> >>> >>> 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-model-system : index models or one model for one index using sub system calls to avoid memory leak and issues with to many open files (doctrine only) The changes are available on the svn : - http://svn.symfony-project.com/plugins/sfLucenePlugin/branches/1.2-Doctrine/ Please feel free to report any bug/issues you may have. The plugin may works fine with symfony 1.1 and doctrine too. -- Thomas Rabaix >>> >>> >>> >> >> >> -- >> Thomas Rabaix >> http://rabaix.net >> >> >> >> > -- Thomas Rabaix http://rabaix.net --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Symfony y Javascript -- Help me!!!
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->form = new DenunciaForm() --- inside this form i have an embedded form $denunciante = new PersonaForm() --- inside this embedded form i have two combo box > $this->widgetSchema['estado_id'] = new sfWidgetFormPropelChoice( > array( > 'model' => 'Estado', > 'add_empty' => false, > 'order_by' => array('Nombre', 'asc'), > 'default'=> $estado_id->getId(), > ), > array( > 'onchange' => 'getMisMunicipios(this.value)', > ) > ); > $this->widgetSchema['municipio_id'] = new sfWidgetFormPropelChoice( > array( > 'model' => 'Municipio', > 'add_empty' => false, > 'order_by'=> array('Nombre', 'asc'), > 'criteria'=> $criteria_mun, > ) > ); Here, everything good, the combos take the 'onchange' function perfectly, (but not the default) here my HTML: Apure Aragua Carabobo Libertador Naguanagua Valencia Now, i test the javascript: > >function getMisMunicipios(id) > { alert(id) } > > ") ?> and this work perfectly, The problem is that i dont understand how to fill the second combo box with new values when i select something different in the 1st one. THANKS --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfLucene update
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 said, it's because it has not been rewite for sf 1.2 (this apply only to "action idexation", isn't it ?) If I can help you, I will be glad ... 2009/7/27 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 lucene:rebuild frontend >> Processing "MyIndex/en" now... >> >> LuceneRebuilding index... >> >> Fatal error: Call to undefined method sfConfigCache::getinstance() in >> C:\workspa >> ces\zend\escotav2\plugins\sfLucenePlugin\lib\indexer\sfLuceneActionIndexerHandler.class.php >> on line 45 >> >> >> >> 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-model-system : index models or one model for one index using >>>sub system calls to avoid memory leak and issues with to many open files >>>(doctrine only) >>> >>> The changes are available on the svn : >>> - >>> http://svn.symfony-project.com/plugins/sfLucenePlugin/branches/1.2-Doctrine/ >>> >>> Please feel free to report any bug/issues you may have. The plugin may >>> works fine with symfony 1.1 and doctrine too. >>> >>> -- >>> Thomas Rabaix >>> >>> >>> >>> >> >> >> > > > -- > Thomas Rabaix > http://rabaix.net > > > > --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfLucene update
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 lucene:rebuild frontend > Processing "MyIndex/en" now... > >> LuceneRebuilding index... > > Fatal error: Call to undefined method sfConfigCache::getinstance() in > C:\workspa > ces\zend\escotav2\plugins\sfLucenePlugin\lib\indexer\sfLuceneActionIndexerHandler.class.php > on line 45 > > > > 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-model-system : index models or one model for one index using >>sub system calls to avoid memory leak and issues with to many open files >>(doctrine only) >> >> The changes are available on the svn : >> - >> http://svn.symfony-project.com/plugins/sfLucenePlugin/branches/1.2-Doctrine/ >> >> Please feel free to report any bug/issues you may have. The plugin may >> works fine with symfony 1.1 and doctrine too. >> >> -- >> Thomas Rabaix >> >> >> >> > > > > -- Thomas Rabaix http://rabaix.net --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: dynamic input fields
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_namesfValidator parent_form..etc and I think, you will need to read all these information and then render them based on the request. On Mon, Jul 27, 2009 at 8:08 AM, mirfan wrote: > > hi, > i am working with a very dynamic form that is i can add and remove > fields from admin side into a form and all the fields are saved in > database table and the form will load all the fields when loaded > the table will be > > id filed_namefield_id default_value > == > how i will manage it in symfony, please help > Regards, > > > --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Error - You must specify a "moduleName"
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 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 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 ... >> 49. $error = 'You must specify a "%s"'; >> 50. $error = sprintf($error, $entry); >> 51. >> 52. throw new sfParseException($error); >> 53. } >> 54. } >> 55. >>* at sfCrudGenerator->generate(array('model_class' => >> 'registrations', 'theme' => 'sfnew', 'css' => 'admin/template.css', >> array(array('name' => 'Enrol Src'), array('name' => 'Agreed'), array >> ('name' => 'GD')), array('title' => 'New Registrations', array('id', >> 'pid', 'states', 'first_name', 'last_name', 'title', 'email', 'phone', >> 'i_agree', 'global_distribution', 'created_at', 'updated_at', >> 'enrolsource'), array('states_id', 'first_name', 'last_name', 'title', >> 'email', 'phone', 'created_at', 'updated_at', '_enrolsource'), >> 'max_per_page' => '20', array(array(), array(array('admin'))), array >> (array(array('admin', array(array(array(array('admin')), '_list' >> => '', array(array('admin')), array(array('admin')) >> in SF_ROOT_DIR\lib\symfony\generator >> \sfGeneratorManager.class.php line 56 ... >> 53. { >> 54. $generator = new $generator_class(); >> 55. $generator->initialize($this); >> 56. $data = $generator->generate($param); >> 57. >> 58. return $data; >> 59. } >>* at sfGeneratorManager->generate('sfPropelAdminGenerator', array >> ('model_class' => 'registrations', 'theme' => 'sfnew', 'css' => 'admin/ >> template.css', array(array('name' => 'Enrol Src'), array('name' => >> 'Agreed'), array('name' => 'GD')), array('title' => 'New >> Registrations', array('id', 'pid', 'states', 'first_name', >> 'last_name', 'title', 'email', 'phone', 'i_agree', >> 'global_distribution', 'created_at', 'updated_at', 'enrolsource'), >> array('states_id', 'first_name', 'last_name', 'title', 'email', >> 'phone', 'created_at', 'updated_at', '_enrolsource'), 'max_per_page' >> => '20', array(array(), array(array('admin'))), array(array(array >> ('admin', array(array(array(array('admin')), '_list' => '', array >> (array('admin')), array(array('admin')) >> in SF_ROOT_DIR\lib\symfony\config >> \sfGeneratorConfigHandler.class.php line 75 ... >> 72. $generatorParam['moduleName'] = $match[1]; >> 73. } >> 74. >> 75. $data = $generatorManager->generate($config >> ['class'], $generatorParam); >> 76. >> 77. // compile data >> 78. $retval = ">* at sfGeneratorConfigHandler->execute(array('D:\websites\aes >> \config/../data/symfony/config/generator.yml', 'D:\websites\aes\apps >> \admin/modules/registrations/config/generator.yml')) >> in SF_ROOT_DIR\lib\symfony\config\sfConfigCache.class.php line >> 103 ... >> 100. if ($handlerToCall) >> 101. { >> 102. // call the handler and retrieve the cache >> data >> 103. $data = $handlerToCall->execute($configs); >> 104. >> 105. $this->writeCacheFile($handler, $cache, >> $data); >> 106. } >>* at sfConfigCache->callHandler('modules/registrations/config/ >> generator.yml', array('D:\websites\aes\config/../data/symfony/config/ >> generator.yml', 'D:\websites\aes\apps\admin/modules/registrations/ >> config/generator.yml'), 'D:\websites\aes\cache\admin\dev\config/ >> modules_registrations_config_generator.yml.php') >> in SF_ROOT_DIR\lib\symfony\config\sfConfigCache.class.php line >> 190 ... >> 187. if (!is_readable($cache) || $mtime > filemtime >> ($cache)) >> 188. { >> 189. // configuration has changed so we need to >> reparse it >> 190. $this->callHandler($configPath, $files, >> $cache); >> 191. >> 192. // clear process cache >> 193. if ('config/config_handlers.yml' != >> $configPath && sfConfig::get('sf_use_process_cache') && ! >> $proces
[symfony-users] Dynamic edition of a yaml configuration file
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 help Cordialy Ahmed . --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfLucene update
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\plugins\sfLucenePlugin\lib\indexer\sfLuceneActionIndexerHandler.class.php on line 45 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-model-system : index models or one model for one index using >sub system calls to avoid memory leak and issues with to many open files >(doctrine only) > > The changes are available on the svn : > - > http://svn.symfony-project.com/plugins/sfLucenePlugin/branches/1.2-Doctrine/ > > Please feel free to report any bug/issues you may have. The plugin may > works fine with symfony 1.1 and doctrine too. > > -- > Thomas Rabaix > > > > > --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Error - You must specify a "moduleName"
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 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 ... > 49. $error = 'You must specify a "%s"'; > 50. $error = sprintf($error, $entry); > 51. > 52. throw new sfParseException($error); > 53. } > 54. } > 55. >* at sfCrudGenerator->generate(array('model_class' => > 'registrations', 'theme' => 'sfnew', 'css' => 'admin/template.css', > array(array('name' => 'Enrol Src'), array('name' => 'Agreed'), array > ('name' => 'GD')), array('title' => 'New Registrations', array('id', > 'pid', 'states', 'first_name', 'last_name', 'title', 'email', 'phone', > 'i_agree', 'global_distribution', 'created_at', 'updated_at', > 'enrolsource'), array('states_id', 'first_name', 'last_name', 'title', > 'email', 'phone', 'created_at', 'updated_at', '_enrolsource'), > 'max_per_page' => '20', array(array(), array(array('admin'))), array > (array(array('admin', array(array(array(array('admin')), '_list' > => '', array(array('admin')), array(array('admin')) > in SF_ROOT_DIR\lib\symfony\generator > \sfGeneratorManager.class.php line 56 ... > 53. { > 54. $generator = new $generator_class(); > 55. $generator->initialize($this); > 56. $data = $generator->generate($param); > 57. > 58. return $data; > 59. } >* at sfGeneratorManager->generate('sfPropelAdminGenerator', array > ('model_class' => 'registrations', 'theme' => 'sfnew', 'css' => 'admin/ > template.css', array(array('name' => 'Enrol Src'), array('name' => > 'Agreed'), array('name' => 'GD')), array('title' => 'New > Registrations', array('id', 'pid', 'states', 'first_name', > 'last_name', 'title', 'email', 'phone', 'i_agree', > 'global_distribution', 'created_at', 'updated_at', 'enrolsource'), > array('states_id', 'first_name', 'last_name', 'title', 'email', > 'phone', 'created_at', 'updated_at', '_enrolsource'), 'max_per_page' > => '20', array(array(), array(array('admin'))), array(array(array > ('admin', array(array(array(array('admin')), '_list' => '', array > (array('admin')), array(array('admin')) > in SF_ROOT_DIR\lib\symfony\config > \sfGeneratorConfigHandler.class.php line 75 ... > 72. $generatorParam['moduleName'] = $match[1]; > 73. } > 74. > 75. $data = $generatorManager->generate($config > ['class'], $generatorParam); > 76. > 77. // compile data > 78. $retval = "* at sfGeneratorConfigHandler->execute(array('D:\websites\aes > \config/../data/symfony/config/generator.yml', 'D:\websites\aes\apps > \admin/modules/registrations/config/generator.yml')) > in SF_ROOT_DIR\lib\symfony\config\sfConfigCache.class.php line > 103 ... > 100. if ($handlerToCall) > 101. { > 102. // call the handler and retrieve the cache > data > 103. $data = $handlerToCall->execute($configs); > 104. > 105. $this->writeCacheFile($handler, $cache, > $data); > 106. } >* at sfConfigCache->callHandler('modules/registrations/config/ > generator.yml', array('D:\websites\aes\config/../data/symfony/config/ > generator.yml', 'D:\websites\aes\apps\admin/modules/registrations/ > config/generator.yml'), 'D:\websites\aes\cache\admin\dev\config/ > modules_registrations_config_generator.yml.php') > in SF_ROOT_DIR\lib\symfony\config\sfConfigCache.class.php line > 190 ... > 187. if (!is_readable($cache) || $mtime > filemtime > ($cache)) > 188. { > 189. // configuration has changed so we need to > reparse it > 190. $this->callHandler($configPath, $files, > $cache); > 191. > 192. // clear process cache > 193. if ('config/config_handlers.yml' != > $configPath && sfConfig::get('sf_use_process_cache') && ! > $process_cache_cleared) >* at sfConfigCache->checkConfig('modules/registrations/config/ > generator.yml', '1') > in SF_ROOT_DIR\lib\symfony\config\sfConfigCache.class.php line > 248 ... > 245.*/ > 246. public function import($config, $once = true, > $optional = false) > 247. { > 248. $cache = $this->checkConfig($config,
[symfony-users] Error - You must specify a "moduleName"
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 ... 49. $error = 'You must specify a "%s"'; 50. $error = sprintf($error, $entry); 51. 52. throw new sfParseException($error); 53. } 54. } 55. * at sfCrudGenerator->generate(array('model_class' => 'registrations', 'theme' => 'sfnew', 'css' => 'admin/template.css', array(array('name' => 'Enrol Src'), array('name' => 'Agreed'), array ('name' => 'GD')), array('title' => 'New Registrations', array('id', 'pid', 'states', 'first_name', 'last_name', 'title', 'email', 'phone', 'i_agree', 'global_distribution', 'created_at', 'updated_at', 'enrolsource'), array('states_id', 'first_name', 'last_name', 'title', 'email', 'phone', 'created_at', 'updated_at', '_enrolsource'), 'max_per_page' => '20', array(array(), array(array('admin'))), array (array(array('admin', array(array(array(array('admin')), '_list' => '', array(array('admin')), array(array('admin')) in SF_ROOT_DIR\lib\symfony\generator \sfGeneratorManager.class.php line 56 ... 53. { 54. $generator = new $generator_class(); 55. $generator->initialize($this); 56. $data = $generator->generate($param); 57. 58. return $data; 59. } * at sfGeneratorManager->generate('sfPropelAdminGenerator', array ('model_class' => 'registrations', 'theme' => 'sfnew', 'css' => 'admin/ template.css', array(array('name' => 'Enrol Src'), array('name' => 'Agreed'), array('name' => 'GD')), array('title' => 'New Registrations', array('id', 'pid', 'states', 'first_name', 'last_name', 'title', 'email', 'phone', 'i_agree', 'global_distribution', 'created_at', 'updated_at', 'enrolsource'), array('states_id', 'first_name', 'last_name', 'title', 'email', 'phone', 'created_at', 'updated_at', '_enrolsource'), 'max_per_page' => '20', array(array(), array(array('admin'))), array(array(array ('admin', array(array(array(array('admin')), '_list' => '', array (array('admin')), array(array('admin')) in SF_ROOT_DIR\lib\symfony\config \sfGeneratorConfigHandler.class.php line 75 ... 72. $generatorParam['moduleName'] = $match[1]; 73. } 74. 75. $data = $generatorManager->generate($config ['class'], $generatorParam); 76. 77. // compile data 78. $retval = "execute(array('D:\websites\aes \config/../data/symfony/config/generator.yml', 'D:\websites\aes\apps \admin/modules/registrations/config/generator.yml')) in SF_ROOT_DIR\lib\symfony\config\sfConfigCache.class.php line 103 ... 100. if ($handlerToCall) 101. { 102. // call the handler and retrieve the cache data 103. $data = $handlerToCall->execute($configs); 104. 105. $this->writeCacheFile($handler, $cache, $data); 106. } * at sfConfigCache->callHandler('modules/registrations/config/ generator.yml', array('D:\websites\aes\config/../data/symfony/config/ generator.yml', 'D:\websites\aes\apps\admin/modules/registrations/ config/generator.yml'), 'D:\websites\aes\cache\admin\dev\config/ modules_registrations_config_generator.yml.php') in SF_ROOT_DIR\lib\symfony\config\sfConfigCache.class.php line 190 ... 187. if (!is_readable($cache) || $mtime > filemtime ($cache)) 188. { 189. // configuration has changed so we need to reparse it 190. $this->callHandler($configPath, $files, $cache); 191. 192. // clear process cache 193. if ('config/config_handlers.yml' != $configPath && sfConfig::get('sf_use_process_cache') && ! $process_cache_cleared) * at sfConfigCache->checkConfig('modules/registrations/config/ generator.yml', '1') in SF_ROOT_DIR\lib\symfony\config\sfConfigCache.class.php line 248 ... 245.*/ 246. public function import($config, $once = true, $optional = false) 247. { 248. $cache = $this->checkConfig($config, $optional); 249. 250. if ($optional && !$cache) 251. { * at sfConfigCache->import('modules/registrations/config/ generator.yml', '1', '1') in SF_ROOT_DIR\lib\symfony\controller\sfController.class.php line 194 ... 191. } 192. 193. // check for a module generator config file 194. sfConfigCache::getInstance()->import (sfConfig::get('sf_app_module_
[symfony-users] Re: sfLucene update
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-model-system : index models or one model for one index using >sub system calls to avoid memory leak and issues with to many open files >(doctrine only) > > The changes are available on the svn : > - > http://svn.symfony-project.com/plugins/sfLucenePlugin/branches/1.2-Doctrine/ > > Please feel free to report any bug/issues you may have. The plugin may > works fine with symfony 1.1 and doctrine too. > > -- > Thomas Rabaix > > > > > --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: String Variable to ClassName
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 unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: More form widgets, ajax live search in input field?
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 > sfWidgetFormPropelJQueryAutocompleter > you can only choose > one choice but with psWidgetFormJQueryTokenAutocompleter in > psToolBoxPLugin you can choose many (like double list just presentation is > different) > perhaps don't you use facebook ;) > > > > > > Tommaso D'Argenio a écrit : > > Thanks but this plugin doesn't seem to do anything different from > sfWidgetFormPropelJQueryAutocompleter, > am I right? > > I already have an ajax autocompleter box created and working, what I want > to do > is to add a JS button near it which will put the searched element inside > the associated > list of my DoubleList select. > > Perhaps the only solution is to tweak > the sfWidgetFormPropelJQueryAutocompleter renderer > and add a link which invokes the same JS function invoked > by sfWidgetFormSelectDoubleList. > > so if my ajax input field is called ConceptSearch and my associated list > is called narrowerList in the renderer I'll put something like: > sprintf(' %s', > 'sfDoubleList.move(\'ConceptSearch\', \'narrowerList\'); return false;', > ' src="'._compute_public_path("/images/icons/001_28.png",'images','png',true).'" > alt="associate" />'). > > and this get indeed created successfully, but the JS function doesn't > work, when I press the button it jumps on top of the page > and does nothing... > > mumble mumble... > > cheers. > > 2009/7/25 melchior > >> >> Perhaps this can help you >> http://www.symfony-project.org/plugins/psToolboxPlugin >> >> >> On 25 juil, 15:53, "Tommaso D'Argenio" wrote: >> > I was able to setup the AutoComplete which returns the value I want but >> > still it is a single input fieldI need the result to go into the >> > DoubleSelect list which I get it to work on his own, now How to combine >> > the two things together? Is there a correct way to do it? Shall I create >> a >> > new JS function which somehow >> > move the searched item inside the associated list? Will it be saved? >> > >> > any insight is appreciated. >> > >> > thanks >> > cheers. >> > >> > 2009/7/25 Tommaso D'Argenio >> > >> > > Hi, >> > > I read already that post, but it does explain how to use the single >> widget >> > > and not >> > > combine them or at least not as I want. >> > >> > > I need to have a many-to-many relationship select list and an >> autocomplete >> > > input field >> > > to make search in this select list. However even using the DoubleList >> > > widget I don't know >> > > how to load the associated array ... It is always empty because I >> can't see >> > > where/how to >> > > associate the widget with my data model and can't find a proper >> > > documentation either .. >> > >> > > Assume my data model is something like this >> > >> > > article: >> > > id: ~ >> > > title: { type: VARCHAR, size: '255', required: >> true } >> > > description:{ type: LONGVARCHAR, required: true } >> > >> > > related: >> > > id: ~ >> > > article_id: { type: INTEGER, size: '11', required: >> > > true, foreignTable: article, foreignReference: id, index: true } >> > > related_id: { type: INTEGER, size: '11', required: true, >> > > foreignTable: article, foreignReference: id, index: true } >> > >> > > so each article can be related to any other one, this is a >> many-to-many >> > > relationship. >> > > Now in my admin section I want to have in the editing form of the >> article a >> > > Double Select list with the related article >> > > taken off the m-2-m relationship, and since the list of article is big >> I >> > > want to also have an autocomplete input field >> > > where I can search on the title and add this to the relation list. >> > >> > > How to do all this? Is that possible nobody has a similar need, as I >> can't >> > > find anything useful on the forums/groups/etc.. :( >> > >> > > cheers. >> > >> > > 2009/7/25 Eno >> > >> > >> On Fri, 24 Jul 2009, Tommaso D'Argenio wrote: >> > >> > >> > yes I was talking about Auto-Complete... I've read the plugin blog >> post >> > >> to >> > >> > use >> > >> > the sfWidgetFormPropelJQueryAutocompleter but I want to integrate >> this >> > >> with >> > >> > the >> > >> > sfWidgetFormSelectDoubleList... or alternatively have this >> auto-complete >> > >> > input >> > >> > box and a simple SelectList which contains all the associated >> values and >> > >> > having >> > >> > something to put the one found in the ajax input box inside the >> list... >> > >> > >> > bit tricky to explain I hope you got it... I simply don't know how >> to >> > >> > implement it ... >> > >> > >> > any idea is appreciated :) >> > >> > >> Did you look at >> > >> > >> >> http://www.sym
[symfony-users] Re: String Variable to ClassName
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)); > > The first argument is a PHP valid callable, the second is an array of > arguments for the called function/method > > PHP > callablehttp://www.php.net/manual/en/language.pseudo-types.php#language.types... > > call_user_func_arrayhttp://www.php.net/manual/en/function.call-user-func-array.php > > Hope it helps :) --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] comparing values between embedded forms
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 = new sfForm(); foreach ($nv_member->getNvMemberLanguages() as $pos=>$lang) { $lang_form = new NvMemberLanguageForm($lang); unset($lang_form['member_id']); $lang_forms->embedForm($pos, $lang_form); } $this->embedForm('languages', $lang_forms); --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: String Variable to ClassName
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/method PHP callable http://www.php.net/manual/en/language.pseudo-types.php#language.types.callback call_user_func_array http://www.php.net/manual/en/function.call-user-func-array.php Hope it helps :) --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Form Validation based on a tainted value?
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 validator. > > [1]http://www.symfony-project.org/forms/1_2/en/B-Validators#chapter_b_su... > > > > On Sun, Jul 26, 2009 at 21:35, johnwards wrote: > > > Hello, > > > I have a form containing dates, I have two fields called: > > > Auction date > > Baseline required by > > > Auction date must be after the baseline date, now I can do this on > > existing objects by using the date validator and the "min" field. > > However, I need the tainted value for edits and new data. The tainted > > values are not avaliable until after bind. > > > Now I could overload the bind method and then call my setup of > > validators after then but this seems wrong, especially since bind uses > > the validators...so I'd have to call them twice?? > > > I'm sure I am missing something here...help. > > > Cheers > > John --~--~-~--~~~---~--~~ 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 symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---