[symfony-users] Re: In-place editor tag woes
Just realised that perhaps this would not work if the element to be edited is itself inside an asynchronously loaded div that is not loaded with the whole page. Could this perhaps be the reason? I am thinking that the in_place_editor_tag javascript is not defined in the page head due it to not being called when the page loads? On Nov 25, 12:08 pm, GarethMc [EMAIL PROTECTED] wrote: No one able to contribute any info? Still experiencing difficulties with this. If any additional info is required please feel free to ask. On Nov 24, 4:34 pm, Gareth McCumskey [EMAIL PROTECTED] wrote: I am attempting to use the in_place_editor_tag with symfony 1.1.4 and for some reason after following the directions in the book for symfony 1.1 the editor just doesn't happen. Even viewing the source with Firebug shows no additional code from this helper being inserted. The div that wraps the text for editing is dynamic as it involves a tree structure that uses ajax to expand and contract the tree but as far as I can figure this should make no difference. The code snippet is as follows: div id=editinplace?php echo $ou-getId() ??php echo $ou-getName() ?/div ?php echo input_in_place_editor_tag('editinplace'.$ou-getId(), 'organisational_units/edit', array( 'cols'= 4, 'rows' = 1, 'submitOnBlur' = 'true', 'okControl' = false, 'cancelControl' = false )) ? The html that is generated for the browser is: div id=editinplace1OUName/div And thats it. No additional html/javascript to handle the in place editing. Clicking on the Text OUName does nothing. I even tried turning 1.0 campatibility on thinking maybe it was some unmentioned/undocuemnted limitation with the 1.1 forms class structure but no change. Any help would be appreciated. Gareth McCumskey --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Doctrine and build-all
Hello! I have a problem with my schema.yml. When i start the command line : symfony doctrine:build-all, I have an error : sqlstate 42000 Syntax error or access violation: 1072 Key column 'envdomaine_id doesn't exist in table. Failing query. My schema.yml : Envdomaine: tableName:envdomaine columns: id: type: integer(8) notnull: true autoincrement:true primary: true DesignationDomaine: type: string(40) Remarque: type: string(2147483647) created_at: type: timestamp updated_at: type: timestamp EnrARCHIVE: type: boolean notnull: true relations: Envpersonnel: local:id foreign: Domaine_id Envservice: local:id foreign: Domaine_id Envsite: local:id foreign: Domaine_id options: type: INNODB Envpersonnel: tableName:envpersonnel columns: id: type: integer(8) notnull: true autoincrement:true primary: true NumeroPersonnel: type: string(25) InitialesPersonnel: type: string(6) NomPersonnel: type: string(40) PrenomPersonnel: type: string(30) Domaine_id: type: integer(8) Service_id: type: integer(8) Site_id: type: integer(8) relations: Envdomaine: Envservice: Envsite: options: type: INNODB Envservice: tableName:envservice columns: id: type: integer(8) notnull: true autoincrement:true primary: true CodeService: type: string(40) DesignationService: type: string(80) Domaine_id: type: integer(8) relations: Envdomaine: Envpersonnel: local:id foreign: Service_id options: type: INNODB Envsite: tableName:envsite columns: id: type: integer(8) notnull: true autoincrement:true primary: true DesignationSite: type: string(80) Domaine_id: type: integer(8) relations: Envdomaine: Envpersonnel: local:id foreign: Site_id options: type: INNODB Help me please ! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sf1.1 and doctrine - trouble with generated sql
Hello! I have the same problem! When i start the command line : symfony doctrine:build-all, I have an error : sqlstate 42000 Syntax error or access violation: 1072 Key column 'envdomaine_id doesn't exist in table. Failing query. My schema.yml : Envdomaine: tableName:envdomaine columns: id: type: integer(8) notnull: true autoincrement:true primary: true DesignationDomaine: type: string(40) Remarque: type: string(2147483647) created_at: type: timestamp updated_at: type: timestamp EnrARCHIVE: type: boolean notnull: true relations: Envpersonnel: local:id foreign: Domaine_id Envservice: local:id foreign: Domaine_id Envsite: local:id foreign: Domaine_id options: type: INNODB Envpersonnel: tableName:envpersonnel columns: id: type: integer(8) notnull: true autoincrement:true primary: true NumeroPersonnel: type: string(25) InitialesPersonnel: type: string(6) NomPersonnel: type: string(40) PrenomPersonnel: type: string(30) Domaine_id: type: integer(8) Service_id: type: integer(8) Site_id: type: integer(8) relations: Envdomaine: Envservice: Envsite: options: type: INNODB Envservice: tableName:envservice columns: id: type: integer(8) notnull: true autoincrement:true primary: true CodeService: type: string(40) DesignationService: type: string(80) Domaine_id: type: integer(8) relations: Envdomaine: Envpersonnel: local:id foreign: Service_id options: type: INNODB Envsite: tableName:envsite columns: id: type: integer(8) notnull: true autoincrement:true primary: true DesignationSite: type: string(80) Domaine_id: type: integer(8) relations: Envdomaine: Envpersonnel: local:id foreign: Site_id options: type: INNODB Help me please ! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] enable a module in config.php for a specific application
I wrote a plugin how is specific to my application (a backend module) so to not interact with the original backend/config/settings.yml I enabled my module with : sfConfig::set('sf_enabled_modules', array_merge(sfConfig::get('sf_enabled_modules'), array('jouegagne')));(in plugin/myplugin/config/config.php) But the module is also enable in frontend !!! how can I enable my module ONLY in backend ? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] define constants in plugins
I defined a constant (the absolute path of my plugin root) like that in the config.php of my plugin like that : DEFINE('PATH_TO_AMA_PLUGIN' ,realpath(dirname(__FILE__).DIRECTORY_SEPARATOR.'..').DIRECTORY_SEPARATOR); it's works, I mean I can acces the constant in my module action for example but when I do a 'clear cache' I got wome notices : Notice: Constant PATH_TO_AMA_PLUGIN already defined in C:\...\plugins\ama\config\config.php on line 4 I think their is a better way to define the plugin root ... 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: enable a module in config.php for a specific application
move that line into apps/app/config/appConfiguration.php On 26 Nov 2008, at 10:48, Olivier Revollat wrote: I wrote a plugin how is specific to my application (a backend module) so to not interact with the original backend/config/settings.yml I enabled my module with : sfConfig::set('sf_enabled_modules', array_merge(sfConfig::get('sf_enabled_modules'), array('jouegagne'))); (in plugin/myplugin/config/config.php) But the module is also enable in frontend !!! how can I enable my module ONLY in backend ? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: [SF1.2] Admin generator
On Mon, Nov 24, 2008 at 4:55 PM, Flashball [EMAIL PROTECTED] wrote: Question: what's the problem with the forms in the new admin- generator? Have I to create all the forms manually, or have I missed something? You have to run propel:build-model, propel:build-forms and propel:build-filters (and don't forget symfony cc) prior to launch the generate-admin task ++ -- Nicolas Perriault http://prendreuncafe.com - http://symfonians.net - http://sensiolabs.com Phone: +33 660 92 08 67 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: define constants in plugins
sfConfig::get('sf_plugins_dir').'/YourPluginName' ... On Wed, Nov 26, 2008 at 12:10 PM, Olivier Revollat [EMAIL PROTECTED]wrote: I defined a constant (the absolute path of my plugin root) like that in the config.php of my plugin like that : DEFINE('PATH_TO_AMA_PLUGIN' ,realpath(dirname(__FILE__).DIRECTORY_SEPARATOR.'..').DIRECTORY_SEPARATOR); it's works, I mean I can acces the constant in my module action for example but when I do a 'clear cache' I got wome notices : Notice: Constant PATH_TO_AMA_PLUGIN already defined in C:\...\plugins\ama\config\config.php on line 4 I think their is a better way to define the plugin root ... Thanks ;) -- Thomas Rabaix Internet Consultant --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Registering config handlers
Hi all, Is it possible for a plugin to register its own config handler rather than having to manually add it to config_handlers.yml? cheers dan -- Dan Leech Dynamic Web Sites www.dantleech.com Bath Gigs www.bathgigs.co.uk --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] programmatically add a filter
Hey I wondering if it's possible to programmatically add a filter, in a plugin config.php file or in an projetConfiguration class instead of using filter.yml Thanks Olivier -- Olivier Mansour [EMAIL PROTECTED] http://www.glagla.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: programmatically add a filter
2008/11/26 Lee Bolding [EMAIL PROTECTED] Yup, have a look in the config.php for sfErrorHandlerPlugin ;) ;-) actually sfErrorHandlerPlugin overide the rendering filter.It doesnt add one ... yes ? On 26 Nov 2008, at 11:37, Olivier Mansour wrote: Hey I wondering if it's possible to programmatically add a filter, in a plugin config.php file or in an projetConfiguration class instead of using filter.yml Thanks Olivier -- Olivier Mansour [EMAIL PROTECTED] http://www.glagla.org -- Olivier Mansour [EMAIL PROTECTED] http://www.glagla.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: programmatically add a filter
Yup, have a look in the config.php for sfErrorHandlerPlugin ;) On 26 Nov 2008, at 11:37, Olivier Mansour wrote: Hey I wondering if it's possible to programmatically add a filter, in a plugin config.php file or in an projetConfiguration class instead of using filter.yml Thanks Olivier -- Olivier Mansour [EMAIL PROTECTED] http://www.glagla.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Autocompletion issue
Hi guys, I want to make one of my inputs autocompleted. I use symfony 1.1 with form model that differs a lot from symfony's 1.0 one. So I don't want to use input_auto_complete_tag. Are there any ways that I can make an autocompletion in a way compatible with symfony 1.1 form model? If I can - would you give an example please? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] ...howto establish a good testing culture?
Hi folks. This is kind of off topic, but I think it's the right list for this: My question is: == How do you get your team mates to write tests? We currently have about 300 functional and unit tests, written in lime for our symfony 1.1 project, but we're constantly integrating new features and usually 'not all of them' are developed test-driven - you know what I mean. So how do you manage to get a high test-coverage, without having to poke every team mate to make him write tests? Do you think it's good to organize a coding marathon for that? Like +25% code coverage in one weekend? I'm looking forward to your ideas and best practices. Let me know. ;) Regards, Bascht --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: enable a module in config.php for a specific application
Something like this if (sfConfig::get('sf_app') == 'frontend') { sfConfig::set('sf_enabled_modules', array_merge(sfConfig::get('sf_enabled_modules'), array('jouegagne'))); } I think it is will help you 2008/11/26 Lee Bolding [EMAIL PROTECTED] move that line into apps/app/config/appConfiguration.php On 26 Nov 2008, at 10:48, Olivier Revollat wrote: I wrote a plugin how is specific to my application (a backend module) so to not interact with the original backend/config/settings.yml I enabled my module with : sfConfig::set('sf_enabled_modules', array_merge(sfConfig::get('sf_enabled_modules'), array('jouegagne'))); (in plugin/myplugin/config/config.php) But the module is also enable in frontend !!! how can I enable my module ONLY in backend ? 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: programmatically add a filter
True, but the filter chain is just an array of filters You can use sfFilterChain::register($filter) On 26 Nov 2008, at 15:00, Olivier Mansour wrote: 2008/11/26 Lee Bolding [EMAIL PROTECTED] Yup, have a look in the config.php for sfErrorHandlerPlugin ;) ;-) actually sfErrorHandlerPlugin overide the rendering filter.It doesnt add one ... yes ? On 26 Nov 2008, at 11:37, Olivier Mansour wrote: Hey I wondering if it's possible to programmatically add a filter, in a plugin config.php file or in an projetConfiguration class instead of using filter.yml Thanks Olivier -- Olivier Mansour [EMAIL PROTECTED] http://www.glagla.org -- Olivier Mansour [EMAIL PROTECTED] http://www.glagla.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: programmatically add a filter
2008/11/26 Lee Bolding [EMAIL PROTECTED] True, but the filter chain is just an array of filters You can use sfFilterChain::register($filter) I am trying that thanks On 26 Nov 2008, at 15:00, Olivier Mansour wrote: 2008/11/26 Lee Bolding [EMAIL PROTECTED] Yup, have a look in the config.php for sfErrorHandlerPlugin ;) ;-) actually sfErrorHandlerPlugin overide the rendering filter.It doesnt add one ... yes ? On 26 Nov 2008, at 11:37, Olivier Mansour wrote: Hey I wondering if it's possible to programmatically add a filter, in a plugin config.php file or in an projetConfiguration class instead of using filter.yml Thanks Olivier -- Olivier Mansour [EMAIL PROTECTED] http://www.glagla.org -- Olivier Mansour [EMAIL PROTECTED] http://www.glagla.org -- Olivier Mansour [EMAIL PROTECTED] http://www.glagla.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Autocompletion issue
Hi. Look at http://www.symfony-project.org/plugins/sfFormExtraPlugin On 26 нояб, 12:38, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi guys, I want to make one of my inputs autocompleted. I use symfony 1.1 with form model that differs a lot from symfony's 1.0 one. So I don't want to use input_auto_complete_tag. Are there any ways that I can make an autocompletion in a way compatible with symfony 1.1 form model? If I can - would you give an example please? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: define constants in plugins
why not store it in the config either by yml setting or programatically with sfConfig::set(); Also unless you plan on abandoning the traditional symfony structure theres no need for the real path call... you can just use sfConfig::get('sf_plugins_dir')... unless there is something im missing. Olivier Revollat wrote: I defined a constant (the absolute path of my plugin root) like that in the config.php of my plugin like that : DEFINE('PATH_TO_AMA_PLUGIN' ,realpath(dirname(__FILE__).DIRECTORY_SEPARATOR.'..').DIRECTORY_SEPARATOR); it's works, I mean I can acces the constant in my module action for example but when I do a 'clear cache' I got wome notices : Notice: Constant PATH_TO_AMA_PLUGIN already defined in C:\...\plugins\ama\config\config.php on line 4 I think their is a better way to define the plugin root ... Thanks ;) -- Ant Cunningham Graphic Designer | Web Developer Vector Based Design [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Help Netbeans developers write symfony support !
Hello, There's gonna be symfony support in Netbeans 7.0. Now netbeans developers are gathering requirements and usecases from symfony developers. More details here: http://blogs.sun.com/netbeansphp/entry/evaluating_of_symfony _support --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Help Netbeans developers write symfony support !
Sorry, link is broken, here's a proper one: http://blogs.sun.com/netbeansphp/entry/evaluating_of_symfony_support --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Functional test - test upload a form
Hello, Does anyone know if I can make a functional test for an action where there's a form which receives a file uploaded by the user??? Thanks in advance, -- Cinxgler Mariaca Minda --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: symfony 1.1 - creating form classes
Hey, This issue of form classes not building okey is stopping me from continuing in my learning of the framework and following the rest of the documentation. Could someone please further advise? Thanks, On Nov 26, 12:20 am, lir [EMAIL PROTECTED] wrote: An update... I can definitely confirm this issue as I have just added to lib/form/base/BaseCompanyForm.class.php the following in the setWidgets(array): 'company_name' = new sfWidgetFormInput(), 'company_background' = new sfWidgetFormInput(), and after adding it and refreshing the page:http://localhost/myproject/sf_sandbox/web/backend_dev.php/company/edi... I can now see the 2 input boxes. So the question is: 1. Why weren't the entire schema fields used for the form fields in lib/form/base? 2. I have generated the company module myself (maybe that was the problem with the forms to begin with?) using the command 'php symfony generate:module backend company' and I'm reading that the Forms Book (chapter 4) guides to use the command 'php symfony propel:generate-crud frontend author Author' so is that possibly a preferred method? Regards, Lir. On Nov 25, 11:56 pm, lir [EMAIL PROTECTED] wrote: Hey guys, I'm taking up the new forms system and learning it... I created my config/schema.yml and issued a 'php symfony propel:build-all' which built the forms for only one of my tables defined in the schema, and only after I issued the 'php symfony propel:build-forms' it created the second table. That's not the odd thing though, what seems to be wrong is the BaseCompanyForm.class.php in lib/form/base which is supposed to be populated (the widgets I mean) with all the table's fields but it's not. Following is my schema.yml and the mentioned file lib/form/base/ BaseCompanyForm.class.php schema.yml: // config/schema.yml propel: company: id: ~ company_name: varchar(250) company_backgorund: varchar(250) company_address: varchar(250) company_website: varchar(250) created_at: ~ updated_at: ~ comment: id: ~ company_id: ~ author: varchar(250) body: longvarchar created_at: ~ BaseCompanyForm.class.php: ?php /** * Company form base class. * * @package form * @subpackage company * @version SVN: $Id: sfPropelFormGeneratedTemplate.php 8807 2008-05-06 14:12:28Z fabien $ */ class BaseCompanyForm extends BaseFormPropel { public function setup() { $this-setWidgets(array( 'id' = new sfWidgetFormInputHidden(), )); $this-setValidators(array( 'id' = new sfValidatorPropelChoice(array ('model' = 'Company', 'column' = 'id', 'required' = false)), )); $this-widgetSchema-setNameFormat('company[%s]'); $this-errorSchema = new sfValidatorErrorSchema($this- validatorSchema); parent::setup(); } public function getModelName() { return 'Company'; } } Thanks. Regards, Lir.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: symfony 1.1 - creating form classes
I suggest that you convert your schema using this http://www.symfony-project.org/cookbook/1_1/en/alternative_schema I dont know if the form generator is basing on the schema or the model but I strongly suggest that you make your schema definition more explicit and also use this combination instead when rebuilding everything symfony propel:build-model symfony propel:build-forms symfony propel:build-filters On Nov 27, 5:43 am, lir [EMAIL PROTECTED] wrote: Hey, This issue of form classes not building okey is stopping me from continuing in my learning of the framework and following the rest of the documentation. Could someone please further advise? Thanks, On Nov 26, 12:20 am, lir [EMAIL PROTECTED] wrote: An update... I can definitely confirm this issue as I have just added to lib/form/base/BaseCompanyForm.class.php the following in the setWidgets(array): 'company_name' = new sfWidgetFormInput(), 'company_background' = new sfWidgetFormInput(), and after adding it and refreshing the page:http://localhost/myproject/sf_sandbox/web/backend_dev.php/company/edi... I can now see the 2 input boxes. So the question is: 1. Why weren't the entire schema fields used for the form fields in lib/form/base? 2. I have generated the company module myself (maybe that was the problem with the forms to begin with?) using the command 'php symfony generate:module backend company' and I'm reading that the Forms Book (chapter 4) guides to use the command 'php symfony propel:generate-crud frontend author Author' so is that possibly a preferred method? Regards, Lir. On Nov 25, 11:56 pm, lir [EMAIL PROTECTED] wrote: Hey guys, I'm taking up the new forms system and learning it... I created my config/schema.yml and issued a 'php symfony propel:build-all' which built the forms for only one of my tables defined in the schema, and only after I issued the 'php symfony propel:build-forms' it created the second table. That's not the odd thing though, what seems to be wrong is the BaseCompanyForm.class.php in lib/form/base which is supposed to be populated (the widgets I mean) with all the table's fields but it's not. Following is my schema.yml and the mentioned file lib/form/base/ BaseCompanyForm.class.php schema.yml: // config/schema.yml propel: company: id: ~ company_name: varchar(250) company_backgorund: varchar(250) company_address: varchar(250) company_website: varchar(250) created_at: ~ updated_at: ~ comment: id: ~ company_id: ~ author: varchar(250) body: longvarchar created_at: ~ BaseCompanyForm.class.php: ?php /** * Company form base class. * * @package form * @subpackage company * @version SVN: $Id: sfPropelFormGeneratedTemplate.php 8807 2008-05-06 14:12:28Z fabien $ */ class BaseCompanyForm extends BaseFormPropel { public function setup() { $this-setWidgets(array( 'id' = new sfWidgetFormInputHidden(), )); $this-setValidators(array( 'id' = new sfValidatorPropelChoice(array ('model' = 'Company', 'column' = 'id', 'required' = false)), )); $this-widgetSchema-setNameFormat('company[%s]'); $this-errorSchema = new sfValidatorErrorSchema($this- validatorSchema); parent::setup(); } public function getModelName() { return 'Company'; } } Thanks. Regards, Lir.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] 1 to n relationship
Dears, I have a patient tabel and I want to add wifes for this patient I have 1 to n rel between the patient and wife tables but I cann't bring the patient id when I add the wife -- Mohammed Owis Web Developer --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: symfony 1.1 - creating form classes
On Nov 27, 2:02 am, ken [EMAIL PROTECTED] wrote: I suggest that you convert your schema using thishttp://www.symfony-project.org/cookbook/1_1/en/alternative_schema I don't think the verbosity of the schema is the issue here... at least, I think that mine is pretty verbose. With that said, I have added the _attributes for phpName directive for both tables. That doesn't make a change. I dont know if the form generator is basing on the schema or the model but I strongly suggest that you make your schema definition more explicit and also use this combination instead when rebuilding everything symfony propel:build-model symfony propel:build-forms symfony propel:build-filters the build-filters command gives me a task not defined error. I ususally just issue a 'symfony propel:build-all' Further help is most appreciated, Thanks. On Nov 27, 5:43 am, lir [EMAIL PROTECTED] wrote: Hey, This issue of form classes not building okey is stopping me from continuing in my learning of the framework and following the rest of the documentation. Could someone please further advise? Thanks, On Nov 26, 12:20 am, lir [EMAIL PROTECTED] wrote: An update... I can definitely confirm this issue as I have just added to lib/form/base/BaseCompanyForm.class.php the following in the setWidgets(array): 'company_name' = new sfWidgetFormInput(), 'company_background' = new sfWidgetFormInput(), and after adding it and refreshing the page:http://localhost/myproject/sf_sandbox/web/backend_dev.php/company/edi... I can now see the 2 input boxes. So the question is: 1. Why weren't the entire schema fields used for the form fields in lib/form/base? 2. I have generated the company module myself (maybe that was the problem with the forms to begin with?) using the command 'php symfony generate:module backend company' and I'm reading that the Forms Book (chapter 4) guides to use the command 'php symfony propel:generate-crud frontend author Author' so is that possibly a preferred method? Regards, Lir. On Nov 25, 11:56 pm, lir [EMAIL PROTECTED] wrote: Hey guys, I'm taking up the new forms system and learning it... I created my config/schema.yml and issued a 'php symfony propel:build-all' which built the forms for only one of my tables defined in the schema, and only after I issued the 'php symfony propel:build-forms' it created the second table. That's not the odd thing though, what seems to be wrong is the BaseCompanyForm.class.php in lib/form/base which is supposed to be populated (the widgets I mean) with all the table's fields but it's not. Following is my schema.yml and the mentioned file lib/form/base/ BaseCompanyForm.class.php schema.yml: // config/schema.yml propel: company: id: ~ company_name: varchar(250) company_backgorund: varchar(250) company_address: varchar(250) company_website: varchar(250) created_at: ~ updated_at: ~ comment: id: ~ company_id: ~ author: varchar(250) body: longvarchar created_at: ~ BaseCompanyForm.class.php: ?php /** * Company form base class. * * @package form * @subpackage company * @version SVN: $Id: sfPropelFormGeneratedTemplate.php 8807 2008-05-06 14:12:28Z fabien $ */ class BaseCompanyForm extends BaseFormPropel { public function setup() { $this-setWidgets(array( 'id' = new sfWidgetFormInputHidden(), )); $this-setValidators(array( 'id' = new sfValidatorPropelChoice(array ('model' = 'Company', 'column' = 'id', 'required' = false)), )); $this-widgetSchema-setNameFormat('company[%s]'); $this-errorSchema = new sfValidatorErrorSchema($this- validatorSchema); parent::setup(); } public function getModelName() { return 'Company'; } } Thanks. Regards, Lir.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Doctrine and build-all
In order for your relationships to autocomplete, you must follow naming patterns. So if you have a class named User and Contact and Contact has a user_id, it can auto complete the relationship definition. Another example would be User.user_profile_id = UserProfile.id - Jon On Wed, Nov 26, 2008 at 3:09 AM, Necho [EMAIL PROTECTED] wrote: Hello! I have a problem with my schema.yml. When i start the command line : symfony doctrine:build-all, I have an error : sqlstate 42000 Syntax error or access violation: 1072 Key column 'envdomaine_id doesn't exist in table. Failing query. My schema.yml : Envdomaine: tableName:envdomaine columns: id: type: integer(8) notnull: true autoincrement:true primary: true DesignationDomaine: type: string(40) Remarque: type: string(2147483647) created_at: type: timestamp updated_at: type: timestamp EnrARCHIVE: type: boolean notnull: true relations: Envpersonnel: local:id foreign: Domaine_id Envservice: local:id foreign: Domaine_id Envsite: local:id foreign: Domaine_id options: type: INNODB Envpersonnel: tableName:envpersonnel columns: id: type: integer(8) notnull: true autoincrement:true primary: true NumeroPersonnel: type: string(25) InitialesPersonnel: type: string(6) NomPersonnel: type: string(40) PrenomPersonnel: type: string(30) Domaine_id: type: integer(8) Service_id: type: integer(8) Site_id: type: integer(8) relations: Envdomaine: Envservice: Envsite: options: type: INNODB Envservice: tableName:envservice columns: id: type: integer(8) notnull: true autoincrement:true primary: true CodeService: type: string(40) DesignationService: type: string(80) Domaine_id: type: integer(8) relations: Envdomaine: Envpersonnel: local:id foreign: Service_id options: type: INNODB Envsite: tableName:envsite columns: id: type: integer(8) notnull: true autoincrement:true primary: true DesignationSite: type: string(80) Domaine_id: type: integer(8) relations: Envdomaine: Envpersonnel: local:id foreign: Site_id options: type: INNODB Help me please ! -- Jonathan H. Wage Open Source Software Developer Evangelist http://www.jwage.com http://www.doctrine-project.org http://www.symfony-project.org --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---