Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pixel Humain
places
Commits
bb12f2f7
Commit
bb12f2f7
authored
Apr 26, 2022
by
thomas craipeau
Browse files
change createUrl createAbsoluteUrl homeUrl
parent
c7870a7c
Changes
4
Hide whitespace changes
Inline
Side-by-side
PlacesModule.php
View file @
bb12f2f7
...
...
@@ -64,7 +64,7 @@ class PlacesModule extends \yii\base\Module {
// you may place code here to customize the module or the application
Yii
::
app
()
->
homeUrl
=
Yii
::
app
()
->
createUrl
(
$this
->
id
);
Yii
::
$
app
->
homeUrl
=
Yii
::
$
app
->
urlManager
->
createUrl
(
$this
->
id
);
//Apply theme
$themeName
=
$this
->
getTheme
();
...
...
controllers/CoController.php
View file @
bb12f2f7
...
...
@@ -35,6 +35,6 @@ class CoController extends CommunecterController {
return
$this
->
renderPartial
(
"../default/index"
);
else
return
$this
->
render
(
"../default/index"
);
//$this->redirect(Yii::app
()
->createUrl( "/".Yii::$app->params["module"]["parent"] ));
//$this->redirect(Yii::
$
app
->urlManager
->createUrl( "/".Yii::$app->params["module"]["parent"] ));
}
}
controllers/DefaultController.php
View file @
bb12f2f7
...
...
@@ -25,7 +25,7 @@ class DefaultController extends CommunecterController {
public
function
actionIndex
()
{
/*if( @Yii::$app->params["module"]["parent"] && !@Yii::$app->params["module"]["overwrite"][Yii::app()->controller->id][ Yii::app()->controller->action->id ] ){
$this->redirect(Yii::app
()
->createUrl( "/".Yii::$app->params["module"]["parent"]."/".Yii::app()->controller->id."/".Yii::app()->controller->action->id ));
$this->redirect(Yii::
$
app
->urlManager
->createUrl( "/".Yii::$app->params["module"]["parent"]."/".Yii::app()->controller->id."/".Yii::app()->controller->action->id ));
}*/
if
(
Yii
::
$app
->
request
->
isAjax
)
...
...
views/error/error.php
View file @
bb12f2f7
...
...
@@ -59,7 +59,7 @@ font-family: "Homestead";
<br>
<?php
echo
Yii
::
t
(
"common"
,
"Check the URL you entered for any mistakes and try again."
,
null
,
Yii
::
app
()
->
controller
->
module
->
id
);
?>
<br>
<a
href=
"
<?php
echo
Yii
::
app
()
->
createUrl
(
'/'
.
$this
->
module
->
id
);
?>
"
class=
"btn btn-red btn-return"
>
<a
href=
"
<?php
echo
Yii
::
$
app
->
urlManager
->
createUrl
(
'/'
.
$this
->
module
->
id
);
?>
"
class=
"btn btn-red btn-return"
>
<?php
echo
Yii
::
t
(
"common"
,
"Return home"
,
null
,
Yii
::
app
()
->
controller
->
module
->
id
);
?>
</a>
</div>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
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 comment