Skip to content

Instantly share code, notes, and snippets.

@awartoft
Created August 2, 2012 12:00
Show Gist options
  • Save awartoft/3236535 to your computer and use it in GitHub Desktop.
Save awartoft/3236535 to your computer and use it in GitHub Desktop.
<?php
return array(
'default' => array(
'article' => array(
'label' => 'Nyheter',
'route' => 'article/archive',
'order' => 2,
'controller' => 'article',
'pages' => array(
array(
'type' => 'mvc',
'label' => 'Läs artikel',
'controller' => 'article',
'action' => 'view',
'visible' => false
),
array(
'type' => 'mvc',
'label' => 'Mest visade nyheter',
'route' => 'article/most_viewed',
'controller' => 'article',
'action' => 'most-viewed'
),
array(
'type' => 'mvc',
'label' => 'Nyhetsarkiv',
'route' => 'article/archive',
'controller' => 'article',
'action' => 'list',
'pages' => array(
array(
'type' => 'mvc',
'controller' => 'article',
'action' => 'search',
)
)
)
)
),
),
'admin' => array(
'article' => array(
'type' => 'mvc',
'label' => 'Nyheter',
'order' => 2,
'pages' => array(
array(
'label' => 'Skriv en ny',
'route' => 'admin/article/write',
'controller' => 'article_admin',
'action' => 'write'
),
array(
'label' => 'Sök & redigera',
'route' => 'admin/article/edit'
),
)
)
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment