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.
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.
Implementing a role based access control is a very easy process and you can even load your roles from the database if you want.
In Yii 1.x, there was a built in widget CStarRating
based on the jquery star rating plugin. There exists no prebuilt solution in Yii2, however the same concepts can be extended using any jquery plugin.
You have a 'Category' model with Id, Name and Visibility (boolean, where 0 = Public, and 1 = Private).
It is quite simple, but I am sure this small tutorial will help more than one of you out there :)
I wrote about this on my blog, but wanted to post it here too.
To generate excel by query content, and download through any controller. You also can bind cssClass to header/odd/even rows. As for header, you even can set cssClass for each column.
$this->export2excel($excel_content,$excel_file);
in your controller.
We all need SEO friendly URLs for our projects. its not always good to call route with params so we can generalise it for all models using a common function.
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.
Sometimes the App needs a nicer look & feel, so its necessary to organize the assets for this and Yii can help a lot to make it easy. In this article I provide tips for handling multiple "Designs". I use these three features:
Personalmente trovo che la versione "portable" sia molto più semplice da aggiornare, ed io tengo sempre costantemente aggiornato TUTTO il parco software relativo al mio webserver.
suppose to have in Mongo a collection "user" like:
If you're using a lot of bower and npm assets with Yii 2.0 you might encounter long running composer update
tasks.
So, you have installed a brand new Yii 2 app (basic) or (advanced). Here are a few tips for Apache web server users to get things running more secure and better with your yii2 app.
There are numerous usability problems:
This How-To is useful if you are planning to move the Yii vendor directory outside the default location.
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.
I am still new to composer and packagist, so I want to share how I am creating the pdf files because for me was not as simple as it should be.