Wiki

Sorted by commentsX
Displaying 441-450 of 786 result(s).

Override/Eliminate Bootstrap CSS/JS for Yii 2.0 widgets

Created 3 years ago by Kartik VHow-tos2 comments – viewed 33,354 times – ( +38 / -5 ) – version 2.0
In Yii 2.0, the yii widgets that use Twitter Bootstrap CSS & JS directly, are part of the yii2-bootstrap extension, starting with yii/bootstrap namespace. For customizing bootstrap extension specific widget assets, you could configure your own assets (CSS/JS) using the new Yii Asset Manager in your Yii Config file. Something like:

Image Puzzle Game

Created 3 years ago by nachiOthers2 comments – viewed 4,862 times – ( +3 / -1 ) – version 1.1
I have developed a extension for a image puzzle game. You can use your own images and you can also customize how many rows and columns for the image. It can be used in commercial sites. I just needed your thoughts on the game.
tags: image, puzzle, game

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created 3 years ago by edoardo849How-tos2 comments – viewed 14,128 times – ( +6 / -1 ) – version 2.0
You are working with MongoDb and you have embedded documents in your collection that you want to easily map in your Model for CRUD operations.

Quick Tip about Pagination Params

Created 6 years ago by Antonio RamirezTips2 comments – viewed 30,104 times – ( +6 / -1 ) – version 1.1
Developing custom Grids and ListViews for my new CMS I was facing a small challenge: If I was to update/delete/batch delete items of my Grid, how would I return to the current page view?
tags: Pagination

Putting Function To Be Called In View

Created 6 years ago by junxiongTips2 comments – viewed 36,737 times – ( +6 / -2 ) – version 1.1
Sometimes we need some complicated view to be displayed (such as generating complicated table). Most people suggest that in MVC the View must be as simple as possible (don't have too much loops, etc). So what we have to do is to hide away the complex code by putting it at somewhere else. The following are few places options to keep the function:
tags: view, render

Simple example for language translation

Created 3 years ago by RKAHow-tos2 comments – viewed 22,305 times – ( +1 / -1 ) – version 1.1
Language translation is a common requirement in multi lingual sites. In Yii, we can translate using message and view translation.
tags: yii, i18n

How to "masquerade" a non-required form element as 'required' one (in the view only)

Created 5 years ago by BoazHow-tos2 comments – viewed 15,798 times – ( +7 / -2 ) – version 1.1
In a nutshell, the task at hand is to mark (or render) a model attribute in the typical "_form.php" view file with the 'required' red asterisk while this attribute is not marked as required in the model's rule() method. If you're interested only in the solution, jump ahead to the 'solution' section below.

How to hide index.php on Microsoft Windows Server with IIS7

Created 5 years ago by GiulianoHow-tos2 comments – viewed 21,876 times – ( +10 / -1 ) – version 1.1
I've seen lot of people struggling in finding a way to hide the script name when installing their Yii Application. In an Apache environment everything is well documented in this wiki article, but for those who are running their app on a Windows Server machine there are no hints.

The complete beginner's study guide for the Yii Framework

Created 5 years ago by Rodrigo CoelhoTips2 comments – viewed 90,121 times – ( +21 / -1 ) – version 1.1
Start studying the MVC pattern. You will understand the roles of the model, the view and the controller and know where goes each part of the code.

How to send emails using SMTP

Created 3 years ago by robregonmHow-tos2 comments – viewed 61,086 times – ( +8 / -1 ) – version 2.0
Follow @robregonm
tags: yii2, email, mail, mailer, smtp