- Yii v1 for beginners
- Yii v1 for beginners 2
- Yii v2 snippet guide I
- Yii v2 snippet guide II
- [Yii v2 snippet guide III](https://www.yiifram...
Articles are separated into more files as there is the max lenght for each file on wiki.
Yii2 introduces the BootstrapInterface to ease our application initialization tasks, whether they are composer
based or Application bootstrap (do not mistaken with Bootstrap CSS Framework) based tasks. On this article, I am going to explain how to use it on y...
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.In Yii1 I used to have my own components under the components folder of the structure, now with namespacing this is a little bit different.
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.
Note the tag {{homeUrl}}
will be dynamically replaced at runtime.
The tips here are for advanced usages of composer and its assumed you have read about using composer and have a knowledge of your vendor packages to be updated. Let's consider, you want to update only one specific yii2 vendor library, without updating all the other extension packages?
The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs.
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.
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.
Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.
This tutorial need extension mdmsoft/yii2-upload-file. Follow the intruction to install.
After installation done, create controller
and action
First of all, install yii2 basic template according below link:
I leverage Kartik's notification widgets.
I was playing around with another PHP framework which I didn't really liked anyway but it had simple and nice integration for PHP built in web server so I decided to write one for Yii (since this is my primary PHP framework)
A Yii Framework 2 component for using assets in different environments (Local/CDNs)
I just chased my tail around for a bit today. I got lost with setting the status of all inputs, and banging my head on why the "validate" function just wasn't working.