added extensions for core assets, bug fixes
This commit is contained in:
parent
6fd22471da
commit
e03a4a272d
@ -82,7 +82,7 @@
|
||||
"asset" => "\\Crispage\\Framework\\Asset",
|
||||
"action" => "\\Crispage\\Framework\\Action",
|
||||
"component" => "\\Crispage\\Framework\\Component",
|
||||
"plugin" => "\\Crispage\\Framework\\Plugin"
|
||||
"plugin" => "\\Crispage\\Framework\\PluginClass"
|
||||
];
|
||||
|
||||
public static function uriFilters(): array {
|
||||
@ -283,7 +283,7 @@
|
||||
if (class_exists($classname)) {
|
||||
// Check that class is of the right type
|
||||
if (!is_a($classname, $typeclass, true)) {
|
||||
$this->app->handleException(new CrispageException(
|
||||
$this->handleException(new CrispageException(
|
||||
"$classname is not a $typeclass", 500
|
||||
));
|
||||
}
|
||||
|
@ -29,6 +29,63 @@
|
||||
"crispage.core", "package", []
|
||||
),
|
||||
|
||||
// Assets
|
||||
new Extension(
|
||||
"crispage.assets.article", VERSION, "crispage.core",
|
||||
"\\Crispage\\Assets\\Article",
|
||||
"asset", []
|
||||
),
|
||||
new Extension(
|
||||
"crispage.assets.category", VERSION, "crispage.core",
|
||||
"\\Crispage\\Assets\\Category",
|
||||
"asset", []
|
||||
),
|
||||
new Extension(
|
||||
"crispage.assets.comment", VERSION, "crispage.core",
|
||||
"\\Crispage\\Assets\\Comment",
|
||||
"asset", []
|
||||
),
|
||||
new Extension(
|
||||
"crispage.assets.contentasset", VERSION, "crispage.core",
|
||||
"\\Crispage\\Assets\\ContentAsset",
|
||||
"asset", []
|
||||
),
|
||||
new Extension(
|
||||
"crispage.assets.menu", VERSION, "crispage.core",
|
||||
"\\Crispage\\Assets\\Menu",
|
||||
"asset", []
|
||||
),
|
||||
new Extension(
|
||||
"crispage.assets.menuitem", VERSION, "crispage.core",
|
||||
"\\Crispage\\Assets\\MenuItem",
|
||||
"asset", []
|
||||
),
|
||||
new Extension(
|
||||
"crispage.assets.module", VERSION, "crispage.core",
|
||||
"\\Crispage\\Assets\\Module",
|
||||
"asset", []
|
||||
),
|
||||
new Extension(
|
||||
"crispage.assets.plugin", VERSION, "crispage.core",
|
||||
"\\Crispage\\Assets\\Plugin",
|
||||
"asset", []
|
||||
),
|
||||
new Extension(
|
||||
"crispage.assets.redirect", VERSION, "crispage.core",
|
||||
"\\Crispage\\Assets\\Redirect",
|
||||
"asset", []
|
||||
),
|
||||
new Extension(
|
||||
"crispage.assets.role", VERSION, "crispage.core",
|
||||
"\\Crispage\\Assets\\Role",
|
||||
"asset", []
|
||||
),
|
||||
new Extension(
|
||||
"crispage.assets.user", VERSION, "crispage.core",
|
||||
"\\Crispage\\Assets\\User",
|
||||
"asset", []
|
||||
),
|
||||
|
||||
// Actions
|
||||
new Extension(
|
||||
"crispage.actions.api", VERSION, "crispage.core",
|
||||
|
@ -74,6 +74,7 @@ crispage.dev.db_errors = false
|
||||
; Paths
|
||||
;===============================
|
||||
; Paths are relative to the ROOT
|
||||
crispage.paths.asset[] = "/user/assets"
|
||||
crispage.paths.asset[] = "/core/app/assets/class"
|
||||
crispage.paths.action[] = "/user/actions"
|
||||
crispage.paths.action[] = "/core/actions"
|
||||
|
@ -29,15 +29,10 @@ crispage.dev.smtp_debug = 0
|
||||
crispage.dev.disable_exception_handling = true
|
||||
|
||||
crispage.paths.asset[] = "/core/app/assets/class"
|
||||
crispage.paths.action[] = "/user/actions"
|
||||
crispage.paths.action[] = "/core/actions"
|
||||
crispage.paths.component[] = "/user/components"
|
||||
crispage.paths.component[] = "/core/components"
|
||||
crispage.paths.plugin[] = "/user/plugins"
|
||||
crispage.paths.plugin[] = "/core/plugins"
|
||||
crispage.paths.template[] = "/user/templates"
|
||||
crispage.paths.template[] = "/core/templates"
|
||||
crispage.paths.translation[]= "/user/translations"
|
||||
crispage.paths.translation[]= "/core/translations"
|
||||
crispage.paths.packages = "/packages"
|
||||
crispage.paths.media = "/media"
|
||||
|
0
user/assets/_ph
Normal file
0
user/assets/_ph
Normal file
0
user/etc/_ph
Normal file
0
user/etc/_ph
Normal file
Loading…
Reference in New Issue
Block a user