public function __construct() { if (($this->creditType = S('_service_credit_type')) === false) { $this->creditType = M('credit_type')->order('id ASC')->findAll(); S('_service_credit_type', $this->creditType); } }