Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ldy
/
phwoolcon
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b7c4d71f
authored
Sep 14, 2022
by
yeran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
1 parent
a1ee23a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
composer.json
src/Router.php
composer.json
View file @
b7c4d71
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
"description"
:
"Phalcon"
,
"description"
:
"Phalcon"
,
"keywords"
:
[
"phwoolcon"
],
"keywords"
:
[
"phwoolcon"
],
"type"
:
"library"
,
"type"
:
"library"
,
"version"
:
"1.0.
9
"
,
"version"
:
"1.0.
10
"
,
"license"
:
"proprietary"
,
"license"
:
"proprietary"
,
"authors"
:
[
"authors"
:
[
{
{
...
...
src/Router.php
View file @
b7c4d71
...
@@ -176,7 +176,7 @@ class Router extends PhalconRouter implements ServiceAwareInterface
...
@@ -176,7 +176,7 @@ class Router extends PhalconRouter implements ServiceAwareInterface
//采用的是原来传入函数形式的话则执行后面的404(在我的电脑上显示404,原因是我的访问地址经过了ld,重写apache规则后无404);
//采用的是原来传入函数形式的话则执行后面的404(在我的电脑上显示404,原因是我的访问地址经过了ld,重写apache规则后无404);
$module
=
$router
->
getModulename
();
$module
=
$router
->
getModulename
();
if
(
!
empty
(
$module
))
{
if
(
!
empty
(
$module
))
{
$moduleDefinition
=
MODULES_PATH
.
'/'
.
$module
.
'/Module.php'
;
$moduleDefinition
=
MODULES_PATH
.
'/'
.
ucfirst
(
$module
)
.
'/Module.php'
;
if
(
is_file
(
$moduleDefinition
))
{
if
(
is_file
(
$moduleDefinition
))
{
$moduleClass
=
'Lestore\\'
.
ucfirst
(
$module
)
.
'\\Module'
;
$moduleClass
=
'Lestore\\'
.
ucfirst
(
$module
)
.
'\\Module'
;
$moduleObject
=
new
$moduleClass
;
$moduleObject
=
new
$moduleClass
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment