Wiki articles

Showing 81-100 of 164 items.

Yii2 default values for Index data Provider

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

Guys,

2 0
5 followers
Viewed: 31 522 times
Version: 2.0
Category: Tips

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

Created 9 years ago by Antonio Ramirez, updated 9 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: 25 469 times
Version: 2.0
Category: How-tos

embedded javascript block in your view with IDE checking or intellisense

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

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

2 0
3 followers
Viewed: 13 004 times
Version: 2.0
Category: Tips

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

Created 10 years ago by Luis Lobo Borobia, updated 6 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: 14 367 times
Version: all
Category: Tips

Events registration examples

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

Register an event handler at Object-Level

2 0
2 followers
Viewed: 60 377 times
Version: 2.0
Category: How-tos
Tags: events, yii2

How to add Open Graph and Twitter Card tags to Yii2 website.

Created 3 years ago by Gabriel A. López López.

OpenGraph and Twitter Cards are two metadata sets that allow to describe web pages and make it more understandable for Facebook and Twitter respectively.

2 0
3 followers
Viewed: 58 226 times
Version: 2.0
Category: How-tos

Filter & Sort by Summary Data in GridView Yii 2.0

Created 9 years ago by Kartik V, updated 9 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
48 followers
Viewed: 71 596 times
Version: 2.0
Category: Tutorials

Debuging variables in Yii2

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

This tutorial is explained following "basic" application structure.

4 1
8 followers
Viewed: 41 738 times
Version: 2.0
Category: Tips

Yii2 GridView Sorting and Searching with a Junction Table Column(Many to Many Relationship)

Created 7 years ago by Amjad Khan, updated 7 years ago by Amjad Khan.

Following is the table structure

tblgroups

CREATE TABLE IF NOT EXISTS `tblgroups` (
  `id` int(11) NOT NULL,
  `groupname` varchar(150) NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1=Acitve,2=Inactive',
  `date` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

tblcontacts

4 1
7 followers
Viewed: 86 957 times
Version: 2.0
Category: Tutorials

Escape from Default's Yii2 Delete Confirm Box

Created 9 years ago by Antonio Ramirez, updated 8 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: 44 950 times
Version: 2.0
Category: How-tos

Creating a Dependent Dropdown From Scratch in Yii2

Created 9 years ago by ThePr0f3550r, updated 6 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
12 followers
Viewed: 146 992 times
Version: 2.0
Category: How-tos

How to install Yii 2 advanced on a shared hosting environment

Created 8 years ago by oligalma, updated 4 years ago by oligalma.

I've read many comments that it's not possible to install Yii 2 advanced on a shared hosting environment, as it has two webroots. This is partially true.

3 0
2 followers
Viewed: 34 847 times
Version: 2.0
Category: How-tos

How to change GridView delete confirmation message for specific controllers only?

Created 8 years ago by AlaFalaki, updated 8 years ago by AlaFalaki.

Hello,
If you want to give extra attention for some specific delete actions and you don't want to override whole yii.confirm JS method here is what you can do:
(I've only put the ActionColumn part of the GridView here to just give you the idea)

3 0
4 followers
Viewed: 45 944 times
Version: 2.0
Category: Tips

A Single Page with a List and a Detail

Created 7 years ago by softark, updated 7 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.

3 0
5 followers
Viewed: 55 390 times
Version: 2.0
Category: How-tos

Yii2 RESTful API with OAuth 2.0

Created 6 years ago by sirin k, updated 5 years ago by sirin k.

https://cdn.pbrd.co/images/GMN5ROs.jpg

3 0
3 followers
Viewed: 67 505 times
Version: 2.0
Category: Tutorials

Automatically get the SVN Revision Number of your Project

Created 9 years ago by jcagentzero, updated 9 years ago by jcagentzero.

When you are handling so many projects and those projects are saved in different repository locations, you may find it very difficult to keep track all the versions and revisions manually and it will be much harder if you are developing in multiple repository branches.

3 0
4 followers
Viewed: 12 759 times
Version: all
Category: Tutorials

How to implement cron in Yii 2

Created 9 years ago by hemc, updated 9 years ago by hemc.

In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.

3 0
13 followers
Viewed: 99 917 times
Version: 2.0
Category: How-tos
Tags: console, cron, yii2

Yii2 and Pdf files with Mpdf

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

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.

3 0
8 followers
Viewed: 31 934 times
Version: 2.0
Category: How-tos

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

Created 9 years ago by Kartik V, updated 9 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.

3 0
46 followers
Viewed: 28 941 times
Version: 2.0
Category: Tips

Profiling using XDebug

Created 10 years ago by le_top, updated 8 years ago by le_top.

A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

3 0
3 followers
Viewed: 21 249 times
Version: all
Category: How-tos