public static function adminPageSubTitle($record = null, $modelClass, $show=false) {

        $modelClass = self::properPlural($modelClass);

        $html = '';
        $html .= '<div class="row">';
        $html .= '<div class="col-md-3"></div>';
        $html .= '<div class="col-md-6">';
        $html .= '<h1>';
        $html .= '<span class="label label-info">';

        // Edit or Create?
        if ($record) {

            $html .= 'Edit the ';
            if ($show) {
                $html .= 'Show the ';
            } else {
                $html .= 'Edit the ';
            }

            $html .= ucwords($modelClass);
            $html .= ': "';
            $html .= $record->title;
            $html .= '"';

        } else {
            $html .= 'Create ';
            $html .= ucwords($modelClass);
        }

        $html .= '</span>';
        $html .= '</h1>';
        $html .= '</div>';
        $html .= '<div class="col-md-3"></div>';
        $html .= '</div>';

        return $html;
    }
public static function adminPageSubTitle($record = null, $modelClass, $show=false) {

        $modelClass = self::properPlural($modelClass);

        $html = '';
        $html .= '<div class="row">';
        $html .= '<div class="col-md-3"></div>';
        $html .= '<div class="col-md-6">';
        $html .= '<h1>';
        $html .= '<span class="label label-info">';

        // Edit or Create?
        if ($record) {

            $html .= 'Edit the ';
            if ($show) {
                $html .= 'Show the ';
            } else {
                $html .= 'Edit the ';
            }

            $html .= ucwords($modelClass);
            $html .= ': "';
            $html .= $record->title;
            $html .= '"';

        } else {
            $html .= 'Create ';
            $html .= ucwords($modelClass);
        }

        $html .= '</span>';
        $html .= '</h1>';
        $html .= '</div>';
        $html .= '<div class="col-md-3"></div>';
        $html .= '</div>';

        return $html;
    }
public static function adminPageSubTitle ( $ record = null , $ modelClass , $ show = false ) { $ modelClass = self :: properPlural ( $ modelClass ) ; $ html = '' ; $ html .= '<div class="row">' ; $ html .= '<div class="col-md-3"></div>' ; $ html .= '<div class="col-md-6">' ; $ html .= '<h1>' ; $ html .= '<span class="label label-info">' ; // Edit or Create? if ( $ record ) { $ html .= 'Edit the ' ; if ( $ show ) { $ html .= 'Show the ' ; } else { $ html .= 'Edit the ' ; } $ html .= ucwords ( $ modelClass ) ; $ html .= ': "' ; $ html .= $ record -> title ; $ html .= '"' ; } else { $ html .= 'Create ' ; $ html .= ucwords ( $ modelClass ) ; } $ html .= '</span>' ; $ html .= '</h1>' ; $ html .= '</div>' ; $ html .= '<div class="col-md-3"></div>' ; $ html .= '</div>' ; return $ html ; }
Display button with a label describing what the form is doing.

@param  object           $record       Optional record from the database
@param  string           $modelClass   The model's classname
@param  bool             $show         True when from controller SHOW
@return string
Display button with a label describing what the form is doing .