Sometime we need to display numbers of items per page with their counting as a serial number.
Sometime we need to display numbers of items per page with their counting as a serial number.
If you are testing your app and use urlManager in your config, sometimes you will find a problem: you want to test your site independing from urlManager settings. in that way you need to extend your WebTestCase class by this method:
composer update
does not fetch any new packages (even though the source is updated)composer update
.composer update
earlier, but it was partially done, before you lost network connectivity, and you cannot refresh packages anymore.Here I am describing how you can install and update Yii in WAMP sever.
Ok, you have installed a Yii 2 basic or advanced app for the first time and completed the post install steps. You have picked up a few extensions to install for the first time as well. You would already see a composer.lock
file in your application root folder.
I can see many questions regarding configuring the path using Windows OS. I could hardly get the right information about it. The cook book has defined for Linux. So I would like to share my idea on it. To configure the Yii path using Windows OS,
You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.
My CMS supports multiple sites using one code base therefore the db connection can only be configured by detecting the site's domain.
The yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.
I could make this work following same useful tips from this post.
This wiki will explain how you can use the Field range extension with multiple Bootstrap form layouts (vertical or horizontal). You maybe aware, that the yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.
Simple Yii Script for performing CRUD operations:
Once you have installed and configured the rights extension in your application, you can change the table name from 'User' to any table name you want and similarly for 'username' column to any other column name.
In this wiki I will show how could use a TbActiveForm for changing the old password with help of old, new and repeat password features.
In this wiki I will show how to Disallowing login from multi places. User can login or access their account at time, only single place.
In this wiki I will show how to display data from two tables in Bootstrap TbGridView using dataProvider.
Hi Friends, This tutorial may be help us create the custom drop-down menu using CHtml::dropDownList
Hi Friends, In this tutorial, how to update the sum of all the button data-price value using jquery, Just Follow three step and it's work easily.I hope It may be some helpful to others.
Hi Friends, In this tutorial you can use the eajaxupload-extension ,