예제 #1
0
 function column($what, $class = 'col-xs-12')
 {
     return HTML::div($what, to_class($class));
 }
예제 #2
0
 function decode_link_to_route($name, $title = null, $parameters = array(), $attributes = array())
 {
     $html = '';
     try {
         $html = HTML::decode(link_to_route($name, $title, $parameters, $attributes));
     } catch (\Exception $e) {
         $html = HTML::decode(HTML::a($title, array_merge(to_class('text-danger'), to_style('cursor: not-allowed'))));
     }
     return $html;
 }