Wiki articles in category Tutorials

Showing 81-100 of 264 items.

三步使用cronjobs自动化去执行Yii 控制台任务

Created 12 years ago by Darwin Wen, updated 12 years ago by Darwin Wen.

这篇文章将介绍使用Linux cronjobs去自动化执行Yii Console Application(控制台)任务,像每天晚上执行缓存清理,临时文件清理,发送邮件,网站备份等等,重复的工作都交给服务器后台去完成,Yii本身已经提供了强大的支持,我们所做的工作就很少,当使用yiic webapp 自动生成工程结构时,强大的Yii已经全部帮我们生成好,仅仅只需三步。

0 4
2 followers
Viewed: 27 823 times
Version: 1.1
Category: Tutorials

Installare Yii 2.0.* usando XAMPP su Windows in versione portabile

Created 9 years ago by realtebo, updated 8 years ago by realtebo.

Personalmente trovo che la versione "portable" sia molto più semplice da aggiornare, ed io tengo sempre costantemente aggiornato TUTTO il parco software relativo al mio webserver.

0 0
2 followers
Viewed: 27 867 times
Version: 2.0
Category: Tutorials

How to display data from two tables in TbGridView using DataProvider?

Created 9 years ago by Rohit Suthar, updated 9 years ago by Rohit Suthar.

In this wiki I will show how to display data from two tables in Bootstrap TbGridView using dataProvider.

0 0
5 followers
Viewed: 28 180 times
Version: 1.1
Category: Tutorials

Simple Mail Queue

Created 10 years ago by waterloomatt, updated 8 years ago by Bizley.

The basic idea is to create a complete mail message and store it a Db table along with all info necessary for sending valid emails (to_email, from_email, from_name, subject etc.)

8 0
14 followers
Viewed: 28 430 times
Version: 1.1
Category: Tutorials

Using CJuiDialog to display flash Messages in Dialogues

Created 13 years ago by thyseus, updated 13 years ago by thyseus.

In order to nicely display flash Messages, create view like this called views/site/dialog.php :

10 0
9 followers
Viewed: 28 726 times
Version: 1.1
Category: Tutorials
Tags:

MVC primer and 5 minute form walkthrough

Created 11 years ago by rix.rix., updated 11 years ago by rix.rix..

This tutorial assumes some basic knowledge of Yii and a functional development environment.

8 0
6 followers
Viewed: 29 377 times
Version: 1.1
Category: Tutorials

Logout CSRF Protection

Created 12 years ago by Rodrigo Coelho, updated 12 years ago by Rodrigo Coelho.

CSRF is the acronymn for Cross-site request forgery.
It is an attack which forces an end user to execute unwanted actions on a web application in which he/she is currently authenticated.

10 0
11 followers
Viewed: 29 494 times
Version: 1.1
Category: Tutorials

Force a User to Change Their Password (ChangePasswordFilter)

Created 12 years ago by waterloomatt, updated 12 years ago by waterloomatt.

Sometimes you need to force a user to change their password after x number of days. This article describes how to implement this using a filter, ChangePasswordFilter.

14 0
10 followers
Viewed: 29 521 times
Version: 1.1
Category: Tutorials

Functional Testing in Yii using Goutte and PHPUnit

Created 12 years ago by putera, updated 12 years ago by putera.

We will use Symfony 2 components for writing tests for Yii project, it's gonna be fun :).

6 0
17 followers
Viewed: 29 935 times
Version: 1.1
Category: Tutorials

Multilanguage web site controlling by get request and database allowed languages

Created 12 years ago by Igor Ivanovic, updated 12 years ago by rei.

First, you have to have create database table for default language and allowed languages.

CREATE TABLE IF NOT EXISTS `tbl_languages` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `lang` varchar(2) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
  `flagpath` varchar(40) CHARACTER SET utf8 COLLATE utf8_unicode_...
5 0
12 followers
Viewed: 30 298 times
Version: 1.1
Category: Tutorials

YII2 : simple language Switcher Widget

Created 8 years ago by phunsanit, updated 8 years ago by phunsanit.
  1. create file common\components\languageSwitcher.php
1 0
5 followers
Viewed: 30 778 times
Version: 2.0
Category: Tutorials

Two Login in same form in Yii application , with two tables

Created 10 years ago by Balu, updated 9 years ago by Rohit Suthar.

login links will be

3 4
6 followers
Viewed: 30 796 times
Version: 1.1
Category: Tutorials

How to setup FCKeditor

Created 15 years ago by krillzip, updated 11 years ago by Dark-Sun.

Next to do is to download the Yii FCKeditor extension, created by Ascomae. Extract the downloaded file, and place the fckeditor/ widget folder in your web applications protected/extensions/ directory.

3 1
5 followers
Viewed: 30 832 times
Version: 1.1
Category: Tutorials
Tags:

Auto set model fields values

Created 11 years ago by vibhaJadwani, updated 11 years ago by vibhaJadwani.

This is a tutorial for how to auto set model values without any code.

5 0
11 followers
Viewed: 30 935 times
Version: 1.1
Category: Tutorials

Starting with YII 1.1.x in Windows Environment (WAMP)

Created 9 years ago by Rajith R, updated 9 years ago by Rajith R.

As we know YII is the Leading Framework of PHP. Lots of new developers are starting to use YII day by day. Most of the beginners are little bit confused with how to start with YII . I think this note will help them. Follow the simple steps To run a Yii-powered Web application, you need a Web server that supports PHP 5.1.0.

3 0
5 followers
Viewed: 30 984 times
Version: 1.1
Category: Tutorials
Tags: newbie, Yii, yiic

Upload CSV File

Created 11 years ago by bhavesh vaghela, updated 9 years ago by bhavesh vaghela.

View file

3 0
10 followers
Viewed: 31 977 times
Version: 1.1
Category: Tutorials
Tags:

CRUD operation in Yii framework

Created 9 years ago by Mohammad Fareed, updated 5 years ago by samdark.

Simple Yii Script for performing CRUD operations:

0 4
6 followers
Viewed: 32 378 times
Version: 1.1
Category: Tutorials

Log Activity in DataBase

Created 10 years ago by mahdi1986, updated 9 years ago by mahdi1986.

In this article i will explain how to customize log activity in database, Imaging you need to save IP user, Url request and user_name in database,But table created by default with Yii only have id,level,category,logtime and message

4 0
17 followers
Viewed: 32 553 times
Version: 1.1
Category: Tutorials

Multi level dropdown menu in Bootstrap

Created 10 years ago by sefburhan, updated 9 years ago by CeBe.

To get multi level dropdown menu of using boostrap extension (http://www.yiiframework.com/extension/bootstrap/) widget TbNavbar just follow steps

4 0
38 followers
Viewed: 32 910 times
Version: 1.1
Category: Tutorials

Batch Gridview data ajax send splitted in chunks displaying bootstrap Progress bar

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

The scenario in which this wiki can be useful is when you have to send an (huge) array of model ids and perform a time consuming computation with it like linking every model to other models. The idea is to split the array into smaller arrays and perform sequential ajax requests, showing the calculation progress using a [Bootstrap Progress bar](https://www.yiiframework.com/extension/yiisoft/yii2-bo...

8 0
2 followers
Viewed: 33 006 times
Version: 2.0
Category: Tutorials