public function execute(){
    	parent::execute();
		$request = $this->getContext()->getRequest();
		$this->setAttribute("affiliate", $request->getAttribute("affiliate"));
		$this->setAttribute("affId", $request->getAttribute("affId"));
		$this->setAttribute("members", $request->getAttribute("members"));
	}
Пример #2
0
	public function execute()
    {
    	parent::execute();
		$request = $this->getContext()->getRequest();

		if($request->getAttribute("error")){
			$this->setAttribute("error", 1);
		} else {
			$this->setAttribute("affiliates", $request->getAttribute("data")); // id, name, not_certified
		}
	}