Jump to content

FURL in plugin - it is possible?


desti

Recommended Posts

Yes, with a hook on \IPS\Http\Url\Friendly::furlDefinition():

Example:

	public static function furlDefinition( $revert=FALSE )
	{
		$furls = parent::furlDefinition($revert);

		if( !isset( $furls['settings_recenttopics'] ) )
		{
			$furls['settings_recenttopics'] = array(
				'friendly'  => 'settings/recenttopics',
				'real'      => 'app=core&module=system&controller=settings&area=recenttopics',
				'regex'    	=> array('settings\/recenttopics'),
				'params'   	=> array(),
			);
		}

		return $furls;
	}

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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