Wiki articles in category Tutorials

Showing 21-40 of 264 items.

Yii and XAMPP server on Windows

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

This article explains issues about installing XAMPP server package (Lite version) on Windows OS and configuring it for serving webapps written in Yii. Please note, that XAMPP is available for many more platforms and systems. I write about Windows edition as it was the only one tested by me.

3 0
0 follower
Viewed: 79 313 times
Version: 1.1
Category: Tutorials

Add charts / print buttons to your webapp

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

In this article you will find Yii framework extensions enabling you to add various charts/print out buttons etc. to your webapp.

6 0
9 followers
Viewed: 37 711 times
Version: 1.1
Category: Tutorials

How To Customize CMenu Output

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

CMenu comes with a lot of great customization options built in but sometimes you need it to do more.

7 0
15 followers
Viewed: 68 602 times
Version: 1.1
Category: Tutorials
Tags: menu

Multiple Databases and Multiple Domains

Created 13 years ago by got 2 doodle, updated 13 years ago by Maurizio Domba Cerin.

Add these lines in /config/main.php

'components'=>array(
.........
		'db'=>array(
			'connectionString' => 'mysql:host=localhost;dbname=database1',
			'emulatePrepare' => true,
			'username' => 'root',
			'password' => 'itsasecret',
			'charset' => 'utf8',
		),
		'db2'=>array(
		    'class' => 'CDbConnection',
			'connectionString' => 'mysql:host=localhost;dbname=databa...
13 2
15 followers
Viewed: 55 327 times
Version: 1.1
Category: Tutorials
Tags: database

Performance - A Guide For Best Practice

Created 14 years ago by Y!!, updated 13 years ago by ajsharma.

In this guide I will explain best practise regarding performance in MySQL, PHP and of course our loved Yii Framework. Since this is a complex topic, I will start with some basics and then expand this guide from time to time. Since this wiki can become big, you may click on View history - there you can see what changes have been made, so you don't miss anything.

9 5
10 followers
Viewed: 27 199 times
Version: 1.1
Category: Tutorials

belajar AR : part 1 (learn AR : part 1)

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

hai teman yii... apa kabar.. kembali lagi bersama catatan saya..

0 0
1 follower
Viewed: 17 764 times
Version: 1.1
Category: Tutorials
Tags: indonesia

embed a view file of the class which implement the CAction.

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

In Yii, we can define an action class and ask the controller to instantiate it. And we always create ourselves actions class in rootPath/protected/extensions, and the view file we called in the actions class always are located in rootPath/protected/views/ControllerNAME or rootPath/themes/ThemeNAME/ControllerNAME, then when we use the same actions class in different controllers, we have to copy it...

1 1
2 followers
Viewed: 25 136 times
Version: 1.1
Category: Tutorials

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: 73 503 times
Version: 1.1
Category: Tutorials

Eclipse PDT - code-hints, references and other goodies

Created 15 years ago by mindeh, updated 13 years ago by Woil.

Since PHP is dynamically typed language, the way IDE may help you is limited.

14 0
6 followers
Viewed: 41 215 times
Version: 1.1
Category: Tutorials
Tags: IDE

How to create nice modal login widget with a CJuiDialog

Created 13 years ago by Igor Ivanovic, updated 13 years ago by Maurizio Domba Cerin.

You have to extend the widget class and configure it for user login widget

6 0
30 followers
Viewed: 76 245 times
Version: 1.1
Category: Tutorials

Impersonate Users within Yii Framework

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

For some applications it can be advantageous for administration reasons to allow site administrators to login as other users. This is sometimes called user impersonation or "becoming that user".

20 0
21 followers
Viewed: 26 238 times
Version: 1.1
Category: Tutorials

Use different environments (development, production, etc) in your app with EASY Environment Class

Created 13 years ago by nancoder, updated 13 years ago by marcovtwout.

Hi, I was having problems each time I had to test the site or edit something on my local machine, like changing the db connection, change the debug mode to false, the trace level to 0, disable Gii, etc. So I created a class to resolve all my problems, hope to help you in your projects!

7 0
7 followers
Viewed: 76 528 times
Version: 1.1
Category: Tutorials
Tags:

To configure Yii path in Windows platform

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

I can see many questions regarding configuring the path using Windows OS. I could hardly get the right information about it. The cook book has defined for Linux. So I would like to share my idea on it. To configure the Yii path using Windows OS,

0 6
4 followers
Viewed: 49 871 times
Version: 1.1
Category: Tutorials

Named scope - Get orphan AR without losing primary key

Created 13 years ago by cma, updated 13 years ago by Steve Friedl.

Sometime, in a many-to-many relation, you need to retrieve AR that aren't linked. In practice, AR with null value in the join table. So you implements a criteria like this :

public function scopeUnused( $useAnd = true )
    {
        $join = " left outer join composed_by j on t.ID = j.ID ";
        $condition = ' j.ID Is Null';

0 0
2 followers
Viewed: 9 378 times
Version: 1.1
Category: Tutorials
Tags:

Ativando temas no Zii Widgets

Created 13 years ago by Ivan Wilhelm, updated 13 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: 12 349 times
Version: 1.1
Category: Tutorials

Cambiando el diseño de JuiWidgets

Created 13 years ago by Luis Lobo Borobia, updated 13 years ago by Ivan Wilhelm.

Un aspecto del diseño de interfaces de usuario tiene que ver con la coherencia del diseño y uso de colores entre los distintos componentes de interfaz de usuario utilizados.

0 0
4 followers
Viewed: 15 457 times
Version: 1.1
Category: Tutorials
Tags:

Theming your Zii Widgets

Created 13 years ago by Luis Lobo Borobia, updated 13 years ago by Ivan Wilhelm.

One aspect of User Interface Design has to do with the coherence of the design and the use of the colors between the different User Interface Components used.

17 0
31 followers
Viewed: 61 389 times
Version: 1.1
Category: Tutorials

I18n subdomains and url-rules

Created 14 years ago by Y!!, updated 13 years ago by atrandafir.

This guide is for more or less advanced users. If you just started with Yii or didn't worked with any web-framework before, you may should come back later :-)

7 0
17 followers
Viewed: 45 233 times
Version: 1.1
Category: Tutorials
Tags: i18n, URL

Yii tinymce结合syntaxHighlighter和syntax

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

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

1 0
0 follower
Viewed: 13 167 times
Version: 1.1
Category: Tutorials

CListView AJAX filtering

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

This tutorial shows how to filter CListView items by AJAX, and it's compatible with disabled JavaScript users
In my case this has been done to filter users list

13 0
27 followers
Viewed: 78 168 times
Version: 1.1
Category: Tutorials