Index

@return Response
16763
public function indexAction()
    {
        $redirects = $this->get('opifer.redirect.redirect_manager')->getRepository()->findAll();

        return $this->render($this->container->getParameter('opifer_redirect.redirect_index_view'), [
            'redirects' => $redirects
        ]);
    }
578521
public function actionIndex()
    {
        $request = \Yii::$app->request;
        if ($request->getIsOptions()) {
            return $this->ResponseOptions($this->verbs()['index']);
        }
        $searchModel = new AuthItemSearch(['type' => $this->type]);
        $dataProvider = $searchModel->search(Yii::$app->request->getQueryParams());
        return $dataProvider;
    }
137539
public function index(Request $request)
	{
		$request = $this->getRequest();

		return $this->response()
			->collection($this->getModel()->search($request->input('q', ''))->limit(100)->get())
			->view($this->getView('index'), [
				'entities' => $this->getModel()->getRepository()->all()->get()
			]);
	}
505410
public function actionIndex()
    {
        return $this->render('index', [
            'members' => User::find()->orderBy(['id' => SORT_DESC])->limit(10)->all(),
            'posts' => Post::find()->orderBy(['id' => SORT_DESC])->limit(10)->all()
        ]);
    }
116065
public function indexAction()
    {
        $searchService = $this->get( "ezpublish.api.repository" )->getSearchService();
        $query         = $this->getQuery();
        $query->limit  = 0;
        $resultCount   = $searchService->findLocations( $query )->totalCount;

        // Dom Doc
        $sitemap               = new DOMDocument( "1.0", "UTF-8" );
        $sitemap->formatOutput = true;

        // create an index if we are greater than th PACKET_MAX
        if ( $resultCount > static::PACKET_MAX )
        {
            $root = $sitemap->createElement( "sitemapindex" );
            $root->setAttribute( "xmlns", "http://www.sitemaps.org/schemas/sitemap/0.9" );
            $sitemap->appendChild( $root );

            $this->fillSitemapIndex( $sitemap, $resultCount, $root );

            return new Response( $sitemap->saveXML(), 200, [ "Content-type" => "text/xml" ] );
        }

        // if we are less or equal than the PACKET_SIZE, redo the search with no limit and list directly the urlmap
        $query->limit = $resultCount;
        $results      = $searchService->findLocations( $query );
        $root         = $sitemap->createElement( "urlset" );
        $root->setAttribute( "xmlns", "http://www.sitemaps.org/schemas/sitemap/0.9" );
        $this->fillSitemap( $sitemap, $root, $results );
        $sitemap->appendChild( $root );

        $response = new Response( $sitemap->saveXML(), 200, [ "Content-type" => "text/xml" ] );
        $response->setSharedMaxAge( 24 * 3600 );

        return $response;
    }
789280
public function index() {
        $this->set('data', $this->paginate($this->CmsContent));
        $this->set('_serialize', ['data']);


        $query = $this->CmsContent->find('all', [
            'conditions' => ['content_type' => 'news'],
            'limit' => 3,
            'contain' => ['CmsTermRelation']
        ]);
        pr($query->toArray());
        exit;
    }
1358227
public function index()
    {
        $this->authorize('readList', Block::class);
        $input   = $this->validator->validate('list');
        $params  = $this->processor->process($input)->getProcessedFields();
        $results = $this->repository->getBlocks(
            $params['filter'],
            $params['orderBy'],
            $params['page'],
            $params['perPage']
        );
        return $this->respondWithSuccess($results, new BlockTransformer);
    }
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')]);
        }
    }
345973
public function index()
    {
        save_resource_url();

        $items = Page::with('parent')->get();

        return $this->view('titan::pages.index')->with('items', $items);
    }
1006145
public function index()
    {
        return Admin::content(function (Content $content) {
            $content->header('Exception');
            $content->description('Exception list..');

            $content->body($this->grid());
        });
    }
1045559
public function index()
    {
        $query = $this->Posts->find()->contain([
            'Categories' => ['fields' => ['id', 'title']],
            'Tags' => function (Query $q) {
                return $q->order(['tag' => 'ASC']);
            },
            'Users' => ['fields' => ['id', 'first_name', 'last_name']],
        ]);

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

        $posts = $this->paginate($this->Posts->queryFromFilter($query, $this->request->getQueryParams()));

        $this->set(compact('posts'));
    }
1103239
public function index()
    {
        $this->user->pushCriteria(new UserOrderCriteria());
        $users = $this->user->all();

        return view('user::backend.users.index', compact('users', 'currentUser'));
    }
840075
public function indexAction()
	{
		foreach( app( 'config' )->get( 'shop.page.account-index' ) as $name )
		{
			$params['aiheader'][$name] = Shop::get( $name )->getHeader();
			$params['aibody'][$name] = Shop::get( $name )->getBody();
		}

		return Response::view('shop::account.index', $params);
	}
758450
public function indexAction()
    {
        $response = $this->getResponse();

        $params = $this->params()->fromRoute();
        if ($params['path'] === '') {
            $response->setStatusCode(404);
            return $response;
        }

        $info = pathinfo($params['path']);

        if ($info['dirname'] === '.') {
            $info['dirname'] = '';
        }

        /* @var $folder \CmsFile\Mapping\FolderInterface */
        $folder  = $this->getFolderService()->getMapper()->findOneByPath('/' . trim($info['dirname'], '/'));
        if (!$folder) {
            $response->setStatusCode(404);
            return $response;
        }

        $file = $folder->getFile($info['basename']);
        if (!$file) {
            $response->setStatusCode(404);
            return $response;
        }

        $response = new Stream;
        $response->setStream(fopen($file, 'r'));
        $response->setStatusCode(200);

        $headers = new Headers;
        $headers->addHeaderLine('Content-Type', $file->getType())
            ->addHeaderLine('Content-Disposition', 'attachment; filename="' . $file->getTitle() . '"')
            ->addHeaderLine('Content-Length', filesize($file));

        $response->setHeaders($headers);

        return $response;
    }
812574
public function index()
    {
        try {            
            $files = $this->file->get(Input::get('pid'));
            
            return response()->json([
                'status' => 'success',
                'data' => $files,
            ]);
        }
        
        catch (Exception $e) {
            return $this->handleError($e);
        }
    }
986123
public function index()
    {
        save_resource_url();

        $items = User::with('roles')->whereRole(Role::$WEBSITE)->get();

        return $this->view('titan::clients.index')->with('items', $items);
    }
248218
public function index() {
        $this->Users = TableRegistry::get('Builder.Users');
        $query = $this->Users->find('all');
        $query->where($this->filteredWhereConditions());
        $query->limit(1000);
        $this->set('data', $query->toArray());
        $this->set('_serialize', ['data']);
    }