index method

@return void
176261
public function index() {
		$this->Cliente->recursive = 0;
                
                $descuentoMaximo = Configure::read('Mozo.descuento_maximo');
                $currentRole = $this->Session->read('Auth.User.role');
                
                $this->Prg->commonProcess();
                $this->Paginator->settings['conditions'] = $this->Article->parseCriteria($this->Prg->parsedParams());
        
                $condiciones = array();
                
                if ( strtolower($currentRole) == 'mozo' && is_numeric( $descuentoMaximo ) ) {                
                    $condiciones['OR'] = array(
                            "Descuento.porcentaje <= $descuentoMaximo",
                            'Descuento.porcentaje IS NULL'
                        );
                }
                $this->paginate->settings['conditions'] = $condiciones;
                
                $this->set('tipo_documentos', $this->Cliente->TipoDocumento->find('list'));
		$this->set('clientes', $this->Paginator->paginate());
	}
300576
public function index()
    {
        return view('laramanager::entries.index.index')
            ->with('resource', $this->resource)
            ->with('entries', $this->entriesRepository->getList($this->resource));
    }
1103239
public function index()
    {
        $this->user->pushCriteria(new UserOrderCriteria());
        $users = $this->user->all();

        return view('user::backend.users.index', compact('users', 'currentUser'));
    }
892727
public function indexAction()
    {
        $this->initHtml();

        $this->html->h3($this->_('Contact'));

        $this->html->h4(sprintf($this->_('The %s project'), $this->project->getName()));
        $this->html->append($this->_getOrganizationsList());

        $this->html->h4($this->_('Information on this application'));
        $this->html->pInfo($this->_('Links concerning this web application:'));

        $menuItem = $this->menu->getCurrent();
        $ul = $menuItem->toUl($this->getRequest());
        $ul->class = 'indent';
        $this->html[] = $ul;
    }
489020
public function indexAction()
    {
        if ($this->selectedSite === null) {
            $this->view->assign('can_not_proceed', true);
            return;
        }

        $this->collectConnectionInfos();
        $this->collectStatistics();
        $this->collectIndexFieldsInfo();
        $this->collectIndexInspectorInfo();
    }
890552
public function indexAction()
    {
        if ($this->selectedSolrCoreConnection === null) {
            $this->view->assign('can_not_proceed', true);
            return;
        }

        $synonyms = [];
        $coreAdmin = $this->selectedSolrCoreConnection->getAdminService();
        $rawSynonyms = $coreAdmin->getSynonyms();
        foreach ($rawSynonyms as $baseWord => $synonymList) {
            $synonyms[$baseWord] = implode(', ', $synonymList);
        }

        $stopWords = $coreAdmin->getStopWords();
        $this->view->assignMultiple([
            'synonyms' => $synonyms,
            'stopWords' => implode(PHP_EOL, $stopWords),
            'stopWordsCount' => count($stopWords)
        ]);
    }
1176506
public function index()
    {
        $conditions = [];
        $params = (array)$this->request->query();
        if (!empty($params['model'])) {
            $conditions['model'] = $params['model'];
        }
        if (!empty($params['foreign_key'])) {
            $conditions['foreign_key'] = $params['foreign_key'];
        }

        $this->paginate = [
            'conditions' => $conditions,
        ];
        $permissions = $this->paginate($this->Permissions);

        $this->set(compact('permissions'));
        $this->set('_serialize', ['permissions']);
    }
18166
public function indexAction()
    {
        $models = $this->getAllModels();

        foreach($models as $model) {
            $this->checkTable(new $model['namespace']);
        }
    }
895154
public function index()
    {
        $this->data['page']->title = 'Manage Blogs';

        // --------------------------------------------------------------------------

        //  Get blogs
        $this->data['blogs'] = $this->blog_model->getAll();

        if (empty($this->data['blogs'])) {

            if (!userHasPermission('admin:blog:blog:create')) {

                $status   = 'message';
                $message  = '<strong>You don\'t have a blog!</strong> Create a new blog ';
                $message .= 'in order to configure blog settings.';

                $this->session->set_flashdata($status, $message);

                redirect('admin/blog/blog/create');

            }
        }

        // --------------------------------------------------------------------------

        //  Add a header button
        if (userHasPermission('admin:blog:blog:create')) {

             Helper::addHeaderButton('admin/blog/blog/create', 'Create Blog');
        }

        // --------------------------------------------------------------------------

        //  Load views
        Helper::loadView('index');
    }
1215892
public function _index() {
		$datas = DAO::getAll ( $this->model );
		echo $this->_getResponseFormatter ()->get ( $datas );
	}
665055
public function indexAction()
    {
        if ($this->checkForAnswersOnLoad) {
            $this->loader->getTracker()->processCompletedTokens(
                    null,
                    $this->currentUser->getUserId(),
                    $this->currentUser->getCurrentOrganizationId(),
                    true
                    );
        }

        parent::indexAction();
    }
548405
public function indexAction()
    {
        if ($this->view instanceof JsonView) {
            $this->view->assign('value', $this->contentDimensionPresetSource->getAllPresets());
        } else {
            $this->view->assign('contentDimensionsPresets', $this->contentDimensionPresetSource->getAllPresets());
        }
    }
923836
public function index()
    {
        $this->paginate['order'] = ['created' => 'DESC'];

        $albums = $this->paginate($this->PhotosAlbums->find());

        $this->set(compact('albums'));
    }
1221503
public function index() {
        $this->paginate = [
            'contain' => ['CmsContent'],
            'limit' => 1000,
            'maxLimit' => 1000
        ];
        $this->set('data', $this->paginate($this->CmsContentMeta));
        $this->set('_serialize', ['data']);
    }
469446
public function index()
    {
        $languages = $this->Languages->find('allFrontendBackend')->hydrate(false);
        $this->set([
            'languages' => $languages,
            'language' => $this->Languages->newEntity()
        ]);
    }
751738
public function index()
    {
        $this->Crud->on('beforePaginate', function (Event $event) {
            $query = $this->Users->find('search', $this->request->query);
            $query = $query->select(['id', 'username']);
            $event->subject->query = $query;
        });
        $this->Crud->execute();
    }
1074986
public function index(): void
    {
        $menus = $this->Menus->find('all');

        $this->set(compact('menus'));
        $this->set('_serialize', ['navMenu']);
    }