Show Relative time in Yii2 such as 1 Hour ago
We can use asRelativeTime() method to display relative time such as 1 Hour ago or 20 seconds ago.
We can use asRelativeTime() method to display relative time such as 1 Hour ago or 20 seconds ago.
We can server all requests to a Yii application using a single controller action with the help of catchAll property.
The solution to avoid the Form resubmission problem is to follow a POST-REDIRECT-GET (PRG) pattern.
Implement drag and drop reordering of the table rows using jQuery UI sortable and save their updated positions to the database using AJAX.
Yii2 provides registerJsFile() function to add an external JavaScript file directly to the view.
Solution to the Composer cannot allocate memory or composer process killed error is installing the library locally and then copying its references from composer.lock files to the production and run composer install on production.