Wiki

Sorted by ratingX
Displaying 141-150 of 777 result(s).

Write & use a custom Component in Yii2.0

Created about a year ago by sirin kHow-tos4 comments – viewed 45,147 times – ( +17 ) – version 2.0
This is a simple example in Yii2.0 to understand how you can write a custom component and use it inside your app.(basic template)

Yii 2 list of path aliases available with default basic and advanced app.

Created 2 years ago by Kartik VTips2 comments – viewed 63,185 times – ( +52 / -5 ) – version 2.0
If you are coming over from Yii 1.x to Yii 2, and already read this guide, you may note that namespaces are very important in Yii 2 to identify classes. But do you know the list of seeded path aliases that come shipped with a basic or advanced app? Here is my attempt to list them.

Implementing cron jobs with Yii

Created 5 years ago by samdarkHow-tos6 comments – viewed 74,282 times – ( +32 / -2 ) – version 1.1
There are two ways to run a cron job:
tags: cron, cli

Understanding series articles

Created 4 years ago by GOshaTips0 comments – viewed 9,268 times – ( +16 ) – version 1.1
Here are all wiki articles from "Understanding" series by Yii wiki contributors:

Simple authorization system

Created 4 years ago by GustavoHow-tos1 comment – viewed 33,166 times – ( +16 ) – version 1.1
How to create a simple (non-RBAC) authorization system

1:n relations sometimes require CDbCriteria.together

Created 4 years ago by fsbTips5 comments – viewed 35,759 times – ( +16 ) – version 1.1
There are situations in which Active Record will generate nonsense queries from what a nieve Yii user might think is reasonable code. One such situation is a CActiveDataProvider using CDbCriteria to get data from parent and 1:n child table with a condition on the child table.

How to hide /frontend/web in url addresses on apache

Created about a year ago by raminiousHow-tos14 comments – viewed 67,091 times – ( +16 ) – version 2.0
There is an issue on Yii2 to redirecting / urls to /frontend/web. In other words we need a way to hidden /frontend/web from addresses. We will do this without changing Apache configuration and creating virtual host or setting document root (It's good for share hostings that we have not access to apache.conf)

How to upload image(photo), and path entry in database with update functionality

Created 4 years ago by kiran sharmaTips22 comments – viewed 153,264 times – ( +37 / -3 ) – version 1.1
I saw many posts that community newbie is confuse in image/photo upload with random name. so I post this topic covering all useful things regarding to image/photo upload(not covering image attribute related functionality)

FORM with GET method causes repeated stacking of URL Parameters

Created 2 years ago by Kartik VTips2 comments – viewed 19,428 times – ( +43 / -4 ) – version all
You are using an ActiveForm in yii (both v1.x or 2), with a GET method like below:

Using search engine and user friendly URLs

Created 6 years ago by qiangTutorials7 comments – viewed 73,307 times – ( +23 / -1 ) – version 1.1
The Definitive Guide introduces the fundamentals of managing URLs in a Yii application. In this tutorial, we introduce a practical technique that can quickly turn your application into using search-engine-friendly URLs.
tags: SEO, URL