public function html($obj) { $url = CRUDCompiler::compile($this->getLink(), ['this' => $obj]); $html = CRUDCompiler::compile($this->getHtml(), ['this' => $obj]); if (trim($html) == '') { $html = '#EMPTY#'; } return HTML::tag('a', ['href' => $url, 'class' => $this->getClassesStr()], $html); }