Пример #1
0
 /**
  * Get a HTML link to the given category.
  *
  * @param  \Tricks\Category  $category
  * @return string
  */
 protected function getCategoryLink(Category $category)
 {
     return HTML::linkRoute('tricks.browse.category', $category->name, [$category->slug]);
 }
Пример #2
0
 public function linkRoute($name, $title = null, $parameters = array(), $attributes = array())
 {
     $tag = HTML::linkRoute($name, self::REPLACEMENT, $parameters, $attributes);
     return $this->replace($title, $tag);
 }