Welcome Guest, Not a member yet? Register   Sign In
vars in config / route.php
#1

Hi I am creating a website in more languages. I have 9 maingroups in 4 languages.

I want to create (if possible) something like this:

$route['(women|men|shoes|kids|bodywear|eyewear)']='maingroups';

But I want to put the string 'women|men|shoes|kids|bodywear|eyewear' as a varibele. But I cannot find if it is possible to do something like so:

$maingroups=array();
foreach ($tree as $node) {
          $maingroups[]=$node->cat_name;
  }

$pages = implode('|' , $maingroups)
$route[$pages] = 'maingroups';

Can someone help? Thanks and kind regards.
Reply


Messages In This Thread
vars in config / route.php - by dem80 - 08-16-2015, 05:41 AM
RE: vars in config / route.php - by kilishan - 08-16-2015, 07:36 PM
RE: vars in config / route.php - by CroNiX - 08-17-2015, 10:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB