> For the complete documentation index, see [llms.txt](https://playground.e107sk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://playground.e107sk.com/e107-efiction-integration/outdated/e107-url.md).

# e107::url()

##

All links with URL parameters have to use \_BASEDIR constant, e107::url() is not fully working yet.

```
if (!defined('_BASEDIR')) {
    define('_BASEDIR', e_PLUGIN.'efiction/');
}
```

Example how to use it without \_BASEDIR for now:

```
$base = e107::url('efiction', 'member');
$link =  "<a href=\"".$base."?action=".$panel['panel_name']."\">".$panel['panel_title']."</a>";
```

| Working e107 URLs               | Displays                         | Version |
| ------------------------------- | -------------------------------- | ------- |
| e107::url('efiction','index')   | plugin frontpage (index.php)     | ✅1.0.1  |
| e107::url('efiction','admin')   | admin area frontpage (admin.php) | ✅1.0.1  |
| e107::url('efiction', 'member') | Logged in Author's account       | ✅1.0.2  |
