Skip to content

Commit

Permalink
Implementing new view registering method in com_contact
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackwar committed Jan 1, 2015
1 parent 66fcdf8 commit 36557a0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions components/com_contact/router.php
Expand Up @@ -18,10 +18,16 @@ class ContactRouter extends JComponentRouterAdvanced
{
function __construct($app = null, $menu = null)
{
$this->registerView('categories', 'categories');
$this->registerView('category', 'category', 'id', 'categories', '', true, array('default', 'blog'));
$this->registerView('contact', 'contact', 'id', 'category', 'catid');
$this->registerView('featured', 'featured');
$categories = new JComponentRouterViewconfiguration('categories');
$categories->setKey('id');
$this->registerView($categories);
$category = new JComponentRouterViewconfiguration('category');
$category->setKey('id')->setParent($categories, 'id')->setNestable();
$this->registerView($category);
$contact = new JComponentRouterViewconfiguration('contact');
$contact->setKey('id')->setParent($category, 'catid');
$this->registerView($contact);
$this->registerView(new JComponentRouterViewconfiguration('featured'));

parent::__construct($app, $menu);

Expand Down

0 comments on commit 36557a0

Please sign in to comment.