Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 141-150 of 189 result(s).

yii vim eclimd how it works

Created 2 years ago by RusAlexHow-tos1 comment – viewed 5,552 times – ( +10 )
I want to create a wiki page, and therefore im opening this discussion on this forum, for answering all questions and see other opinions, how do you use vim with yii.
tags: vim, eclimd, vimrc

Create sitemap.xml file dynamically on root folder with one hit

Created 7 months ago by kiran sharmaHow-tos1 comment – viewed 4,227 times – ( +4 / -1 )
I had created one controller file which can create sitemap.xml file(which is used for seo, google crawler and many other puropse) dynamically with one run.
tags: SEO, SiteMap, XML

How to use YiiBooster Bootstrap Gallery

Created 6 months ago by Antonio RamirezHow-tos1 comment – viewed 8,844 times – ( +4 )
Since version 1.0.4, Yii developers can make use of the image gallery provided by Sebastian Tshan, a great javascript developer that has created some true gems like the jquery file upload plugin.

Configuring controller access rules to default-deny

Created 2 years ago by Steve FriedlHow-tos1 comment – viewed 31,248 times – ( +10 )
Starting with the blog tutorial, Yii developers are familiar with the notion of access rules defined in the controller, where the actions are allowed or denied depending on the user's name or role.

MigrateCommand class for multiple sites using one code base

Created 6 months ago by Hudson NguyenHow-tos1 comment – viewed 2,085 times – ( +1 )
My CMS supports multiple sites using one code base therefore the db connection can only be configured by detecting the site's domain.

Using Bootstrap with LESS

Created 4 months ago by Chris83How-tos1 comment – viewed 12,449 times – ( +14 )
I discovered Twitter Bootstrap almost two years ago. After trying it out for a while I fell in love with it. It didn't take long before I realized that it would be great to write an extension that allowed developers to start using Bootstrap in their Yii projects. One night I sat down and started writing what later became my now popular bootstrap extension. Now that the extension is quite widely used in the community I felt that it was time to write about how to use Bootstrap to its full potential. If you use the Bootstrap CSS files you're really missing out on some great features. After reading this article you'll be able to take full advantage of Bootstrap using LESS.

Limit a CGridView field to some preset length.

Created 3 months ago by le_topHow-tos1 comment – viewed 2,702 times – ( +9 )
Sometimes text inside a gridview column is just too long. That's why I figured out a way to make the column smaller while still providing the information.

Open Dialog from ajax content

Created 3 months ago by TouzasHow-tos1 comment – viewed 4,629 times – ( +3 / -1 )
This tutorial will show you how to create Ajax dialog. It's very simple code.

How to change Migration Table name and use defined prefix.

Created 2 months ago by JorgeeHow-tos1 comment – viewed 1,532 times – ( +3 )
To accomplish the task of changing Migration table's name, by default tbl_migration, you need to add the following in your ./protected/config/console.php.

Using a CDbDataReader (sql query result) in a zii widget (such as CGridView or CListView)

Created about a year ago by Revelis Luc BonninHow-tos1 comment – viewed 13,426 times – ( +9 / -1 )
If in your application you have to proceed to a complex SQL query that is not associated to a model, you will use CDbDataReader like it is described in the Yii documentation. An example could be