We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

What does "any " in invo private tab means?


private $_tabs = array(
        'Invoices' => array(
            'controller' => 'invoices',
            'action' => 'index',
            'any' => false
        ),
        'Companies' => array(
            'controller' => 'companies',
            'action' => 'index',
            'any' => true
        ),
        'Products' => array(
            'controller' => 'products',
            'action' => 'index',
            'any' => true
        ),
        'Product Types' => array(
            'controller' => 'producttypes',
            'action' => 'index',
            'any' => true

what does "any " mean here??? i am new to phalcon



43.9k
Accepted
answer

Hi,

have a look here : https://github.com/phalcon/invo/blob/master/app/library/Elements.php#L114

this is for options passed to controller/action

Thank you i have the code already!!!! Can you explain it more clearly?? What does the options mean here??



43.9k

tab menu is shown on different views (companies/index companies/search and so on CompaniesController https://github.com/phalcon/invo/blob/master/app/controllers/CompaniesController.php).

See options in use in searchAction(): $numberPage = $this->request->getQuery("page", "int");