'How to run yii applicatioin from repo?

I have a repo where you can clone a yii 1 application. But after I checked everything in. I just wanted to test if you can run the application. So I donwloaded the project and I tried to run the application. But then it fails:

Warning: require_once(C:\xampp\htdocs\websuite_test\protected/vendor/autoload.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\websuite_test\index.php on line 19

So that is correct. Because I don't have the vendor folder. So my .gitignore looks like this:


.vscode/*
!.vscode/launch.json

protected/components/widgets/select2/assets/*
protected/extensions/*
protected/lib/*
themes/*

/.htaccess
/.htpasswd
/.htpasswd.bak6
/protected/.htaccess

#javascript libaries
js/*

# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/

# phpstorm project files
.idea

# netbeans project files
nbproject

# zend studio for eclipse project files
.buildpath
.project
.settings

# windows thumbnail cache
Thumbs.db

# composer vendor dir
vendor/

# composer itself is not needed
composer.phar

# Mac DS_Store Files
.DS_Store

# phpunit itself is not needed
phpunit.phar
# local phpunit config
/phpunit.xml

tests/_output/*
tests/_support/_generated

#vagrant folder
/.vagrant


.protected/vendor/*

assets/*
!assets/.gitignore
protected/runtime/*
!protected/runtime/.gitignore
protected/data/*.db

So my questions are: is this .gitignore file correct? Or are there to much folders in the ignored in the .gitignore file?

And How to install an existing yii 1 project? YOu have to use compose for it anyway, because of the assets folder you have to install?

I can't find the command for installing an existing yii 1 project.

With angular or react you have to do npm install. But how that works with yii 1 project?

Thank you

I did a composer install.

But then I get this error:

CException
Thema map "C:\xampp\htdocs\websuite_test\themes" bestaat niet. (C:\xampp\htdocs\websuite_test\protected\vendor\yiisoft\yii\framework\web\CThemeManager.php:110)

#0 C:\xampp\htdocs\websuite_test\protected\vendor\yiisoft\yii\framework\web\CThemeManager.php(98): CThemeManager->setBasePath('C:\\xampp\\htdocs...')
#1 C:\xampp\htdocs\websuite_test\protected\vendor\yiisoft\yii\framework\web\CThemeManager.php(60): CThemeManager->getBasePath()
#2 C:\xampp\htdocs\websuite_test\protected\vendor\yiisoft\yii\framework\web\CWebApplication.php(257): CThemeManager->getTheme('AdminLTE')
#3 C:\xampp\htdocs\websuite_test\protected\vendor\yiisoft\yii\framework\base\CErrorHandler.php(390): CWebApplication->getTheme()
#4 C:\xampp\htdocs\websuite_test\protected\vendor\yiisoft\yii\framework\base\CErrorHandler.php(340): CErrorHandler->getViewFile('exception', 500)
#5 C:\xampp\htdocs\websuite_test\protected\vendor\yiisoft\yii\framework\base\CErrorHandler.php(357): CErrorHandler->render('exception', Array)
#6 C:\xampp\htdocs\websuite_test\protected\vendor\yiisoft\yii\framework\base\CErrorHandler.php(218): CErrorHandler->renderException()
#7 C:\xampp\htdocs\websuite_test\protected\vendor\yiisoft\yii\framework\base\CErrorHandler.php(131): CErrorHandler->handleException(Object(CException))
#8 C:\xampp\htdocs\websuite_test\protected\vendor\yiisoft\yii\framework\base\CApplication.php(750): CErrorHandler->handle(Object(CExceptionEvent))
#9 [internal function]: CApplication->handleException(Object(CException))


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source