mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-16 21:17:45 +02:00
feat: add breadcrumb in admin area
- add Breadcrumb library and service - update authorizations - add missing routes to avoid 404 links in breadcrumb - add svg_helper globally in base controller - update purgecss config to check .ts files closes #17
This commit is contained in:
parent
ed6e953010
commit
7fb1de2cf3
35 changed files with 397 additions and 82 deletions
|
|
@ -7,6 +7,7 @@ use CodeIgniter\Model;
|
|||
use App\Authorization\FlatAuthorization;
|
||||
use App\Authorization\PermissionModel;
|
||||
use App\Authorization\GroupModel;
|
||||
use App\Libraries\Breadcrumb;
|
||||
use App\Models\UserModel;
|
||||
use Myth\Auth\Models\LoginModel;
|
||||
|
||||
|
|
@ -91,4 +92,13 @@ class Services extends CoreServices
|
|||
|
||||
return $instance->setUserModel($userModel);
|
||||
}
|
||||
|
||||
public static function breadcrumb(bool $getShared = true)
|
||||
{
|
||||
if ($getShared) {
|
||||
return self::getSharedInstance('breadcrumb');
|
||||
}
|
||||
|
||||
return new Breadcrumb();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue