Setting->getcfg(); } function afterFilter(){ //retrieves the site-wide configurations from Configure::read($key) and puts it back into the db if new $this->Setting->writecfg(); } } ?>