= sfYamlAdminPlugin = With this plugin you could lets your users to admin the properties of one of your yml config files == How to install == {{{ symfony plugin-install http://plugins.symfony-project.com/sfYamlAdminPlugin }}} === Configure one module to edit one file === Creating the module {{{ symfony init-module MY_APP MY_MODULE }}} In the created action add : {{{ require_once sfConfig::get('sf_plugins_dir').'/sfYamlAdminPlugin/modules/sfYamlAdmin/lib/BasesfYamlAdminActions.class.php'; }}} And the function : {{{ public function getConfigFile(){ return realpath(dirname(__FILE__)).'/../config/sfYamlAdmin.yml'; } }}} This function describe where are the config file to configures the editions After create the sfYamlAdmin.yml in the module's config dir. === Format of the sfYamlAdmin === {{{ sfYamlAdmin: file_1: #Add this block to add one editable YML name: The name of the file #NAME DISPLAYED IN THE FORM if you have 2 or more files file: "%%sf_config_dir%%/app.yml" # %%VAR%% will be replaced by the value returned by sfConfig::get(VAR) editAllFields: false #If you set this var at true all the fields of the file should be in the form fields: unique_name: #The unique Key for the field name: Name in the form # This is the label of the field path: "all/calendrier/debut/an" # Path to the var each level of the array are separated by / type: int # Values int, string, boolean validate: required: msg: Required msg # Validate }}} == TODO == * Validations of the form * Adding field like date, select ...