Difference between #1 and #2 of
Move sources to src

Revision #2 has been created by samdark on Aug 27, 2019, 9:43:50 PM with the memo:

Fixed configuring paths since just setting aliases was not enough
« previous (#1)

Changes

Title unchanged

Move sources to src

Category unchanged

How-tos

Yii version unchanged

2.0

Tags changed

structure,application structure

Content changed

[...]
```php
$config = [
// ...
'basePath' => dirname(__DIR__) . '/src',
// ...
 
    'aliases' => [
 
        '@vendor
'runtimePath' => dirname(__DIR__) . '/vendorruntime',     '@runtime'vendorPath' => dirname(__DIR__) . '/runtime',
 
        // ...
 
    ],
vendor',    
// ...
];
[...]
// ...
'basePath' => dirname(__DIR__) . '/src',
// ...
 
    'aliases' => [
 
        '@vendor' => dirname(__DIR__) . '/vendor',
 
        '@runtime' => dirname(__DIR__) . '/runtime',
 
        // ...
 
    ]
'runtimePath' => dirname(__DIR__) . '/runtime',
 
    'vendorPath' => dirname(__DIR__) . '/vendor'
, // ... ]; ``` That's it now you have both console and web application source code in `src`.
11 0
6 followers
Viewed: 14 884 times
Version: 2.0
Category: How-tos
Written by: samdark
Last updated by: samdark
Created on: Aug 20, 2019
Last updated: 5 years ago
Update Article

Revisions

View all history