public function onStart() { $user_id = $this->param('id'); $user_id = $user_id == 'default' ? 1 : $user_id; $this['cur_id'] = $user_id; $this['cur_user'] = User::findOrFail($user_id); }
public function onStart() { $user_id = $this->param('id'); $user_id = $user_id == 'default' ? 1 : $user_id; $this['cur_id'] = $user_id; $this['cur_user'] = User::findOrFail($user_id); }