Wiki articles

Showing 161-180 of 650 items.

A simple go back button widget

Created 7 years ago by CTala, updated 7 years ago by bennouna.

We all know that widgets are really useful. We can use the almost everywhere we want, and we can use the same code a lot of times ( Almost OOP ).

2 1
6 followers
Viewed: 31 070 times
Version: 1.1
Category: How-tos

Create sitemap.xml file dynamically on root folder with one hit

Created 7 years ago by kiran sharma, updated 7 years ago by kiran sharma.

I had created one controller file which can create sitemap.xml file(which is used for seo, google crawler and many other puropse) dynamically with one run.

2 1
9 followers
Viewed: 21 406 times
Version: 1.1
Category: How-tos
Tags: SEO, SiteMap, XML

[PT-BR] Proteção Contra Logout CSRF

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

CSRF é o acrônimo para Cross-site request forgery.
CSRF é um ataque que forca o usuário a executar ações não desejadas numa aplicação Web na qual ele está autenticado.

2 1
3 followers
Viewed: 10 857 times
Version: 1.1
Category: Tutorials

Using setFlash for displaying various kind of messages

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

In this short how-to I will show how to customize setFlash() to display messages (flashes) styled to be success confirmation, error report or notice information. And how to achieve displaying errors in other way.

4 4
6 followers
Viewed: 77 067 times
Version: 1.1
Category: How-tos

Ajax form submiting in Yii

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

hi guys, Here I'm going to give you a working example of ajax form submiting in Yii.

4 3
23 followers
Viewed: 154 218 times
Version: 1.1
Category: Tutorials

Yii Security-extended guide

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

This article is called extended guide is because there is already a security guide in the Yii tutorial security section. but that guide is not complete in the sense that it does not rise the developers' attention to some other commonly happening attacks: SQL injection and magic URL, which can be major vulnerabilities in you...

6 6
12 followers
Viewed: 25 125 times
Version: 1.1
Category: Tips

FORM with GET method causes repeated stacking of URL Parameters

Created 6 years ago by Kartik V, updated 6 years ago by toph.

// In Yii 1.x $form = $this->beginWidget('CActiveForm', [

'id' => 'order-search-form',
'method' => 'get',

]); echo $form->textInput($searchModel, 'id'); echo CHtml::submitButton('Find', ['class' => 'btn btn-primary']); $this->endWidget(); `

4 2
40 followers
Viewed: 48 971 times
Version: all
Category: Tips

Ativando temas no Zii Widgets

Created 9 years ago by Ivan Wilhelm, updated 9 years ago by Ivan Wilhelm.

Um aspecto do design da interface de usuário tem a ver com a coerência do design e da utilização das cores entre os diferentes componentes da interface do usuário utilizada.

4 2
4 followers
Viewed: 11 036 times
Version: 1.1
Category: Tutorials

How to setup FCKeditor

Created 11 years ago by krillzip, updated 7 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: 24 019 times
Version: 1.1
Category: Tutorials
Tags:

A very easy way to setup yiic on WAMP server (without extra windows settings)

Created 6 years ago by Kostas Apazidis (KonApaz), updated 5 years ago by Kostas Apazidis (KonApaz).

Assuming that you have already install the wampserver on your windows.

3 1
4 followers
Viewed: 46 380 times
Version: 1.1
Category: Tutorials

How to access a component of a module from within the module itself

Created 11 years ago by OriginalCopy, updated 7 years ago by Roman Solomatin.

The Yii documentation states:

3 1
7 followers
Viewed: 51 685 times
Version: 1.1
Category: Tutorials
Tags: module

Adding login form to each page

Created 10 years ago by pestaa, updated 7 years ago by Yang He.

After adding proper form to the main layout, like:

3 1
7 followers
Viewed: 42 647 times
Version: 1.1
Category: Tutorials

Caching strategy

Created 6 years ago by darkheir, updated 6 years ago by CeBe.

Note: Before reading this wiki you should have read the caching part in the Yii guide

3 1
12 followers
Viewed: 9 578 times
Version: 1.1
Category: How-tos

How to hide `index` action from URL

Created 7 years ago by rootbear, updated 7 years ago by rootbear.

Here is my experiment inspired by my own question and others from the forum.

3 1
10 followers
Viewed: 21 027 times
Version: 1.1
Category: How-tos
Tags: index

ChromePHP for Yii

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

ChromePHP is a console logging extension for Google Chrome.

3 1
4 followers
Viewed: 15 736 times
Version: 1.1
Category: Tips

Cheat Sheet: Displaying Name instead of Numbers and Displaying Alphanumeric instead of numeric values

Created 7 years ago by skworden, updated 7 years ago by skworden.

I keep a reference to some simple but painful task if you forget a common or something. I am new to Yii and this took awhile for me to figure out. Everything I read said do this or do that and not a single one worked for me. However, the following did.

3 1
6 followers
Viewed: 24 665 times
Version: 1.1
Category: How-tos

Twitter Bootstrap style Breadcrumbs

Created 7 years ago by junaidatari, updated 7 years ago by junaidatari.

will generate twitter bootstrap styled breadcrumb code:

3 1
4 followers
Viewed: 24 744 times
Version: 1.1
Category: How-tos

Using CJuiDialog to edit rows in a CGridView

Created 8 years ago by Russell England, updated 8 years ago by Russell England.

I used Zaccarias excellent article as the base http://www.yiiframework.com/wiki/145/cjuidialog-for-create-new-model/

Solution

First follow the wiki above to create all the required code. Then make the following modifications in your...

3 1
11 followers
Viewed: 37 750 times
Version: 1.1
Category: Tips

Open Dialog from ajax content

Created 7 years ago by Touzas, updated 7 years ago by Touzas.

This is the code in the View.

<?php echo CHtml::link('MyDialog', Yii::app()->createUrl('site/page'), array('class' => 'openDlg divDialog')); ?>
<?php
$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id'=>'divDialog',
	'options'=>array( 'title'=>Yii::t('Dialog Title', 'autoOpen'=>false, 'modal'=>true, 'width'=>600)));
?>
	<div class="divForForm"></div>
<?php
$this->endWidget(...
3 1
5 followers
Viewed: 20 941 times
Version: 1.1
Category: How-tos