public function getLinkToAction($actionName, $params, $pk_link = false)
    {
        $action = isset($params['action']) ? $params['action'] : 'List' . sfInflector::camelize($actionName);

        $url_params = $pk_link ? '?' . $this->getPrimaryKeyUrlParams() : '\'';

        $params['icon'] = (isset($params['icon']) ? $params['icon'] : 'icon-th-list');
        $params['params']['class'] = (isset($params['params']['class']) ? $params['params']['class'] : 'btn');
        $params['only_icon'] = (isset($params['only_icon']) ? $params['only_icon'] : true);
        $params['size'] = $this->defaultSize($params);
        $params['params']['class'] .= ' ' . $params['size'];
        $title = '__(\'' . $params['label'] . '\', array(), \'' . $this->getI18nCatalogue() . '\')';
        $label = (!$params['only_icon'] ? ' \'.' . $title : '\'');

        return '[?php echo link_to(\'<i class="' . $params['icon'] . '"></i>'
        . $label . ', \'' . $this->getModuleName() . '/' . $action
        . $url_params . ', ' . $this->asPhp($params['params']) . ') ?]';
    }