src/View/Helper/HtmlHelper.php
public function status($status = 0, array $url = [], $icon = 'circle')
    {
        $class = (int) $status === 1 ? 'ck-green' : 'ck-red';
        if (count($url) === 0) {
            return $this->icon($icon, ['class' => $class]);
        }

        return $this->link(null, 'javascript:void(0);', [
            'icon'     => $icon,
            'class'    => $class,
            'data-url' => $this->Url->build($url)
        ]);
    }
public function status($status = 0, array $url = [], $icon = 'circle')
    {
        $class = (int) $status === 1 ? 'ck-green' : 'ck-red';
        if (count($url) === 0) {
            return $this->icon($icon, ['class' => $class]);
        }

        return $this->link(null, 'javascript:void(0);', [
            'icon'     => $icon,
            'class'    => $class,
            'data-url' => $this->Url->build($url)
        ]);
    }
public function status ( $ status = 0 , array $ url = [ ] , $ icon = 'circle' ) { $ class = ( int ) $ status === 1 ? 'ck-green' : 'ck-red' ; if ( count ( $ url ) === 0 ) { return $ this -> icon ( $ icon , [ 'class' => $ class ] ) ; } return $ this -> link ( null , 'javascript:void(0);' , [ 'icon' => $ icon , 'class' => $ class , 'data-url' => $ this -> Url -> build ( $ url ) ] ) ; }
Create status icon or link.

@param   int $status
@param   array $url
@param   string $icon
@return  null|string
Create status icon or link .