Wiki

Sorted by viewsX
Displaying 511-520 of 765 result(s).

Rendering a view file in a console application

Created 4 years ago by TompiHow-tos1 comment – viewed 10,141 times – ( +4 / -2 ) – version 1.1
When someone want to send formatted HTML mails from a console application she/he will probably come across the problem of rendering view files.

An important tip when you are using CArrayDataProvider.

Created 3 years ago by sirin kTips0 comments – viewed 10,117 times – ( +8 / -1 ) – version 1.1
Yii ‘s CArrayDataProvider is very helpful to display model relation data's directly on it.But it is truely a confusing one because by default it will assume a table field named “id” as primary key for its pagination purpose and what if you dont have field named “id” as primary key on your table? so its truely confusing and if you tried to display without an “id” field on ur table you will get an error like “yourmodel.id is not defined”.

Publish yii webapp using Git push

Created 3 years ago by rootbearHow-tos6 comments – viewed 10,077 times – ( +2 ) – version 1.1
I did not invent this instructions, I read it somewhere and re-organized in my way as I was trying and it works for me;
tags: git

Create/Develop View files with plain HTML (Without using ActiveForm Class)

Created 2 years ago by kalpitHow-tos2 comments – viewed 10,044 times – ( +2 / -2 ) – version 1.1
Today i want to share with you is "How can we write HTML Code in view files? I am writing this article because many times we can not use CActiveForm to design our form...
tags: views, tutorial

Upload Files to Rackspace Cloud Files CDN

Created 2 years ago by StephenMiracleTutorials0 comments – viewed 9,927 times – ( +2 ) – version 1.1
** I actually made this into an extension for easier use. You can view the extension: http://www.yiiframework.com/extension/rackspaceconnect/

ISA hierarchy of tables inside a database and how to implement a single form

Created 4 years ago by pligorHow-tos2 comments – viewed 9,923 times – ( +1 ) – version 1.1
Please consider the following Dear software engineers imagine I have a simple ISA hierarchy: parent A with children B and C. So let's say we have the corresponding tables named "a", "b", "c" and (created with the help of the gii model creator) the classes A, B, C The following is a screenshot from MySQL workbench:

Book Has Author - Many to Many relations using Kartik\Select2

Created about a year ago by thiagoc7How-tos2 comments – viewed 9,867 times – ( +3 ) – version 2.0
I could make this work following same useful tips from this post.

default csrf security and ajax post in one controller

Created 2 years ago by jasonbanTutorials3 comments – viewed 9,861 times – ( +1 / -3 ) – version 1.1
Hello Yii friends

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

Created about a year ago by Rohit SutharTutorials4 comments – viewed 9,840 times – ( +6 / -1 ) – version 1.1
In this wiki I will show how to display data from two tables in Bootstrap TbGridView using dataProvider.

Application-driven database with CDbMigration and an extended CActiveRecord

Created 4 years ago by Tudor IlisoiOthers0 comments – viewed 9,824 times – ( +8 ) – version 1.1
This is an incipient implementation of application-driven database with Yii.
tags: database, model