Monday, 15 July 2013

php - Yii: Want to separate the vendor folder from the application folder -


I have a shared hosting server, which has been installed with multiple Yii 1.1 applications running at the same time. What I have done has been moved to the normal Wi 1.1 framework folder above the root of the web and index.php has been modified in all Yii applications to get framework files from that folder.

But with Yii 2.0 I, I am not able to do that I modified to be transferred to the vendor folder out of the application and then index.php file point to the new location, but the dependencies Which are failing.

Has anyone set up their application like this?

Example

  • Folder 1
  • Folder 2
  • public_html or web Or www

    • yii application 1
    • yii application 2
  • Vendors

In your config file you point to your new vendor A seller can specify the path to the location, therefore

  $ config = ['seller page' = & gt; 'Relative / path / to / yours / vendors / folder', 'component' = & gt; [...] // ... other configuration  

]

You need to modify your composer, intending to update components using composer Is a complete description.


No comments:

Post a Comment