05.02
php
saved
Lion30
Note
Insert into your appModel if you have a field like lang_code in several DB tables and you would like to add automagically a wanted condition to all your queries on the tables that have this field
Insert into your appModel if you have a field like lang_code in several DB tables and you would like to add automagically a wanted condition to all your queries on the tables that have this field
- function beforeFind($queryData){
- $queryData['conditions'][] = $this->alias.".lang_code = '".SL."'";
- }else{
- $queryData['conditions'] = $cond;
- }
- }else{
- $queryData['conditions'] = $this->alias.".lang_code = '".SL."'";
- }
- }
- return $queryData;
- }
Parsed in 0.048 seconds, using GeSHi 1.0.7.14