hi guys, i find a problem in the Yii2
when i use this
<?php $this->beginContent(’@backendThemes\adminlte\views\layouts\main.php’); ?>
i get this error when this try use Yii::getAlias()
Invalid Parameter – yii\base\InvalidParamException
public function renderFile($viewFile, $params = [], $context = null)
{
$viewFile = Yii::getAlias($viewFile);
but in this case (the only diference is in the / )
regards, carlos
sorry for my english thanks
<?php $this->beginContent(’@backendThemes/adminlte/views/layouts/main.php’); ?>
this work perfectly
i see in the file BaseYii.php
and this only see if exist (’/’) but no ‘\’
public static function getAlias($alias, $throwException = true)
{
if (strncmp($alias, '@', 1)) {
// not an alias
return $alias;
}
$pos = strpos($alias, '/');
any sugestions for this case or only work using / ?
my suggestion is add a function for replace \ to /
sorry for my english thanks
regards,carlos