Commit bb12f2f7 authored by thomas craipeau's avatar thomas craipeau
Browse files

change createUrl createAbsoluteUrl homeUrl

parent c7870a7c
......@@ -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();
......
......@@ -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"] ));
}
}
......@@ -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)
......
......@@ -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>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment