Components\Posts\Controllers\Backend\PostCategoriesController::index PHP Метод

index() публичный Метод

Display a listing of the posts-categories.
public index ( ) : Response
Результат Response
    public function index()
    {
        $post_cats = Category::type($this->type)->get();
        if ($this->type == 'post') {
            $title = trans('cms.page_categories');
        } else {
            $title = trans('cms.post_categories');
        }
        $this->layout->title = $title;
        $this->layout->content = View::make($this->link_type . '.' . $this->current_theme . '.categories.index')->with('post_cats', $post_cats)->with('type', $this->type);
    }