addColumn('no', 'no'); $this->addColumn( 'link_advanced', 'fullName', [ 'orderBy' => 'lastName', 'url' => $this->_getViewUrl() . '/%s', 'urlParams' => ['alias'], 'text' => '%s', 'params' => ['fullName'], ] ); $this->addColumn( 'text', 'companyName', [ 'title' => 'Company', 'orderBy' => 'companyName', 'defaultText' => '-', ] ); $this->addColumn('date', 'joinDate', ['title' => 'Joined', 'orderBy' => 'joinDate', 'emptyText' => '-']); return $this; } protected function _getViewUrl() { return Qs_SiteMap::findFirst(null, ['type' => 'User\\MemberDirectory\\'], null, 'url'); } }