D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
epaji.com
/
public_html
/
hindiusa
/
config
/
Filename :
web.php
back
Copy
<?php $params = require __DIR__ . '/params.php'; $db = require __DIR__ . '/db.php'; $config = [ 'id' => 'basic', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'aliases' => [ '@bower' => '@vendor/bower-asset', '@npm' => '@vendor/npm-asset', ], 'components' => [ 'request' => [ // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 'cookieValidationKey' => 'ypCeJvAwc80SVSLfdoUUIo8eaAgDcniR', ], 'cache' => [ 'class' => 'yii\caching\FileCache', ], 'user' => [ 'identityClass' => 'app\models\Users', 'enableAutoLogin' => true, ], 'errorHandler' => [ 'errorAction' => 'site/error', ], 'mailer' => [ 'class' => 'yii\swiftmailer\Mailer', // send all mails to a file by default. You have to set // 'useFileTransport' to false and configure a transport // for the mailer to send real emails. 'useFileTransport' => false, 'transport' => [ 'class' => 'Swift_SmtpTransport', 'host' => 'smtp.gmail.com', 'username' => 'noreply.hindiusa@gmail.com', 'password' => 'Nriwings@2022', 'port' => '587', 'encryption' => 'tls', ], ], 'log' => [ 'traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [ [ 'class' => 'yii\log\FileTarget', 'levels' => ['error', 'warning'], ], ], ], 'db' => $db, 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'enableStrictParsing' => false, 'rules' => [ '/<url:\w+>' => 'site/school', '/' => 'site/school', '/<url:\w+>/about-us' => '/about-schools/about-us', 'about-us' => '/about-schools/about-us', '/<url:\w+>/photo-gallery' => '/image-galleries/photo-gallery', 'photo-gallery' => '/image-galleries/photo-gallery', '/<url:\w+>/video-gallery' => '/video-galleries/video-gallery', 'video-gallery' => '/video-galleries/video-gallery', '/<url:\w+>/our-events' => '/events/our-events', 'our-events' => '/events/our-events', '/<url:\w+>/our-news' => '/news/our-news', 'our-news' => '/news/our-news', '/<url:\w+>/our-blogs' => '/blogs/our-blogs', 'our-blogs' => '/blogs/our-blogs', '/<url:\w+>/blog-details' => '/blogs/blog-details', 'blog-details' => '/blogs/blog-details', '/<url:\w+>/event-details' => '/events/event-details', 'event-details' => '/events/event-details', '/<url:\w+>/news-details' => '/news/news-details', 'news-details' => '/news/news-details', '/<url:\w+>/contact-us' => '/schools/contact-us', 'contact-us' => '/schools/contact-us', '/<url:\w+>/our-teachers' => '/teachers/our-teachers', 'our-teachers' => '/teachers/our-teachers', '/<url:\w+>/teacher-details' => '/teachers/teacher-details', 'teacher-details' => '/teachers/teacher-details', '/<url:\w+>/our-testimonials' => '/testimonials/our-testimonials', 'our-testimonials' => '/testimonials/our-testimonials', '/<url:\w+>/our-notices' => '/notices/our-notices', 'our-notices' => '/notices/our-notices', '/<url:\w+>/page-details' => '/extra-pages/page-details', 'page-details' => '/extra-pages/page-details', ], ], ], 'params' => $params, ]; 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' => ['127.0.0.1', '::1'], ]; $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'], ]; } return $config;