Tags:

Yii2 Kartik-v gridView widget. How to pass # from ‘formatUrl’ to url


I have gridView with filter option and my need is to open specific URL after filter applies. I am using ‘filterUrl’ option, but trick is there that instead of # in browser he puts out %23. I am in big …

Tags:

Laravel 7 Illegal offset type


I am having an error when I try to when updating multiple names of filters. public function update(Request $request, Filter $filter) { $filters = collect([$request->filters]); $filters->…

Tags:

Issue regarding text redirect which shouldn’t occur


I have an HTML text field, and a post button, which you click to make a post. Now, to send this post to the database, I made a separate file called post.php to handle the PHP and MySQL code for that, …

Tags:

Get time difference (in Milliseconds accuracy) from remote server API [closed]


Let’s say from current server at timestamp 1600000000.123 (123 is milliseconds part) we do initialize ping to external server’s API server-time endpoint, which says that server-time at that moment (…

Tags:

Typo 8.7 / External Import – Error when importing with external import in CLI in custom extbase extension


I’ve been working on an extension that import a JSON, make a PHP array of what is needed and import it with external_import. This is meant to be a command that will be run with a Cronjob. At the …

Tags:

Nothing happening after get JSON request


I am calling an API to return some data. I can see in dev tools the response is 200 successful, and in the network tab can see the returned data. The problem I have is with displaying the data in my …

Tags:

PHP form check if fields are empty if not change value in mysql table


Could someone help me with this code!!! So I’m trying to do a change user info part on my website, there’s everything working except the change username part. In this part I have to check if the …

Tags:

Get current url path


How many examples I have not seen, all are essentially the same, and perform the same thing. Let’s take a look at one of them. Route::current()->uri() We have url https://example.com/test and we …

Tags:

Get latest from array of microtimes


I am looping through a list of files and grabbing their modified date, which is returned in microtime format: int(1633986072) int(1633971686) int(1634014866) int(1634000474) I can loop through these, …

Tags:

Google Translate has stopped working on Chrome, Safari and Opera (still works on Firefox)


Some time ago the Google section translate function has stopped working on most browsers (excluding Firefox), resulting in blank page with “about:blank#blocked” address when someone click on …