Index method

@return \Cake\Http\Response|void|null
342374
public function index()
    {
        $query = $this->Dashboards->getUserDashboards($this->Auth->user());
        $entity = $query->first();

        if (null !== $entity) {
            return $this->redirect(['action' => 'view', $entity->get('id')]);
        }
    }
142016
public function index()
    {
        return $this->render('index', [
            'pages' => $this->model->getNavItemPageBlockItems()->select(['nav_item_page_id'])->distinct()->orderBy([])->all(),
        ]);
    }
581119
public function index()
    {
        $menusList = Menu::with(['children'])
            ->where('menu_type', '!=', 0)
            ->where('parent_id', null)
            ->orderBy('position')->get();

        return view('qa::menus.index', compact('menusList'));
    }
1028951
public function index()
    {
        $models = $this->repository->all([], true);
        app('JavaScript')->put('models', $models);

        return view('attributes::admin.index-groups');
    }
1113966
public function index()
    {
        // $options = $this->getParams('offset', 'limit', 'includes', 'order_by');

        $categories = Subbly::api('subbly.category')->all();

        return $this->jsonResponse(array(
            'categories' => $this->presenter->collection($categories),
        ));
        // return $this->jsonCollectionResponse(array(
        //     'categories' => $this->presenter->collection($categories)
        // ));
    }
567473
public function index()
    {
        $query = $this->Pages->find()->contain(['Categories' => ['fields' => ['id', 'title']]]);

        $this->paginate['order'] = ['created' => 'DESC'];

        $pages = $this->paginate($this->Pages->queryFromFilter($query, $this->request->getQueryParams()));

        $this->set(compact('pages'));
    }
1156351
public function index()
    {
        $menus = $this->Filter->filter($this->Menus->find('all'))->hydrate(false);
        $this->set('menus', $menus);
    }
1252951
public function index() {

        /**
         * set lastUpdatedPage
         */
        $query = TableRegistry::get('CmsContent')->find();
        $query->where(['content_type' => 'page']);
        $query->order(['modified' => 'DESC']);
        $this->set('last_page', $query);

        /**
         * set lastUpdatedNews
         */
        $query = TableRegistry::get('CmsContent')->find();
        $query->where(['content_type' => 'news']);
        $query->order(['modified' => 'DESC']);
        $this->set('last_news', $query);

        /**
         * set view
         */
        $this->viewBuilder()->template('dashboard');
    }
176163
public function index()
    {
        // Check the cache for data. Otherwise get from the db.
        $items = Cache::rememberForever($this->modelTableName . ':index', function () {
            return call_user_func([$this->getModelClass(), 'all'])->toArray();
        });

        if (empty($items)) {
            return $this->generateResponse($this->modelTableName, null, Response::HTTP_NO_CONTENT);
        }

        return $this->generateResponse($this->modelTableName, $items);
    }
300576
public function index()
    {
        return view('laramanager::entries.index.index')
            ->with('resource', $this->resource)
            ->with('entries', $this->entriesRepository->getList($this->resource));
    }
1256838
public function index()
    {
        $this->authorize('publicView', Event::class);

        return view('laralum_events::public.index', ['events' => Event::where('public', true)->orderBy('id', 'desc')->get()]);
    }
925318
private function _sortIndex()
    {
        $collection = ResourceTable::collection();
        $sort = $collection->getSort();

        return $sort['index'] ? $sort['index'] : null;
    }
289526
public function index()
    {
        $categories = $this->category->all();

        $categoryStructure = $this->categoryRenderer->render($categories->nest());

        return view('product::admin.categories.index', compact('categories', 'categoryStructure'));
    }
423743
public function index()
    {
        $result = $this->repository->paginated();

        return view('cms::modules.files.index')
            ->with('files', $result)
            ->with('pagination', $result->render());
    }
467877
public function index()
    {
        $themes = Theme::all();
        $activeTheme = Configuration::getConfiguration('active_theme_identifier');

        return view('avored-ecommerce::theme.index')
            ->with('themes', $themes)
            ->with('activeTheme', $activeTheme);
    }
1180799
public function indexAction()
    {
        return $this->forward()
                    ->dispatch(
                        $this->params()
                             ->fromRoute( 'controller', get_called_class() ),
                        array(
                            'action' => 'list',
                            'locale' => (string) $this->locale(),
                        )
                    );
    }
947515
public function index()
    {
        $templates = $this->template->where('active', 1)->where('type', 'default')->get();
        
        $pages = $this->page->get();
        
        return view('chuckcms::backend.templates.index', compact('templates', 'pages'));
    }