how Configure::write works in cakePHP