Wiki articles

Showing 161-180 of 823 items.

config Use MS SQL SERVER 2005 2008.

Created 13 years ago by vcxz_1982, updated 12 years ago by Asgaroth.

Use SQL SERVER 2000, the date format not like: yyyy/mm/dd hh:mm:ss. So I change to use SQL SERVER 2008 EXPRESS.

3 0
8 followers
Viewed: 76 595 times
Version: 1.1
Category: Tutorials

Integrating Wordpress and Yii: yet another approach

Created 13 years ago by goncin, updated 13 years ago by goncin.
6 2
11 followers
Viewed: 76 258 times
Version: 1.1
Category: How-tos

Step by step for how to full export Yii2 grid to excel

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

We will leverage Yii2-excelview widget. So, first of all is install Yii2-excelview:

1 0
5 followers
Viewed: 75 731 times
Version: 2.0
Category: Tips

How to write a simple application component

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

An application component is a confortable way for share information among all component of the application

15 7
14 followers
Viewed: 75 412 times
Version: 1.1
Category: How-tos

Displaying image in a CGridView column.

Created 12 years ago by sirin k, updated 7 years ago by Maurizio Domba Cerin.

This is a simple example of how we can display images in CGridviews.Imagine that you have an image field in your table ie either a location field or a blob type field used to store the images.

9 1
14 followers
Viewed: 75 115 times
Version: 1.1
Category: How-tos

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

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

This tutorial gives you multiple options of how to fully implement showing, sorting and filtering related data in gridviews.

Intro

17 0
41 followers
Viewed: 75 040 times
Version: 1.1
Category: Tutorials

Create Bootstrap5 based Image carousel with thumbnails

Created 9 months ago by pravi, updated 9 months ago by pravi.

Use the following css styles for carousel to work as expected.

2 0
1 follower
Viewed: 75 026 times
Version: 2.0
Category: Tutorials

Easy way to redirect http:\\localhost\yii2-basic to http:\\localhost\yii2-basic\web\index.php

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

First of all, install yii2 basic template according below link:

1 0
5 followers
Viewed: 74 972 times
Version: 2.0
Category: Tips

Using standard filters in CGridView custom fields

Created 13 years ago by GOsha, updated 13 years ago by jwerner.

In this article I'll try to explain how to use standard quick search fields in CGridView with customized columns.
For example:
We have a record in a database with field switch having 0 or 1 values. After that we want a user to see on or off instead 1 or 0.
So we do the usual thing:

<?php $this->widget('zii.widgets.grid.CGridView', array(
//.....
array(
    'name'=>'...
14 0
16 followers
Viewed: 74 544 times
Version: 1.1
Category: How-tos

Integrating Yii with Wordpress

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

Well I finally had some time and tinkered a bit with the notion of integrating wordpress and Yii. Now for me I wanted to use Yii as a framework to develop wordpress plugins. Using some tips from imasia Article I was able to do a simple integration of yii as a wordpress plugin. The integratio...

9 1
13 followers
Viewed: 74 385 times
Version: 1.1
Category: Tips

using multiple radio button

Created 12 years ago by francis ja, updated 10 years ago by Rohit Suthar.

When we use multiple radio buttons with same name in Yii many people have the problem on getting the value of the selected radiobutton. The radioButtonList can be used for that, but if we need to use radioButton itself to place the button any where in a view, we need to include one more parameter in htmloption array().

6 0
13 followers
Viewed: 74 301 times
Version: 1.1
Category: Tips

Introducción al control de acceso basado en roles (RBAC)

Created 13 years ago by Juan Calvo, updated 13 years ago by Juan Calvo.

Todos los que hemos empezado a utilizar Yii para crear aplicaciones Web, nos hemos dado de bruces cuando hemos intentado poner a funcionar el RBAC (acceso de control basado en roles).

15 1
9 followers
Viewed: 74 289 times
Version: 1.1
Category: Tutorials

Change default date format in Oracle

Created 5 years ago by lenovo, updated 5 years ago by samdark.

Default date format in Oracle is DD-MON-RR (25-JAN-18). With that output, we can't using date formatting.

0 0
2 followers
Viewed: 74 062 times
Version: 2.0
Category: How-tos
Tags: database

How to log changes of ActiveRecords?

Created 15 years ago by pfth, updated 12 years ago by Yang He.

A simple and effective way to keep track what your users are doing within your application is to log their activities related to database modifications. You can log whenever a record was inserted, changed or deleted, and also when and by which user this was done. For a [CActiveRecord] Model you could use a behavior for this purpose. This way you will be able to add log functionality to ActiveRecor...

31 1
47 followers
Viewed: 73 780 times
Version: 1.1
Category: Tutorials
Tags: Logging
4 0
3 followers
Viewed: 73 593 times
Version: 2.0
Category: Tutorials

Upload image and content using AJAX and Store it in different table

Created 10 years ago by Selvakumar Kaliyappan, updated 10 years ago by CeBe.

var formData = new FormData($("#post-form")[0]);
$.ajax({
    url: '<?php echo Yii::app()->createUrl("forumPost/uploadPost"); ?>',
    type: 'POST',
    data: formData,
    datatype:'json',
    // as...
1 0
5 followers
Viewed: 73 332 times
Version: 1.1
Category: How-tos

How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)

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

With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

16 0
33 followers
Viewed: 73 140 times
Version: 1.1
Category: How-tos

Display an AJAX tree from your DB using CTreeView

Created 14 years ago by François Gannaz, updated 12 years ago by François Gannaz.

This example uses a MySQL DB with a table named tree with the fields id, name, and parent_id. The parent_id will be NULL for root elements. The SQL is kept simple (no autoinc, no FK, etc).

19 0
21 followers
Viewed: 72 967 times
Version: 1.1
Category: Tutorials

Filter & Sort by Summary Data in GridView Yii 2.0

Created 10 years ago by Kartik V, updated 10 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: 72 685 times
Version: 2.0
Category: Tutorials

CKEditor Integration (includes steps for file uploads) - Step by Step

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

Hey guys, I'm hoping other people will find this helpful. Today I went through the process of adding CKEditor to one of my projects, and then integrating KCFinder as the image uploader. It will be used in a CActiveForm, without the use of any crazy weird widgets. All paths are relative, using Yii functions, so this will work no matter where you install. Here it is:

10 0
22 followers
Viewed: 72 221 times
Version: 1.1
Category: How-tos