1. The service layer data can not be transmitted to the model type, only array arrays, because soap is not acceptable model.
2.new A model word is added if you want to get the data using the Find method.
The new word can't have ID because the new word is the insert operation.
How to use 3.find and FindAll
$resocial = OrderSocialDetailModel::model()->find(‘user_id=:user_id and c_id =:c_id and social_type = 2‘,array(‘:user_id‘=>$data[‘uid‘],":c_id"=>$data[‘c_id‘]));
4. Get statements for the next one months of the current time
$reductiondel_timedate(‘Y-m‘,strtotime(‘+1 month‘));
5. For people to download the name of Excel as if the full English, Chinese language, in the formal environment can not be recognized.
6. Intercept From_unixtime (uac.birthday, '%m-%d ')
7. The number of strings is strlen done
8. Ob_end_clean () can be added before json_encode to clear the cache.
9. Round () rounding
10. View the URL of the button jump call, you can open the source code, and then find the form to see what the event he triggered
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Record some of the issues encountered in development 2015-7-28 (will be updated)