Wiki

Sorted by commentsX
Displaying 351-360 of 470 result(s).

Functional tests independing from your urlManager settings

Created 2 years ago by RusAlexTips1 comment – viewed 5,366 times
If you are testing your app and use urlManager in your config, sometimes you will find a problem: you want to test your site independing from urlManager settings. in that way you need to extend your WebTestCase class by this method:

Making friends' configs, DB credentials and paths with version control

Created 7 months ago by Alexander PalamarchukTips1 comment – viewed 2,727 times – ( +2 / -1 )
In many cases developers of one project use their own local environments for coding. There may be a common test platform and, of course, production. All these environments usually have different DB credentials and directory structures (first of all, path to YII framework directory). Another feature is debugging. It's convenient to turn it on for local environments, eventually - on the test server and never (generally speaking) - on the production.
tags: config

yii vim eclimd how it works

Created 2 years ago by RusAlexHow-tos1 comment – viewed 5,453 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

URL component access functions

Created 2 years ago by Steve FriedlTips1 comment – viewed 7,795 times – ( +28 )
Many applications wish to obtain parts of the URL for the current page (the hostname, the query string, etc.), and the CHttpRequest class wraps various $_SERVER variables to break down the URL into its constituent parts.
tags: URL, request

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

Created 6 months ago by kiran sharmaHow-tos1 comment – viewed 3,964 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 5 months ago by Antonio RamirezHow-tos1 comment – viewed 8,029 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 29,597 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 5 months ago by Hudson NguyenHow-tos1 comment – viewed 2,008 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.

A simple action for XUpload extension

Created 2 years ago by tydeas_drTips1 comment – viewed 9,734 times – ( +3 )
All the basic functionality for an action used by the xupload extension. Check resources for the source code of this action
tags: tips, xupload, caction

Logout CSRF Protection

Created 2 years ago by Rodrigo CoelhoTutorials1 comment – viewed 9,312 times – ( +10 )
CSRF is the acronymn for Cross-site request forgery. It is an attack which forces an end user to execute unwanted actions on a web application in which he/she is currently authenticated.