Wiki

Articles in category "tutorials", sorted by commentsX
Displaying 151-160 of 255 result(s).

How to implement multiple page layouts in an application

Created 8 years ago by qiangTutorials2 comments – viewed 107,568 times – ( +24 / -1 ) – 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

How to add a named scope to ActiveRecords with a behavior

Created 8 years ago by MikeTutorials2 comments – viewed 23,125 times – ( +4 / -1 ) – 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 use markItUp! on a text field for full WYSIWYG editing

Created 8 years ago by lucifuriousTutorials2 comments – viewed 26,034 times – ( +3 / -1 ) – 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 display page on fancybox...using CHtml::ajaxlink with yii validation

Created 4 years ago by Ankit ModiTutorials2 comments – viewed 12,731 times – ( +2 / -1 ) – version 1.1
1) include the fancybox extesion otherwise fancybox js

Help pages using Markdown view renderer

Created 4 years ago by nineinchnickTutorials2 comments – viewed 5,319 times – ( +2 / -1 )
This tutorial describes how to write your views for help pages using Markdown syntax to be able to generate PDFs from same source files.

CSS, JS and image URL shortcut methods

Created 8 years ago by jonahTutorials2 comments – viewed 26,232 times – ( +2 / -2 ) – version 1.1
Below I have created an Html helper with methods to help me locate directories of my assets dynamically. Such assets may include CSS, JavaScript and images.
tags: URL

Multiple file upload handler

Created 5 years ago by hasanaviTutorials2 comments – viewed 25,732 times – ( +6 / -1 ) – version 1.1
Hi,

XSS safe model content

Created 7 years ago by phirasTutorials2 comments – viewed 10,002 times – ( +4 / -1 ) – version 1.1
In this post I am going to describe a solution to make your yii-based web application safe from illegal content injections.

Ordering Models by Weight with CJuiSortable

Created 7 years ago by Matt KelliherTutorials2 comments – viewed 13,146 times – ( +10 / -1 ) – version 1.1
In this tutorial we will be setting up a content type to be ordered by weight using the JUI Sortable plugin.

Multiple Databases and Multiple Domains

Created 7 years ago by got 2 doodleTutorials2 comments – viewed 41,514 times – ( +15 / -3 ) – version 1.1
Add these lines in /config/main.php
tags: database