Wiki articles

Showing 101-120 of 804 items.

Advanced CGridview issues - custom button using php and html

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

This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)

1 0
2 followers
Viewed: 10 642 times
Version: 1.1
Category: How-tos

Integrating ZF2 into Yii - use case demonstrated

Created 6 years ago by Boaz, updated 5 years ago by Boaz.

I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I de...

4 0
6 followers
Viewed: 10 664 times
Version: 2.0
Category: How-tos

Locking your Yii 2 project package versions with composer.lock

Created 5 years ago by Kartik V, updated 5 years ago by Kartik V.

Ok, you have installed a Yii 2 basic or advanced app for the first time and completed the post install steps. You have picked up a few extensions to install for the first time as well. You would already see a composer.lock file in your application root folder.

0 2
37 followers
Viewed: 10 685 times
Version: 2.0
Category: Tips

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

Created 8 years ago by Rodrigo Coelho, updated 8 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 715 times
Version: 1.1
Category: Tutorials

Collaborative software with git

Created 8 years ago by sensorario, updated 8 years ago by Maurizio Domba Cerin.

The most difficult thing in a big project, is to manage conflicts with files modified by others users. Git can do this work for us.

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

How to have truly multilingual URLs

Created 4 years ago by oligalma, updated 2 years ago by Maurizio Domba Cerin.

We can easily have a multilingual site if we put a "lang" parameter that comes via GET. For example:

0 0
3 followers
Viewed: 10 812 times
Version: 1.1
Category: How-tos

Single PHP entry point with Nginx

Created 4 years ago by MadAnd, updated 4 years ago by MadAnd.

In this article I will show you how to slightly increase application security, by exploiting the fact that Yii implements the Front Controller Pattern.

4 0
3 followers
Viewed: 10 874 times
Version: all
Category: How-tos

Functional tests independing from your urlManager settings

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

If you are testing your app and use urlManager in your config, sometimes you will find a problem: you want to test your site independing from urlManager settings. in that way you need to extend your WebTestCase class by this method:

0 0
4 followers
Viewed: 10 930 times
Version: 1.1
Category: Tips

Multiple CGridView virtual attributes, retrieved from a single model function. Also communication between CGridView columns and rows; and between CGridView and its own parent view.

Created 5 years ago by Gerhard Liebenberg, updated 4 years ago by Gerhard Liebenberg.

We probably have all used a virtual attribute (model function) to retrieve complex or related data for a CGridView column:

0 0
4 followers
Viewed: 10 935 times
Version: 1.1
Category: How-tos

Ativando temas no Zii Widgets

Created 8 years ago by Ivan Wilhelm, updated 8 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: 10 979 times
Version: 1.1
Category: Tutorials

Saving CGridView filter

Created 6 years ago by sefburhan, updated 5 years ago by CeBe.

In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps

1 0
31 followers
Viewed: 10 986 times
Version: 1.1
Category: Tutorials

Make an ajax request to another server using JSONP

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

There are cases that you want to make an ajax request to another server and get the results.

1 0
2 followers
Viewed: 11 001 times
Version: 1.1
Category: Tips

Access log output from unit tests

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

Say, you want to write a test for a component which provides a caching feature. How would you know, that some method of your component returns a cached result? With the solution described here you can inspect all log outputs. So you could search the logs for accesses to the DB to really make sure, that the result was served from cache.

3 0
2 followers
Viewed: 11 055 times
Version: 1.1
Category: Tips

Using Yii Gallery Manager in your Yii 1.x application

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

Finding good looking, working and not abandoned gallery manager for Yii 1.x application is a tough task. Out of all I found, only yii-gallery-manager extension looked promising. But, after downloading it, it turned out, that there are certain unusual things to do, to include it in your application. So, I decided to write this article...

0 0
1 follower
Viewed: 11 063 times
Version: 1.1
Category: How-tos

Yii tinymce结合syntaxHighlighter和syntax

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

首先我们需要下载好Yii tinymce扩展,放入你的extensions目录下,

1 0
0 follower
Viewed: 11 106 times
Version: 1.1
Category: Tutorials

How to use EzComponents in Yii

Created 8 years ago by Ehsanjs, updated 8 years ago by samdark.

change your index.php

4 0
6 followers
Viewed: 11 107 times
Version: 1.1
Category: How-tos

Customize your Growl/Alert msg easy and quickly

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

I leverage Kartik's notification widgets.

0 1
2 followers
Viewed: 11 109 times
Version: 2.0
Category: Tips

yii vim eclimd how it works

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

I want to create a wiki page, and therefore im opening this discussion on this forum, for answering all questions and see other opinions, how do you use vim with yii.

8 0
8 followers
Viewed: 11 130 times
Version: 1.1
Category: How-tos
Tags: eclimd, vim, vimrc

XSS safe model content

Created 10 years ago by phiras, updated 10 years ago by phiras.

In this post I am going to describe a solution to make your yii-based web application safe from illegal content injections.

4 0
1 follower
Viewed: 11 137 times
Version: 1.1
Category: Tutorials
Tags:

History Autocomplete

Created 8 years ago by zaccaria, updated 8 years ago by Maurizio Domba Cerin.

In application development we often have to choose how to mange recurrent values.

3 0
9 followers
Viewed: 11 258 times
Version: 1.1
Category: How-tos