#1 2012-02-27 22:44:34

santhony
Member
From: Moscow
Registered: 2012-02-27
Posts: 3
Website

What is module aliases for?

application/config/modules.php has empty array $aliases.

I found the uses of it in the Router.php:

// do we have an aliased controller?
elseif(in_array($rmodule, array_keys($aliases)))
{
  // yes, get module and controller, remove alias from the uri
  list($this->module_path, $c) = each($aliases[($this->uri->segments)]);
  $this->module = array_search($this->module_path, $modules);
   
  // add the controller back to it, so the match_to_routes() and find controller works as they should
  $this->uri->segments = array_merge(array($c), $this->uri->segments);
}

But it doesn't make clear what is aliases for?


http://avestique.ru/
Magento, Zend & Codeigniter development
SEO & SMM

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations