0

At the moment it is only a idea but I want to know whether it is possible or not or you have a better idea? I have about 1000 cities in my database and need to include this in my router check.

I know there are literal, segement and regex checks. How can include this cities within my Router?

At the moment my router looks like this, but like you see its more than a wildecard/test check.

'city' => array(
    'type' => 'Segment',
    'options' => array(
        'route' => '/[:city]',
        'constraints' => array(
            'state' => '[a-zA-Z][a-zA-Z0-9_-]+'
        ),
        'defaults' => array(
            'action' => 'city'
        )
    )
)
4

0 回答 0