$menu->GetActive()->id is always null - Joomla! Forum - community, help and support


hi,

i´m developing project in joomla includes template , module includes menu system. problem no matter do, getactive array null. have readen various days , have tried ways i´ve found including japplication, jmenu, , jrequest without luck.

this extracted source code...

code: select all

defined('_jexec') or die('direct access location not allowed.');
$app = jfactory::getapplication();
$menu = $app->getmenu();
...
foreach ($items $key => $value) {

$data[$menu->getitem($key)->id]['id']=$menu->getitem($key)->id;
...
}
if (strlen($data[$menu->getactive()->id]['note']) > 0) {
...}


i have removed info mo make more clear. problem when run same error: notice: trying property of non-object in .... have checked error here: $menu->getactive()->id seems menu system not loaded or i´m doing wrong in template.. possible? i´m using joomla 2.5. please help, im getting crazy :'(






Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support