Wiki articles

Showing 61-80 of 147 items.

Yii v2 snippet guide

Created 8 months ago by rackycz, updated 23 days ago by rackycz.

Please note, that this article will be updated regularly as I have more and more snippets so come back in a few weeks

3 0
3 followers
Viewed: 38 567 times
Version: 2.0
Category: Tutorials

Yii2: Configuring different sessions for backend and frontend in Yii Advanced Application Template

Created 5 years ago by hrnair, updated 5 years ago by hrnair.

This is as an extension of this wiki by Kartik V which shows to make different enableAutoLogin cookies for frontend and backend.

3 0
7 followers
Viewed: 36 096 times
Version: 2.0
Category: How-tos

[Guide] How to actually separate Frontend (User) and Backend (Admin) on Yii2 Advanced

Created 5 years ago by Wade Shuler, updated 5 years ago by samdark.

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...

5 1
17 followers
Viewed: 89 858 times
Version: 2.0
Category: How-tos

Debuging variables in Yii2

Created 5 years ago by johonunu, updated 5 years ago by johonunu.

This tutorial is explained following "basic" application structure.

4 1
7 followers
Viewed: 26 556 times
Version: 2.0
Category: Tips

Escape from Default's Yii2 Delete Confirm Box

Created 6 years ago by Antonio Ramirez, updated 4 years ago by Cozumel.

If you started playing with Yii2's new GridView, you will soon realize that some things have improved quite a lot, but I am sure its going to be a bit confusing at first glance when you try to modify certain javascript behaviors like for example, its delete confirmation dialog box.

4 1
16 followers
Viewed: 36 584 times
Version: 2.0
Category: How-tos

Creating a Dependent Dropdown From Scratch in Yii2

Created 5 years ago by ThePr0f3550r, updated 2 years ago by alrazi.

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

4 1
11 followers
Viewed: 112 839 times
Version: 2.0
Category: How-tos

Filter & Sort by Summary Data in GridView Yii 2.0

Created 6 years ago by Kartik V, updated 6 years ago by Kartik V.

This wiki explains how to add summary data from related models into your Yii Framework 2.0 gridview with filtering and sorting by the summary columns.

5 2
49 followers
Viewed: 59 629 times
Version: 2.0
Category: Tutorials
2 0
3 followers
Viewed: 24 521 times
Version: 2.0
Category: How-tos

Export query content to excel through any of your controllers, also can set cssClass for header/odd/even rows, auto download

Created 4 years ago by Scott_Huang, updated 4 years ago by Scott_Huang.

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.

2 0
2 followers
Viewed: 16 953 times
Version: 2.0
Category: Tutorials

A Single Page with a List and a Detail

Created 3 years ago by softark, updated 3 years ago by Patrick Jones.

The CRUD generator of Gii has done a wonderful job for you, and you already have a list of items in the "index" page and a detailed view of a specified item in the "view" page.

2 0
3 followers
Viewed: 21 923 times
Version: 2.0
Category: How-tos

How to get SEO friendly URL using Model and new getUrl() function

Created 2 years ago by shiv, updated 2 years ago by shiv.

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.

2 0
1 follower
Viewed: 18 835 times
Version: 2.0
Category: How-tos

How to use BootstrapInterface

Created 6 years ago by Antonio Ramirez, updated 6 years ago by Antonio Ramirez.

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...

2 0
3 followers
Viewed: 14 647 times
Version: 2.0
Category: How-tos

Cómo enviar emails usando SMTP

Created 6 years ago by robregonm, updated 6 years ago by robregonm.
2 0
2 followers
Viewed: 19 444 times
Version: 2.0
Category: How-tos

Yii2 default values for Index data Provider

Created 6 years ago by CTala, updated 6 years ago by CTala.

Guys,

2 0
5 followers
Viewed: 26 345 times
Version: 2.0
Category: Tips

Key web server settings after installing a fresh Yii 2 basic or advanced app

Created 6 years ago by Kartik V, updated 6 years ago by Kartik V.

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.

2 0
45 followers
Viewed: 22 213 times
Version: 2.0
Category: Tips

How to use yii2-authclient to communicate with Twitter using Single Access Token

Created 5 years ago by Antonio Ramirez, updated 5 years ago by Antonio Ramirez.

It is quite simple, but I am sure this small tutorial will help more than one of you out there :)

2 0
4 followers
Viewed: 20 455 times
Version: 2.0
Category: How-tos

embedded javascript block in your view with IDE checking or intellisense

Created 5 years ago by yiqing95, updated 5 years ago by yiqing95.

this is my way for embed js code block in view file:

2 0
3 followers
Viewed: 9 062 times
Version: 2.0
Category: Tips

Using Nginx and Apache2 in separate distributed servers (ie, Amazon EC2 instances)

Created 7 years ago by Luis Lobo Borobia, updated 3 years ago by Luis Lobo Borobia.

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.

2 0
2 followers
Viewed: 9 645 times
Version: all
Category: Tips

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

Created 6 years ago by Kartik V, updated 2 years ago by CeBe.

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.

4 2
39 followers
Viewed: 45 406 times
Version: 2.0
Category: How-tos

FORM with GET method causes repeated stacking of URL Parameters

Created 6 years ago by Kartik V, updated 6 years ago by toph.

// 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']); $this->endWidget(); `

4 2
40 followers
Viewed: 48 958 times
Version: all
Category: Tips