Wiki

Sorted by commentsX
Displaying 541-550 of 752 result(s).

Open bootstrap modal and load content via Ajax

Created about a year ago by JbalTeroHow-tos1 comment – viewed 25,931 times – ( +3 ) – version 1.1
My goal here is to Open bootstrap modal and load ANY content using ajax response.

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

Created 2 years ago by Alexander PalamarchukTips1 comment – viewed 5,855 times – ( +2 / -1 ) – version 1.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

How to read HTML5 Multiple File Input from controller?

Created about a year ago by Kartik VHow-tos1 comment – viewed 4,535 times – ( +36 / -4 ) – version all
Ok, so you have a HTML 5 file input markup on your view and you have enabled multiple attribute to true. You may also be using widgets based on HTML5 input like \kartik\widgets\FileInput. But when you read a file in Yii controller using CUploadedFile (Yii1) or UploadedFile (Yii2), you do not see a list of multiple files that you selected in your view, but only one row. Your HTML markup in your view would be something like this and you don't know why this is not working?

yii vim eclimd how it works

Created 4 years ago by RusAlexHow-tos1 comment – viewed 8,183 times – ( +10 ) – version 1.1
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

Yii2 default values for Index data Provider

Created about a year ago by CTalaTips1 comment – viewed 5,297 times – ( +2 ) – version 2.0
Guys,

Create custom button button with AJAX function in CGridView

Created 2 years ago by nkdHow-tos1 comment – viewed 42,718 times – ( +17 ) – version 1.1
CButtonColumn in CGridView can be customised to include user built buttons. To learn a great deal about including custom buttons, read this excellent wiki. This tutorial will show how to call an action from one custom button using AJAX instead of regular GET calls.

Yii 2 list of path aliases available with default basic and advanced app.

Created about a year ago by Kartik VTips1 comment – viewed 23,999 times – ( +42 / -5 ) – version 2.0
If you are coming over from Yii 1.x to Yii 2, and already read this guide, you may note that namespaces are very important in Yii 2 to identify classes. But do you know the list of seeded path aliases that come shipped with a basic or advanced app? Here is my attempt to list them.

URL component access functions

Created 4 years ago by Steve FriedlTips1 comment – viewed 11,504 times – ( +28 ) – version 1.1
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 2 years ago by kiran sharmaHow-tos1 comment – viewed 12,401 times – ( +5 / -5 ) – version 1.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

caching controllers with filters()

Created 4 years ago by RusAlexHow-tos1 comment – viewed 11,022 times – ( +2 ) – version 1.1
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