Development

HowtoWriteYamlDynamically (diff)

You must first sign up to be able to contribute.

Changes from Version 1 of HowtoWriteYamlDynamically

Show
Ignore:
Author:
spascoe (IP: 68.254.248.66)
Timestamp:
01/23/06 20:34:38 (12 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowtoWriteYamlDynamically

    v0 v1  
     1= Symfony Howto: Write YAML Dynamiclly = 
     2 
     3== Purpose == 
     4 
     5  Sometimes it is necessary, and useful to update configuration scripts from within  
     6  the Symfony application.  While, it is simple to do, it may not be obvious to  
     7  newcomers. 
     8 
     9== Code == 
     10 
     11  {{{ 
     12#!php 
     13$yaml = sfYaml::dump($your_array); 
     14file_put_contents('path/file.yml', $yaml); 
     15}}} 
     16 
     17== Usage == 
     18 
     19