Skip to content

Instantly share code, notes, and snippets.

@kevburnsjr
Created August 10, 2009 21:18
Show Gist options
  • Save kevburnsjr/165424 to your computer and use it in GitHub Desktop.
Save kevburnsjr/165424 to your computer and use it in GitHub Desktop.
<?php
return array(
'~^/do/(signup|agreement)$~i' => array('controller' => 'default', 'controller_class' => 'DefaultController', '_action' => 1 ),
'~^/([a-zA-Z0-9]+)/photos2$~i' => array('pgo_name' => 1, 'controller' => 'photo', 'controller_class' => 'PhotoController', '_action' => 'index' ),
'~^/([a-zA-Z0-9]+)/photos2/(new|add|create)$~i' => array('pgo_name' => 1, 'controller' => 'photo', 'controller' => 'PhotoController', '_action' => 2),
'~^/([a-zA-Z0-9]+)/photos2/([0-9]+)$~i' => array('pgo_name' => 1, 'controller' => 'photo', 'controller' => 'PhotoController', '_action' => 'show', 'id' => 2),
'~^/([a-zA-Z0-9]+)/photos2/([0-9]+)/(edit|update|remove|delete)$~i' => array('pgo_name' => 1, 'controller' => 'photo', 'controller' => 'PhotoController', 'id' => 2, '_action' => 3 ),
'~^/([a-zA-Z0-9]+)/tags$~i' => array('pgo_name' => 1, 'controller' => 'tag', 'controller_class' => 'TagController', '_action' => 'index' ),
'~^/([a-zA-Z0-9]+)/tags/([a-zA-Z0-9+_:-]+)$~i' => array('pgo_name' => 1, 'controller' => 'tag', 'controller_class' => 'TagController', '_action' => 'show', 'canonical' => 2),
'~^/([a-zA-Z0-9]+)/tags/([a-zA-Z0-9+_:-]+)/(edit|sink|bless|unsink|unbless)$~i' => array('pgo_name' => 1, 'controller' => 'tag', 'controller_class' => 'TagController', 'canonical' => 2, '_action' => 3 ),
'~^/([a-zA-Z0-9]+)/tagrels$~i' => array('pgo_name' => 1, 'controller' => 'tagrel', 'controller_class' => 'TagRelController', '_action' => 'index' ),
'~^/([a-zA-Z0-9]+)/tagrels/([0-9]+)$~i' => array('pgo_name' => 1, 'controller' => 'tagrel', 'controller_class' => 'TagRelController', '_action' => 'show', 'id' => 2),
'~^/([a-zA-Z0-9]+)/tagrels/([0-9]+)/(sanction|delete)$~i' => array('pgo_name' => 1, 'controller' => 'tagrel', 'controller_class' => 'TagRelController', 'id' => 2, '_action' => 3 ),
'~^/([a-zA-Z0-9]+)/questions$~i' => array('pgo_name' => 1, 'controller' => 'question', 'controller_class' => 'QuestionController', '_action' => 'index' ),
'~^/([a-zA-Z0-9]+)/questions/create$~i' => array('pgo_name' => 1, 'controller' => 'question', 'controller_class' => 'QuestionController', '_action' => 'create' ),
'~^/([a-zA-Z0-9]+)/questions/([a-zA-Z0-9+_:-]+)$~i' => array('pgo_name' => 1, 'controller' => 'question', 'controller_class' => 'QuestionController', '_action' => 'show', 'id' => 2),
'~^/([a-zA-Z0-9]+)/questions/([a-zA-Z0-9+_:-]+)/(edit|delete|close|unclose|unaccept|accept|share|feature)$~i' => array('pgo_name' => 1, 'controller' => 'question', 'controller_class' => 'QuestionController', 'id' => 2, '_action' => 3 ),
'~^/([a-zA-Z0-9]+)/content$~i' => array('pgo_name' => 1, 'controller' => 'content', 'controller_class' => 'ContentController', '_action' => 'index' ),
'~^/([a-zA-Z0-9]+)/content/(create|create_many)$~i' => array('pgo_name' => 1, 'controller' => 'content', 'controller_class' => 'ContentController', '_action' => 2 ),
'~^/([a-zA-Z0-9]+)/content/([a-zA-Z0-9+_:-]+)$~i' => array('pgo_name' => 1, 'controller' => 'content', 'controller_class' => 'ContentController', '_action' => 'show', 'slug' => 2),
'~^/([a-zA-Z0-9]+)/content/([a-zA-Z0-9+_:-]+)/(edit|delete)$~i' => array('pgo_name' => 1, 'controller' => 'content', 'controller_class' => 'ContentController', 'slug' => 2, '_action' => 3 ),
'~^/([a-zA-Z0-9]+)/news$~i' => array('pgo_name' => 1, 'controller' => 'news', 'controller_class' => 'NewsController', '_action' => 'index' ),
'~^/([a-zA-Z0-9]+)/news/(create|create_many)$~i' => array('pgo_name' => 1, 'controller' => 'news', 'controller_class' => 'NewsController', '_action' => 2 ),
'~^/([a-zA-Z0-9]+)/news/([a-zA-Z0-9+_:-]+)$~i' => array('pgo_name' => 1, 'controller' => 'news', 'controller_class' => 'NewsController', '_action' => 'show', 'slug' => 2),
'~^/([a-zA-Z0-9]+)/news/([a-zA-Z0-9+_:-]+)/(edit|delete)$~i' => array('pgo_name' => 1, 'controller' => 'news', 'controller_class' => 'NewsController', 'slug' => 2, '_action' => 3 ),
'~^/([a-zA-Z0-9]+)/faq$~i' => array('pgo_name' => 1, 'controller' => 'faq', 'controller_class' => 'FaqController', '_action' => 'index' ),
'~^/([a-zA-Z0-9]+)/faq/(create)$~i' => array('pgo_name' => 1, 'controller' => 'faq', 'controller_class' => 'FaqController', '_action' => 2 ),
'~^/([a-zA-Z0-9]+)/faq/([a-zA-Z0-9+_:-]+)$~i' => array('pgo_name' => 1, 'controller' => 'faq', 'controller_class' => 'FaqController', '_action' => 'show', 'slug' => 2),
'~^/([a-zA-Z0-9]+)/faq/([a-zA-Z0-9+_:-]+)/(edit|delete)$~i' => array('pgo_name' => 1, 'controller' => 'faq', 'controller_class' => 'FaqController', 'slug' => 2, '_action' => 3 ),
'~^/([a-zA-Z0-9]+)/surveys$~i' => array('pgo_name' => 1, 'controller' => 'adminsurvey', 'controller_class' => 'AdminSurveyController', '_action' => 'index' ),
'~^/([a-zA-Z0-9]+)/surveys/(create)$~i' => array('pgo_name' => 1, 'controller' => 'adminsurvey', 'controller_class' => 'AdminSurveyController', '_action' => 2 ),
'~^/([a-zA-Z0-9]+)/surveys/([0-9]+)$~i' => array('pgo_name' => 1, 'controller' => 'adminsurvey', 'controller_class' => 'AdminSurveyController', '_action' => 'show', 'id' => 2),
'~^/([a-zA-Z0-9]+)/surveys/([0-9]+)/(edit|delete|reorder|archive|unarchive)$~i' => array('pgo_name' => 1, 'controller' => 'adminsurvey', 'controller_class' => 'AdminSurveyController', 'id' => 2, '_action' => 3 ),
'~^/([a-zA-Z0-9]+)/surveys/([0-9]+)/fieldsets/(create)$~i' => array('pgo_name' => 1, 'controller' => 'adminsurveyfieldset', 'controller_class' => 'AdminSurveyFieldsetController', 'survey_id' => 2, '_action' => 3 ),
'~^/([a-zA-Z0-9]+)/surveys/([0-9]+)/fieldsets/([0-9]+)$~i' => array('pgo_name' => 1, 'controller' => 'adminsurveyfieldset', 'controller_class' => 'AdminSurveyFieldsetController', 'survey_id' => 2, 'id' => 3, '_action' => 'show' ),
'~^/([a-zA-Z0-9]+)/surveys/([0-9]+)/fieldsets/([0-9]+)/(edit|delete|reorder|archive|unarchive)$~i' => array('pgo_name' => 1, 'controller' => 'adminsurveyfieldset', 'controller_class' => 'AdminSurveyFieldsetController', 'survey_id' => 2, 'id' => 3, '_action' => 4 ),
'~^/([a-zA-Z0-9]+)/surveys/([0-9]+)/fieldsets/([0-9]+)/fields/(create)$~i' => array('pgo_name' => 1, 'controller' => 'adminsurveyfield', 'controller_class' => 'AdminSurveyFieldController', 'survey_id' => 2, 'fieldset_id' => 3, '_action' => 4 ),
'~^/([a-zA-Z0-9]+)/surveys/([0-9]+)/fieldsets/([0-9]+)/fields/([0-9]+)/(edit|delete|archive|unarchive)$~i' => array('pgo_name' => 1, 'controller' => 'adminsurveyfield', 'controller_class' => 'AdminSurveyFieldController', 'survey_id' => 2, 'fieldset_id' => 3, 'id' => 4, '_action' => 5 ),
'~^/([a-zA-Z0-9]+)/usersegments$~i' => array('pgo_name' => 1, 'controller' => 'adminusersegment', 'controller_class' => 'AdminUserSegmentController', '_action' => 'index' ),
'~^/([a-zA-Z0-9]+)/usersegments/(create)$~i' => array('pgo_name' => 1, 'controller' => 'adminusersegment', 'controller_class' => 'AdminUserSegmentController', '_action' => 2 ),
'~^/([a-zA-Z0-9]+)/usersegments/([0-9]+)$~i' => array('pgo_name' => 1, 'controller' => 'adminusersegment', 'controller_class' => 'AdminUserSegmentController', '_action' => 'show', 'id' => 2),
'~^/([a-zA-Z0-9]+)/usersegments/([0-9]+)/(edit|delete|archive|unarchive)$~i' => array('pgo_name' => 1, 'controller' => 'adminusersegment', 'controller_class' => 'AdminUserSegmentController', 'id' => 2, '_action' => 3 ),
'~^/([a-zA-Z0-9]+)/usersegments/([0-9]+)/criteria/(create)$~i' => array('pgo_name' => 1, 'controller' => 'adminusersegmentcriterion', 'controller_class' => 'AdminUserSegmentCriterionController', 'usersegment_id' => 2, '_action' => 3 ),
'~^/([a-zA-Z0-9]+)/usersegments/([0-9]+)/criteria/([0-9]+)/(edit|delete)$~i' => array('pgo_name' => 1, 'controller' => 'adminusersegmentcriterion', 'controller_class' => 'AdminUserSegmentCriterionController', 'usersegment_id' => 2, 'id' => 3, '_action' => 4 ),
'~^/([a-zA-Z0-9]+)/surveyinterviews$~i' => array('pgo_name' => 1, 'controller' => 'adminsurveyinterview', 'controller_class' => 'AdminSurveyInterviewController', '_action' => 'index' ),
'~^/([a-zA-Z0-9]+)/surveyinterviews/(create)$~i' => array('pgo_name' => 1, 'controller' => 'adminsurveyinterview', 'controller_class' => 'AdminSurveyInterviewController', '_action' => 2 ),
'~^/([a-zA-Z0-9]+)/surveyinterviews/([0-9]+)$~i' => array('pgo_name' => 1, 'controller' => 'adminsurveyinterview', 'controller_class' => 'AdminSurveyInterviewController', '_action' => 'show', 'id' => 2),
'~^/([a-zA-Z0-9]+)/surveyinterviews/([0-9]+)/(edit|delete|archive|unarchive)$~i' => array('pgo_name' => 1, 'controller' => 'adminsurveyinterview', 'controller_class' => 'AdminSurveyInterviewController', 'id' => 2, '_action' => 3 ),
'~^/([a-zA-Z0-9]+)/surveyinterviews/([0-9]+)/responses/([0-9]+)$~i' => array('pgo_name' => 1, 'controller' => 'adminsurveyresponse', 'controller_class' => 'AdminSurveyResponseController', 'parent_id' => 2, 'id' => 3, '_action' => 'show' ),
'~^/([a-zA-Z0-9]+)/surveyinterviews/([0-9]+)/responses/([0-9]+)/(delete)$~i' => array('pgo_name' => 1, 'controller' => 'adminsurveyresponse', 'controller_class' => 'AdminSurveyResponseController', 'parent_id' => 2, 'id' => 3, '_action' => 4 ),
'~^/([a-zA-Z0-9]+)/interviews$~i' => array('pgo_name' => 1, 'controller' => 'surveyinterview', 'controller_class' => 'SurveyInterviewController', '_action' => 'index' ),
'~^/([a-zA-Z0-9]+)/interviews/([0-9]+)$~i' => array('pgo_name' => 1, 'controller' => 'surveyinterview', 'controller_class' => 'SurveyInterviewController', '_action' => 'show', 'id' => 2),
'~^/([a-zA-Z0-9]+)/interviews/([0-9]+)/fieldsets/([0-9]+)$~i' => array('pgo_name' => 1, 'controller' => 'surveyresponsefieldset', 'controller_class' => 'SurveyResponseFieldsetController', 'interview_id' => 2, '_action' => 'create', 'id' => 3 )
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment