Maybe you could typecast/convert the settings of the site to a protected variable $_settings as assoziative array (name=value) afterFind() of SCHSites.
public function getSettingByName($name,$default=false){
return isset($this->_settings[$name]) ? $this->_settings[$name] : $default;
}
Hello, thanks for the reply but my question wasn’t really related to the example. I meant it to illustrate what i was asking… Can Yii offer me a easy way to filter rows that are returned.
In my example i used every time i need a setting i would be doing a query… i didn’t think this was the best idea. I guess Yii doesn’t support this out of the box … thats fine … thanks for your help.