Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

rebuild joomla menu

{source}<?php

$table= JTable::getInstance('Menu', 'JTable', array());
// Rebuild the tree path.
if (!$table->rebuildPath($table->id) || !$table->rebuild($table->id)) {

$this->setError($table->getError());
return false;
}else{
echo 'path updated';
}

?>{/source}
 
PREVIOUS NEXT
Tagged: #rebuild #joomla #menu
ADD COMMENT
Topic
Name
6+4 =