Displaying 561-570 of 597 result(s).

Integrating with other frameworks

Created 4 years ago by KJediTutorials4 comments – viewed 13,912 times – ( +5 / -1 ) – version 1.1
When you need to integrate with other frameworks (e.g. Zend Framework), you have to follow these steps:

How to use markItUp! on a text field for full WYSIWYG editing

Created 4 years ago by lucifuriousTutorials2 comments – viewed 18,542 times – ( +3 ) – version 1.1
This tutorial will show you how to use the Pogostick Yii Extension Library to make an HTML TEXTAREA input element into a full-fledged WYSIWYG editor pretty much with very little code.

How To Connect With Twitter From Yii

Created 4 years ago by lucifuriousTutorials1 comment – viewed 19,122 times – ( +4 / -1 ) – version 1.1
Here is a quick tutorial for connecting Yii with Twitter using the Pogostick Yii Extensions Library.
tags: twitter

How to log context information to logger (session id, user, ...)

Created 4 years ago by olafureTutorials0 comments – viewed 11,352 times – ( +2 ) – version 1.1
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
tags: Logging

Organize directories for applications with front-end and back-end

Created 4 years ago by qiangTutorials10 comments – viewed 55,227 times – ( +28 ) – version 1.1
Large applications are often divided into front-end and back-end (or even more ends) depending on the target user groups. The front-end should be used by common users, while the back-end mainly the administrators or staff members. The two ends usually have dramatically different appearance, even though they may share a lot of code underneath. In this tutorial, we describe a way of organizing directories of the code for both ends.

Manage application configuration in different modes

Created 4 years ago by qiangTutorials5 comments – viewed 27,327 times – ( +15 ) – version 1.1
Info: This tutorial references the idea presented in Jonah's excellent blog article.

Use shortcut functions to reduce typing

Created 4 years ago by qiangTutorials8 comments – viewed 36,477 times – ( +53 ) – version 1.1
Because Yii intends to be integrated nicely with third-party libraries, it does not define any global functions. Everything in Yii needs to be addressed with full class name or object scopes. For example, to access the current user, we need to use Yii::app()->user; to access application parameters, we need Yii::app()->params['name']; and so on. While editors like textmate can help alleviate the problem of these lengthy typings, it is worthwhile to define global shortcut functions to some commonly used method calls. They will make the application code look cleaner.

How to add a named scope to ActiveRecords with a behavior

Created 4 years ago by MikeTutorials2 comments – viewed 13,767 times – ( +4 ) – version 1.1
Since Yii 1.0.5 you can use named scopes with ActiveRecords. They are a great help in simplifying your query calls.

How to create/save more Model inputs and make them repeatable with jQuery

Created 4 years ago by qiangTutorials3 comments – viewed 31,057 times – ( +12 ) – version 1.1
This is the first real problem that I encountered using Yii, trying to make a Model input repeatable in the form, validate and save them.

How to implement multiple page layouts in an application

Created 5 years ago by qiangTutorials2 comments – viewed 74,042 times – ( +24 ) – version 1.1
In this tutorial, we describe how to implement multiple layouts for action views in an application. As an example, we assume that the pages in our application will use three different layouts:
tags: layout