Wiki

Articles in category "tutorials", sorted by commentsX
Displaying 141-150 of 242 result(s).

How to display static pages in Yii?

Created 6 years ago by qiangTutorials2 comments – viewed 53,758 times – ( +19 ) – version 1.1
In a Web application, we often need to display pages like "about this site", "legal information", whose content are mostly static. There are several approaches to deal with this kind of pages.
tags: static pages

How to implement multiple page layouts in an application

Created 6 years ago by qiangTutorials2 comments – viewed 91,239 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

How to add a named scope to ActiveRecords with a behavior

Created 6 years ago by MikeTutorials2 comments – viewed 18,826 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 use markItUp! on a text field for full WYSIWYG editing

Created 6 years ago by lucifuriousTutorials2 comments – viewed 22,040 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 display page on fancybox...using CHtml::ajaxlink with yii validation

Created 2 years ago by Ankit ModiTutorials2 comments – viewed 10,049 times – ( +2 ) – version 1.1
1) include the fancybox extesion otherwise fancybox js

Help pages using Markdown view renderer

Created 2 years ago by nineinchnickTutorials2 comments – viewed 3,979 times – ( +2 )
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 6 years ago by jonahTutorials2 comments – viewed 22,666 times – ( +2 / -1 ) – 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 3 years ago by hasanaviTutorials2 comments – viewed 22,150 times – ( +6 ) – version 1.1
Hi,

XSS safe model content

Created 5 years ago by phirasTutorials2 comments – viewed 8,333 times – ( +4 ) – 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 5 years ago by Matt KelliherTutorials2 comments – viewed 11,403 times – ( +10 ) – version 1.1
In this tutorial we will be setting up a content type to be ordered by weight using the JUI Sortable plugin.