I’m using kartik export menu and it’s showing the error below. PHP Strict Warning – yiibaseErrorException kartikgridGridView and kartikbaseBootstrapTrait define the same property ($bsVersion) in the composition of kartikgridGridView. This might be incompatible, to improve maintainability consider …
Passing the previous page title to a custom checkout field in Woocommerce
With Woocommerce, is it possible to pass the previous page title to a custom checkout fields?
How to disable Gutenberg / block editor for certain post types?
WordPress added Gutenberg / block editor in its 5th version and it’s enabled by default for Post and Page post types. It might be enabled by default for all custom post types in close future so as a WordPress developer I want to know how to disable this editor for my own custom post types? I want to kee…
Laravel array_only with dot notation
Laravel has a helper that allows you to get only the keys you want like so: https://laravel.com/docs/5.6/helpers#method-array-only $array = [‘name’ => ‘Desk’, ‘price’ => 100, ‘orders’ => 10]…
How to get messages sent with the `array` mail driver?
Starting from version 5.7 Laravel suggests to use the array driver for Mail during testing: Unfortunately, the documentation tells nothing about this driver. According to the source code, the driver …
HTML php localhost database retrieval
I was trying to get data from the database but it won’t display correctly. Note: I used old project file I did back in college prev semester which is working. But implementation on the new project won’…
Additional field on checkout for specific payment gateway in Woocommerce
I have a custom Woocommerce payment gateway and I need to add additional field on the checkout when the payment is selected. Basically, when the users click the custom payment gateway a “select” field should appear and they have to choose something from the select field. I have attached a screensh…
Symfony4 use external class library as a service
I have a little external library that expose many classes. Into my symfony4 project I would like to declare my class from vendor, as a service with autowire and public. So I have include my library …
Error: Undefined class constant ‘MYSQL_ATTR_USE_BUFFERED_QUERY’
Currently I’m getting this kind of message and I don’t know how to fix it. The command php -m tells me that PDO and pdo_mysql are there. I’m using Drupal-8 with php7.1.20 on Ubuntu 18.04.1 LTS [Tue Sep 04 09:27:48.210064 2018] [php7:notice] [pid 2183] [client 10.56.99.1:53758] Error: Undefin…
find active records from table based on date time in php and sql server
I need to fetch active records from my table. A record is active means it is not expired and the expiration time is 2 minutes after record is generated. I am using sql server database. Here is the structure for my table And my code is as follows I need the condition for DateGenerated as How can I implement th…