Search
 
SCRIPT & CODE EXAMPLE
 

PHP

index.php when deploying

<?php
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');

require(__DIR__ . '/vendor/autoload.php');
require(__DIR__ . '/vendor/yiisoft/yii2/Yii.php');
require(__DIR__ . '/common/config/bootstrap.php');
require(__DIR__ . '/frontend/config/bootstrap.php');

$config = yiihelpersArrayHelper::merge(
    require(__DIR__ . '/common/config/main.php'),
    require(__DIR__ . '/common/config/main-local.php'),
    require(__DIR__ . '/frontend/config/main.php'),
    require(__DIR__ . '/frontend/config/main-local.php')
);

$application = new yiiwebApplication($config);
$application->run();
Comment

backend/index.php when deploying

<?php
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');

require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
require(__DIR__ . '/../common/config/bootstrap.php');
require(__DIR__ . '/../backend/config/bootstrap.php');

$config = yiihelpersArrayHelper::merge(
    require(__DIR__ . '/../common/config/main.php'),
    require(__DIR__ . '/../common/config/main-local.php'),
    require(__DIR__ . '/../backend/config/main.php'),
    require(__DIR__ . '/../backend/config/main-local.php')
);

$application = new yiiwebApplication($config);
$application->run();
Comment

PREVIOUS NEXT
Code Example
Php :: laravel faker realtext 
Php :: remove a specific element from array inside a loop php 
Php :: require and include difference in laravel 
Php :: Laravel image validation just reloads page and does nothing 
Php :: laravel sql illegal collation 
Php :: phpImage 
Php :: woocommerce disable payment method if coupon appied and total is 0 
Php :: create request php-salesforce-rest-api 
Php :: cách nhúng php vào html 
Php :: $var = 1 / 2; in php 
Php :: Définir un nombre maximum de mots sur les titres des publications WordPress 
Php :: hardening PHP7 
Php :: php function return type self 
Php :: Get authors who has posts in category - WordPress 
Php :: laravel tips 
Php :: convert code python to php 
Php :: word limit in php 
Php :: php get docblock with reflection 
Php :: laravel multiple status for a attribute in laravel migration 
Php :: ph address format 
Php :: how to explode results from multi select form submitted 
Php :: laravel make request 
Php :: php even odd 
Php :: php add km to longitude 
Php :: fat-free captcha plugin 
Php :: Laravel : Pass dynamic variables to routes 
Php :: php tree function parrent_id 
Php :: validation ignored rules 
Php :: how to decode json and combine again in php 
Php :: get categories only assigned to post Wordpress 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =