Skip to content

Instantly share code, notes, and snippets.

@gumacahin
Created July 24, 2012 10:24
Show Gist options
  • Save gumacahin/3169293 to your computer and use it in GitHub Desktop.
Save gumacahin/3169293 to your computer and use it in GitHub Desktop.
application/modules/Car/settings/manifest.php
<?php return array (
'package' =>
array (
'type' => 'module',
'name' => 'car',
'version' => '4.0.0',
'path' => 'application/modules/Car',
'title' => 'Car',
'description' => 'Car',
'author' => 'http://social-engine-tutorials.blogspot.com/',
'callback' =>
array (
'class' => 'Engine_Package_Installer_Module',
),
'actions' =>
array (
0 => 'install',
1 => 'upgrade',
2 => 'refresh',
3 => 'enable',
4 => 'disable',
),
'directories' =>
array (
0 => 'application/modules/Car',
),
'files' =>
array (
0 => 'application/languages/en/car.csv',
),
),
// Items ---------------------------------------------------------------------
'items' => array(
'car_car'
),
// Routes --------------------------------------------------------------------
'routes' => array(
'car_extended' => array(
'route' => 'car/:controller/:action/*',
'defaults' => array(
'module' => 'car',
'controller' => 'index',
'action' => 'index',
),
'reqs' => array(
'controller' => '\D+',
'action' => '\D+',
)
),
'car_general' => array(
'route' => 'cars/:action/*',
'defaults' => array(
'module' => 'car',
'controller' => 'index',
'action' => 'browse',
),
'reqs' => array(
'action' => '(browse|create|list|manage)',
)
),
'car_specific' => array(
'route' => 'cars/:action/:car_id/*',
'defaults' => array(
'module' => 'car',
'controller' => 'car',
'action' => 'index',
),
'reqs' => array(
'action' => '(edit|delete)',
'car_id' => '\d+',
)
),
'car_profile' => array(
'route' => 'car/:id/*',
'defaults' => array(
'module' => 'car',
'controller' => 'profile',
'action' => 'index',
),
'reqs' => array(
'id' => '\d+',
)
),
)
); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment