grep -Hrn 'texttosearch' /opt/lampp/htdocs/projectfolder/directory
grep -R --exclude-dir={css,js,img,lang} 'texttosearch' /opt/lampp/htdocs/projectfolder/directory
mysql -u root -ppassword databasename < myfile.sql
| Add below code in your Extension controller file. | |
| $GLOBALS['TSFE']->set_no_cache(); |
| Add Below line in your typo3 extension controller file. | |
| $GLOBALS['TSFE']->getPageRenderer()->addJsFooterFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath('extension_key') . 'Resources/Public/javascript/yourjsfile.js',$compress = FALSE, $forceOnTop = FALSE, $allWrap = ''); | |
| -- Change Extension key and your JS file path. |
| in typo3conf/LocalConfiguration.php file search for 'displayErrors'. | |
| and set 'displayErrors' => 1, | |
| Its done. | |
| Now Error message will display at frontend. |
| $country_m = $_REQUEST['country']; | |
| $statu_m = $_REQUEST['state']; | |
| $city_m = $_REQUEST['city']; | |
| $query_args = array( | |
| 'role' => 'vendor', | |
| 'meta_query' => array( | |
| 'relation' => 'AND', | |
| array( | |
| 'key' => 'country', |
| go to htdocs directory and run: | |
| composer create-project --prefer-dist laravel/laravel laravel | |
| php artisan serve | |
| Go to | |
| App\Providers\AppServiceProvider | |
| add below line at the begining. | |
| use Illuminate\Support\Facades\Schema; | |
| and in function boot add: |
| composer require "santigarcor/laratrust" | |
| Then in your config/app.php add the following to the providers array: | |
| Laratrust\LaratrustServiceProvider::class, | |
| add the following to the aliases array: | |
| 'Laratrust' => Laratrust\LaratrustFacade::class, | |
| Run the next command to publish all the configuration files: | |
| php artisan vendor:publish --tag="laratrust" | |
| this will generate config\laratrust.php and \config\laratrust_seeder.php |
| <?php | |
| ..... | |
| use Illuminate\Http\Request; | |
| class LoginController extends Controller | |
| { | |
| ..... | |
| /** | |
| * Logout trait |
| create file in App/Http/Requests/CsvImportRequest.php | |
| <?php | |
| namespace App\Http\Requests; | |
| use Illuminate\Foundation\Http\FormRequest; | |
| class CsvImportRequest extends FormRequest | |
| { | |
| /** |
| ## Magento 1 + SampleData | |
| gunzip magento-sample-data-1.9.2.4-2016-10-11-07-38-13.tar.gz | |
| tar xf magento-sample-data-1.9.2.4-2016-10-11-07-38-13.tar | |
| sudo apt-get update && \ | |
| sudo apt-get install -y git wget unzip | |
| git clone https://github.com/OpenMage/magento-mirror.git ./ ; |