Top Questions

  • 2.11 Years

    • Category : Yii2
    • Location : Chandigarh, India
    • Posted On : Feb 4, 2019

    If you just want to remove packages or extension from the vendor directory you can use composer command:

    composer remove package/name

    For Example:

    composer require 2amigos/yii2-ckeditor-widget (for Installation)
    composer remove 2amigos/yii2-ckeditor-widget (for remove)
  • 5.11 Years

    • Category : Yii2
    • Location : Mohali
    • Posted On : Feb 4, 2019

    This is how to use Gii working on remote server for an yii2 advanced template.

    This is how to use Gii working on remote server for an yii2 advanced template.

    In the frontend config file. Example:

    (your folder)/frontend/config/main-local.php

    Add the following code:
    
    if (!YII_ENV_TEST) {
        // configuration adjustments for 'dev' environment
        $config['bootstrap'][] = 'debug';
        $config['modules']['debug'] = 'yii\debug\Module';
    
        $config['bootstrap'][] = 'gii';
        $config['modules']['gii']=[
          'class' =>  'yii\gii\Module',
          'allowedIPs' => ['<enter your id address>'],  // open https://www.dorcode.com/ip-locator-with-google-map link for your ip address
        ];
    }
    Then open (your folder)/frontend/gii

    In the Backend config file. Example:

    (your folder)/backend/config/main-local.php

    Add the following code:
    
    if (!YII_ENV_TEST) {
        // configuration adjustments for 'dev' environment
        $config['bootstrap'][] = 'debug';
        $config['modules']['debug'] = 'yii\debug\Module';
    
        $config['bootstrap'][] = 'gii';
        $config['modules']['gii']=[
          'class' =>  'yii\gii\Module',
          'allowedIPs' => ['<enter your id address>'],  // open https://www.dorcode.com/ip-locator-with-google-map link for your ip address 
        ];
    }
    
    Then open (your folder)/backend/gii

    Open https://www.dorcode.com/ip-locator-with-google-map click here for your ip address

  • 5.11 Years

    • Category : Php
    • Location : Mohali
    • Posted On : Feb 4, 2019

    After doing all the settings of (https://github.com/akiraz2/yii2-ticket-support/blob/HEAD/docs/getting-started.md) link, you do this:

    1) open your yii directory path '@vendor\akiraz2\yii2-ticket-support\Module.php' file and go to line no. 75:
    
        'imap' => [
            'host' => 'imap.site.com', // enter your email host name. if your hosting on godaddy then some time your host is 'imap.yourdomain.com'; 
            'username' => 'support@site.com', // enter email address
            'password' => '123456789879', // enter your email password
        ]
    
        //public $imap = [];
    
    
    2) and then open https://github.com/akiraz2/yii2-ticket-support/blob/HEAD/docs/README.md link and follow up.