Skip to main content

How to Change Composer Vendor Folder Location in Codeigniter 3

Here is easy step to change your location of composer vendor folder
  • Open composer.json  and add this script
  • "config": {
       "vendor-dir": "vendor/"
    }
    
  • Then set to your preferred location
  • "config": {
       "vendor-dir": "application/vendor/" // preffered location by codeigniter
    }
    
  • Update your composer
  • composer update
    

Comments

Popular posts from this blog

Automatic Refresh API Access Token with Retrofit and Okhttp Authenticator

This tutorial will be tell how to use Okhttp Authenticator with Retrofit. This authenticator method is usefull when we having a case like : Re-authorization without a user interaction (login) Requesting new API access token with refresh token This tutorial will cover the second case ( access token  dan  refresh token ) which is commonly use. The case will have scenario like this : Normal API request. When token or API key expired, API will return 401. Okhttp Authenticator will intercept the process. Okhttp Authenticator will requesting new token with refresh token. New token receive and API request will be reloaded automatically. So, first create ApiAdapter class which is a class that contain retrofit singleton. In this class add method getAdapter(). public class ApiClient {     public static Retrofit getAdapter() {         if (retrofit==null) {            final OkHttpClient.Builder httpClient = new OkHttpClient.Builder();            httpClient.addInterceptor(new Intercepto

How to add host ip address on Android Virtual Device (AVD) or Genymotion using Android Studio

Select  terminal Enter this script AVD adb shell echo '10.0.2.2 hostname' /system/etc/hosts Genymotion adb shell echo '10.0.3.2 hostname' /system/etc/hosts Enter this script to check if the host successfully added adb shell cat /system/etc/hosts Then terminal will print the hosts file list  Enter http://hostname from emulator browser to check if the host can be accessed