Peut être utile. RT @lucaswxp: #CakePHP JSON with your tables http://t.co/GT2FVotI #php #json
October 11, 2012
/http%3A%2F%2Fbakery.cakephp.org%2Fimg%2Fcake-logo.png)
JSON with your tables :: The Bakery: Everything CakePHP
How to use in your model: That's it! Now when you save/retrieve data the magic will happens: This will save the following json data into the "additional_info" column: {"flavor":"strawberries","type":"cake"} And the following: $this->Recipe->findById(1); Will result in: Array ( [Recipe] => Array ( [id] => 1 [additional_info] => Array ( [flavor] => strawberries [type] => cake ) ...
/image%2F0004624%2F201210%2Fob_b01b21efdb72588090d70c1e23a4f101_nicolashachet-logo.png)

