Skip to content

Instantly share code, notes, and snippets.

@enlacee
Last active August 29, 2015 14:15
Show Gist options
  • Save enlacee/b3602b53c518df17e9f1 to your computer and use it in GitHub Desktop.
Save enlacee/b3602b53c518df17e9f1 to your computer and use it in GitHub Desktop.
buscador, trigger, and config router
SEARCHS TABLE
------
0. id_search
1. id_user (users.id_user)
2. username (users.username_user)
2. name (profiles.name_profile + profiles.lastname_profile)
3. description (profiles.services_profile)
4. gender_profile (profiles.gender_profile)
// ojo TRIGGER filtrar trigger only users.type_user
// ojo TRIGGER UPDATE or INSERT users.is_active_user=1 OJO DELETE
// busqueda actual : CONSULTA SOBRE el API (APIGILITI quien hace el filtro)
webservice/module/Engines/src/Engines/V1/Rest/ProfileSearchs/ProfileSearchResource.php
// url
http://54.85.186.203/q/dra-luisa-nakamura-torres-XLsd1
// configuration medico
'q' => array(
'type' => 'Literal',
'options' => array(
'route' => '/q',
'defaults' => array(
'__NAMESPACE__' => 'Persona\Controller',
'controller' => 'Index',
'action' => 'search',
),
),
'may_terminate' => true,
'child_routes' => array(
'default' => array(
'type' => 'Segment',
'options' => array(
'route' => '[/:keywords]', // router opcional (op1)
'constraints' => array(
'keywords' => '[a-zA-Z][a-zA-Z0-9_-]*'
),
),
),
),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment