. * * @author niel * @copyright 2016 nZEDb */ use App\Models\Category; /** * Returns the value of the specified Category constant. * * @usage {getcatval category=BOOKS_COMICS} * * @param string $params Name of constant whose value to return. * @return Value of the specified Category constant. */ function smarty_function_getcatval($params) { return Category::getCategoryValue($params['category']); }