grep -rn '$this->render('
controllers/SberbankController.php:37: return $this->render('index', ['result' => $result]);
controllers/FontAwesomeController.php:11: return $this->render('index');
controllers/SiteController.php:73: return $this->render('index');
controllers/SiteController.php:93: return $this->render('login', [
controllers/SiteController.php:130: return $this->render('contact', [
controllers/SiteController.php:143: return $this->render('about');
controllers/SiteController.php:155: return $this->render('signup', ['signupform' => $signup]);
controllers/AdmLteController.php:28: return $this->render('index', ['dataProvider' => $dataProvider]);
class SitemapController extends Controller
{
public function actionCreate()
{
\Yii::$app->sitemap
->addModel(Item::className())
->addModel(Category::className(), \Yii::$app->db) // Also you can pass \yii\db\Connection to the database connection that you need to use
->setDisallowUrls([
'#url1#',
'#url2$#',
])
->create();
}
}
if (YII_DEBUG) {
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['bootstrap'][] = 'gii';
$config['components']['db']['enableSchemaCache'] = false;
$config['components']['mailer']['useFileTransport'] = true;
}
if (YII_ENV_DEV) {
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = [
'class' => 'yii\debug\Module',
// uncomment the following to add your IP if you are not connecting from localhost.
'allowedIPs' => ['ТУТ ВАШ РЕАЛЬНЫЙ IP ЕСЛИ САЙТ НА ХОСТИНГЕ']
];
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
// uncomment the following to add your IP if you are not connecting from localhost.
//'allowedIPs' => ['127.0.0.1', '::1']
];
}
'gii' => 'yii\gii\Module',
'debug' => 'yii\debug\Module',
'allowedIPs' => ['111.111.111.111'],
// обратите внимание на точку в конце строки
git clone git@github.com:phpnt/yii2-cms.git .
Попробуйте подключить supervisor.