Yii2 Helpers Guide

By: Prem Tiwari | Last Updated: | In: Yii framework


Hello friends hope you are doing good, today i am going to share Yii2 Helpers Guide that will help you in your next yii2 application coding tasks. Yii2 framework provides several helper classes that help …

Sql User Table Schema For Yii2 Starter Kit

By: Prem Tiwari | Last Updated: | In: Mysql, Yii framework


Are you going to develop your web application in yii2 framwork, then this article will help you. The user table schema is not provided with yii2 starter kit by yii2 framework package. Below is proper …

How to hide frontend/web and backend/web COMPLETELY from url

By: Prem Tiwari | Last Updated: | In: Yii framework


If your only goal is to achieve not ever seeing /frontend/web or /backend/web, even without using .htaccess rules, you could go for the following. Before procees make sure your directory structure would look like : …

How to customize the Gridview In Yiiframework 2.0

By: Prem Tiwari | Last Updated: | In: Yii framework


Yii2 GridView on steroids. A module with various modifications and enhancements to one of the most used widgets by Yii developers. The widget contains new additional Grid Columns with enhanced settings to customize the Gridview …

Form Input Fields in Yii2.0

By: Prem Tiwari | Last Updated: | In: Yii framework


This article will explain the better way to use Form Input Fields in Yii2.0. Folder structure of ‘yii\widgets\ActiveForm’ class is used to create a form and ‘yii\helpers\Html’ class is used to display the different type …

Filters in Yii framework

By: Prem Tiwari | Last Updated: | In: Yii framework


Filters are objects that run before and/or after controller actions.A filter may consist of a pre-filter (filtering logic applied before actions) and/or a post-filter (logic applied after actions). You give it a php function name …

What to Expect from Yii 2.0

By: Prem Tiwari | Last Updated: | In: Yii framework


In this post i will explain What to Expect from Yii 2.0. The latest version of Yii 2 is 2.0.0, released on October 12, 2014. It’s aimed to become a state-of-the-art of the new generation …

CActiveDataProvider With Custom Query

By: Prem Tiwari | Last Updated: | In: Yii framework


In This post i will explain the CActiveDataProvider With Custom Query. CActiveDataProvider everytime to retrieve the data for CGridView. But one of my project needed custom query in criteria and have to show the result …

Integrate ckeditor with Yii framework

By: Prem Tiwari | Last Updated: | In: Yii framework


This extension is used to widget uses CHtml:activeTextArea to create a textarea, and also creates a CKEditor instance and then replaces the textarea with a CKEditor. Download CKEditor from CKEditor extension Requirements This extension was …

Ajax request and json response array in Yii framework

By: Prem Tiwari | Last Updated: | In: Yii framework


In this post i will explain the easy way to get the Ajax request and json response array in Yii framework. The controller will get and process the data then finally It will return the …

Model rules and validation in Yii framework

By: Prem Tiwari | Last Updated: | In: Yii framework


In this tutorial i explain the Model rules and validation in Yii framework which will understand the yii model rules, user defined functions. In yii rules function I added code (of yiiframework) for unique,email,password comparison, …

Url Manager Configuration in Yii framework

By: Prem Tiwari | Last Updated: | In: Yii framework


To change the URL format, we should configure the urlManager application component so that createUrl can automatically switch to the new format and the application can properly understand the new URLs. The complete URL management …

Best PHP Frameworks for web developer

By: Prem Tiwari | Last Updated: | In: Freebies, PHP Tutorial, Yii framework


In this article, we collected some best PHP frameworks. These frameworks which help you develop a web applications. PHP is a server-side scripting language designed for web development but also used as a general-purpose programming …

How to enable the authentication through the mysql database

By: Prem Tiwari | Last Updated: | In: Yii framework


In this tutorialsi explain the easy steps with code snipats which describe How to enable the authentication through the mysql database. The basic skeleton provided by the YII command line application, already includes a rudimentary …

How to enable Ajax form validation

By: Prem Tiwari | Last Updated: | In: Yii framework


Form validation ensures that each and every field in the form has been filled in the required way. No further prelude is required to this topic as Developers would be well aware about the purpose …