Post List

Add A New Post

Showing 3 out of total 13
how to develop multiple yii3 apps in the same folder just like yii2 advance demo
Author : Anonymous Publish Time : 17 Nov 2023 02:45:09


yes, this site was developed by Yii3


if you want to  develop multiple yii3 apps in the same folder,just like yii2 advance demo

we have a solution

the idea is filter the url accessed  to the different app(instance) and load different config files

1. move the yii3 demo config files to a subfolder of config ,maybe frontend

if you want to add backend just copy frontend files to backend

if you need the app frontend and backend ,the config should includ 2 subfolders 

config/frontend, config/backend

and modify the .merge-plan.php file in each app config folder


return [
    '/' => [


return [
    '/frontend (or othe app name)' => [

make sure it can load the right vender libs


2.modify the public/index.php to forward access to the different apps,

such as https://www.tianexcom/backend to load config/backend config files,

$request_uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);

$_ENV['YII_ENV'] = '/frontend';
if (!empty($request_uri)) {
    if (str_starts_with($request_uri, '/backend')) {
        $_ENV['YII_ENV'] = '/backend';



to do this, you also need to mody the 

 protected function createDefaultConfig(): Config
        return ConfigFactory::create(new ConfigPaths($this->rootPath, 'config'.$this->environment), $this->environment);



如何在TiNex开店? how to open a store in
Author : Anonymous Publish Time : 14 Nov 2023 17:51:07

如果你想在本平台开店,请联系微信或者whatsapp : +8615669001573

  how to open a store in

if you want to open store and sell your products in please contact 

wechat/whatsapp  : +8615669001573