Please note, that this article will be updated regularly as I have more and more snippets so come back in a few weeks
This is as an extension of this wiki by Kartik V which shows to make different enableAutoLogin cookies for frontend and backend.
I am writing this guide because I struggled to find a resource that included ALL of the necessary steps to completely separate the frontend from the backend. After reading guides like Configuring different sessions for backend and frontend in yii-advanced-app and [yii2 configuring d...
I have read http://www.yiiframework.com/wiki/24/creating-a-dependent-dropdown/ (Dependen Dropdown Yii1), but I can't implement it in Yii2 because Yii2 does not have built-in AJAX functionality hem.. I searched about it and came across this post
1. Create Extension in yii2.
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.
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.
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...
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.
It is quite simple, but I am sure this small tutorial will help more than one of you out there :)
this is my way for embed js code block in view file:
We are running one frontend running NGINX and several app servers running Apache2. There are several issues we have come across but right now I'll be documenting one of them. I'll be completing this article when I get more time.
An example of customizing the Yii GridView is mentioned here. You can easily override Bootstrap or other styling defaults by changing the GridView default options.
// In Yii 1.x $form = $this->beginWidget('CActiveForm', [
'id' => 'order-search-form', 'method' => 'get',
echo $form->textInput($searchModel, 'id');
echo CHtml::submitButton('Find', ['class' => 'btn btn-primary']);