Wiki

Sorted by commentsX
Displaying 391-400 of 785 result(s).

How to validate CSRF token with session

Created 5 years ago by yangmlsHow-tos2 comments – viewed 53,218 times – ( +23 ) – version 1.1
First of all, You must change component config to enable the default Yii CSRF validation.
tags: CSRF, session

How to display static pages in Yii?

Created 7 years ago by qiangTutorials2 comments – viewed 61,056 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 7 years ago by qiangTutorials2 comments – viewed 103,436 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 use Expression in default AccessControl to allow only the owner to do some action

Created 3 years ago by whatifHow-tos2 comments – viewed 36,900 times – ( +8 / -1 ) – version 1.1
Hi Everyone

How to add a named scope to ActiveRecords with a behavior

Created 7 years ago by MikeTutorials2 comments – viewed 21,619 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.

Useful Multilanguage extensions collection and use.

Created 3 years ago by cihappyTips2 comments – viewed 6,222 times – ( +3 ) – version 1.1
What I want to achieve:

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

Created 7 years ago by lucifuriousTutorials2 comments – viewed 24,906 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 3 years ago by Ankit ModiTutorials2 comments – viewed 11,938 times – ( +2 ) – version 1.1
1) include the fancybox extesion otherwise fancybox js

How to handle decimal separators (e.g comma instead of dot) for l18n

Created 5 years ago by jpabloHow-tos2 comments – viewed 15,544 times – ( +2 ) – version 1.1
Yii i18n does not cover decimal format. Some languages like Spanish (I live in Argentina) uses comma ',' instead of dot '.' as decimal separator.

Help pages using Markdown view renderer

Created 3 years ago by nineinchnickTutorials2 comments – viewed 4,893 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.