Jump to content

Recommended Posts

Posted

Followed the instructions  of adding an item to the ModCP:

class _adminignores
{
	/**
	 * Returns the primary tab key for the navigation bar
	 *
	 * @return string|null
	 */
	public function getTab()
	{
		return 'adminignores';
	}

	/**
	 * Manage
	 *
	 * @return void
	 */
	public function manage()
	{
		return 'Test';
	}
}

I also added the 'modcp_' language definition:

$lang = array ( 
	'modcp_adminignores' => 'Admin Ignores', 
};

However, I am getting the following error:

IPS\Http\Url\Exception: INVALID_SEO_TEMPLATE (0)
#0 E:\wamp64\www\***.6\init.php(902) : eval()'d code(169): IPS\Http\Url\_Friendly::buildFriendlyUrlComponentFromData('app=core&module...', 'modcp_adminigno...', Array)

What am I missing here?

Posted
10 minutes ago, Adriano Faria said:

Did you add your FURL do the furl.json?

I added this after searching through a lot of core core.

{
    "topLevel": "",
    "pages": {
       /* Mod CP */
       "modcp_adminignores": {
           "friendly": "modcp/adminignores",
           "real": "app=core&module=modcp&controller=modcp&tab=adminignores"
       },    
    }
}

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...