Most website developers tend to ignore caching without realizing that it can harm their applications. A one-second delay in access time can mean you're losing customers or users to competitors. Yii2 supports caching in a variety of methods. Supports fragment caching, data caching, page caching, and dynamic content. Cache storage components can be exchanged without having to change the code that uses the cache. In this article, we will make a comparison of cache speeds in several methods....
Composer
[yii2] Gii CRUD Template for One Page Ajax
05 October 2021
Gii is an extension, which provides a web-based code generator to generate models, forms, modules, CRUDs, and so on. By default, the following generators are available Generator Model - Generates an ActiveRecord class for a specified database table. CRUD Generator - Generates controllers and displays that implement CRUD operations (Create, Read, Update, Delete) for the specified model. Controller Generator - Generates a new class of controllers with one or more controller actions and a...
Real-Time Application Dashboard with Yii2, Node.js, MySQL and Chart.js
23 September 2021
In this article we will create a dashboard that can display graphics from data in real-time. The data we use as simulations is the population of a city. If you update your resident data, add or delete it, the graphic will change in real-time without the need to refresh from the page. Before we begin, we need to prepare: Webserver is installed, see How to Configure Virtual Host XAMPP in Windows 10. Yii2 is installed, see How to Install Yii2 Advanced via Composer. Node.js is already installed,...
[Yii2] Create a RESTful API
13 September 2021
An API is software that integrates the applications we create with other applications. The purpose of the creation is to share data between applications that have been integrated. The RESTful API/REST API is the application of the API(Application Programming Interface). REST(Representational State Transfer)is an architecture of communication methods that uses the HTTP protocol for data exchange where this method is often applied in application development. With the aim to make the system have...
[yii2] How to create new extensions without version or Git controls
25 May 2021
Using Git in building extensions is great. When using Git, you must load the extension through Composer. Likewise when updating or correcting errors that occur. Of course, this will be troublesome, when the extension made is still in the development stage. To avoid this, we can use composers locally without version or Git controls. So that every code change made can immediately function without the need to update and commit changes through composer or git. Here are the steps to do so: 1....
How to Install Yii2 Advanced via Composer
10 April 2021
The main reason for migrating to Yii2 Advanced Template is for the implementation of user management features such as listing, login, exit, and password reset. Yii2 Advanced Template also has front-end and back-end web applications for end-users and administrators. However, this can also be expanded—for example for dedicated moderators or APIs, although there are other ways to integrate these features in a single app. Here is a chart showing the main differences between Yii2 basic and...