Skip to content
Yii2 Blog by Innovfide

Illuminating your learning path

  • Home
  • Contact

Show Relative time in Yii2 such as 1 Hour ago

yii2 / By Prasad Diwan

We can use asRelativeTime() method to display relative time such as 1 Hour ago or 20 seconds ago.

Add Yii2 Application in Maintenance Mode or serve all requests to Yii application using a single action

yii2, Maintenance / By Prasad Diwan

We can server all requests to a Yii application using a single controller action with the help of catchAll property.

Avoiding Form Resubmission Problems

Best Practices, Security, yii2 / By Prasad Diwan

The solution to avoid the Form resubmission problem is to follow a POST-REDIRECT-GET (PRG) pattern.

Implement jQuery Sortable in Yii2

Design, External Libraries, jQuery / By Prasad Diwan

Implement drag and drop reordering of the table rows using jQuery UI sortable and save their updated positions to the database using AJAX.

Add an external JavaScript library to a view in Yii2 that depends on jQuery Asset

Design, External Libraries, yii2 / By Prasad Diwan

Yii2 provides registerJsFile() function to add an external JavaScript file directly to the view.

Solution: Composer cannot allocate memory or composer process killed

composer, yii2 / By Prasad Diwan

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.

Posts pagination
← Previous Page 1 2

Search the Blog

Recently Published

  • Redirect to the same or different controller-view after a POST request
  • How to remove Bootstrap 3 and install Bootstrap 4 in the yii2 basic template?
  • Image Upload by overriding model’s parent save method
  • Yii2 ActiveForm Inputs and Custom Inputs
  • Refer to the controller within view in yii2

Best VPS Server Hosting for Yii2 Applications

DigitalOcean Referral Badge

Popular Searches

actionbuttons ActiveForm bootstrap3 bootstrap4 bootstrap4 inputs controller controller in view custom inputs custom view error handeling form form inputs gridview image upload input validation listview method overriding model export model to array number input pagination redirect relativetime server-side errors tips and tricks transactions view

Posts by Categories

  • Best Practices (5)
  • composer (2)
  • Design (6)
  • External Libraries (3)
  • Form (1)
  • Form Inputs (1)
  • jQuery (1)
  • Maintenance (1)
  • Security (2)
  • yii2 (15)
Copyright © 2025
Innovfide Technologies