public function __construct($request, $response) { $this->info = new AdminInfo(); $this->translator = FrontHelper::getTranslation(); View::set_global('translator', $this->translator); parent::__construct($request, $response); }
function saveChatTransaction($id_user) { $this->credit = FrontHelper::getCost('chat'); $this->statement = FrontHelper::getCostDescription('chat'); $this->time = time(); $this->pm = 'minus'; $this->by = $id_user; $this->save(); return true; }