Wiki

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

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

Created 7 months ago by kiran sharmaHow-tos1 comment – viewed 4,228 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

model rules depended by user roles-permissions

Created about 9 hours ago by KonApazHow-tos0 comments – viewed 213 times – ( +2 )
This is a reference about model validators and user roles. In many cases we want model validators to applied only for some privileged users or not

Adding Bash Command Completion for Yii Commands

Created about a year ago by Dustin OpreaHow-tos0 comments – viewed 4,163 times – ( +2 )
This article discusses the installation/configuration of the YiiBash project (https://github.com/dsoprea/YiiBash).

Publish yii webapp using Git push

Created 11 months ago by rootbearHow-tos6 comments – viewed 3,779 times – ( +2 )
I did not invent this instructions, I read it somewhere and re-organized in my way as I was trying and it works for me;
tags: git

Using phpseclib with Yii

Created 8 months ago by nkdHow-tos6 comments – viewed 3,593 times – ( +2 )
I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does not requite mcrypt to be installed in the phpserver!
tags: security

caching controllers with filters()

Created 2 years ago by RusAlexHow-tos0 comments – viewed 6,888 times – ( +2 )
Hello, this article will describe some aspects about caching controllers with filters() method in your controller. And I will describe some problems I meet when using this approach for caching, the main problem was

Multilanguage Lorem Ipsum Text Generator

Created 6 months ago by yasenHow-tos0 comments – viewed 2,553 times – ( +2 )
Taking futher the idea from Piotr Masełkowski - http://www.yiiframework.com/extension/elipsum/ here's how to generate multilanguage Lorem Ipsum text. This example uses English and Bulgarian sample paragraphs. Create a class in /protected/components/LoremIpsum.php. Wall of text incoming wohoo...

Prevent asset publishing for CListView

Created 2 years ago by MikeHow-tos2 comments – viewed 5,512 times – ( +2 )
If you don't want to use any of the AJAX features of CListView and thus want to prevent that it publishes any of its asset files, you can extend it and create a sub class like this:
tags: CListView, Assets