質問

In PyroCMS you can create a submenu for your custom module using the

$info['sections'][...] 

array. Rather than returning the same menu, based on the current section the user is in I want to offer a seperate menu.

Something like this;

if($section =='my_order')
{
   return $info = array(...);
}
else
{
   return $info = array(...);
}

But Im not sure how to check which section the user is in in the details.php file

any suggestions ideas greatly appreciated.

Im using PyroCMS 2.2

役に立ちましたか?

解決

If the section is in the URL, that's an easy way.

http://ellislab.com/codeigniter/user-guide/libraries/uri.html

if($this->uri->segment(2) == 'my_order'){
    ...
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top