Wiki

Sorted by viewsX
Displaying 531-540 of 782 result(s).

Building Page Specific Menus using CMenu

Created 3 years ago by mistrybHow-tos1 comment – viewed 11,420 times – version 1.1
The Yii Framework provides a sweet functionality that allows you to easily create page specific menus. What does this mean? This allows you to create one layout or CSS styling for your menu, and when each page is loaded, a new set of menu items is loaded in. This is useful for context specific sidebars within your application.
tags: CMenu

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created 2 years ago by edoardo849How-tos2 comments – viewed 11,393 times – ( +6 ) – 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.

Automatic Parameter Binding to POST vars in Yii2

Created 3 years ago by aarondfrancisHow-tos2 comments – viewed 11,379 times – version 2.0
I wrote about this on my blog, but wanted to post it here too.
tags: yii2, controllers

Upload Files to Rackspace Cloud Files CDN

Created 3 years ago by StephenMiracleTutorials0 comments – viewed 11,313 times – ( +2 ) – version 1.1
** I actually made this into an extension for easier use. You can view the extension: http://www.yiiframework.com/extension/rackspaceconnect/

How to obtain a grammatically correct translation of the model name in giix-generated view files

Created 4 years ago by c@cbaHow-tos0 comments – viewed 11,272 times – ( +4 ) – version 1.1
The giix code generator has out of the box i18n support for model names and attribute labels (besides other cool features > check it out!) . But I want to factor in not only the plural form, but also the grammatical cases (especially the accusative) while translating 'Manage Objects', 'Create Object', 'Edit Object' etc.

Extending CJuiDialog

Created 4 years ago by dstudioHow-tos0 comments – viewed 11,266 times – ( +2 / -2 ) – version 1.1
Sometimes you have CJuiDialog with different content but same buttons (or width, height). If you don't want to repeat yourself this is a great solution:

Publish yii webapp using Git push

Created 4 years ago by rootbearHow-tos6 comments – viewed 11,258 times – ( +2 ) – version 1.1
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

How to get & store Last Login DateTime in database?

Created 2 years ago by Rohit SutharHow-tos2 comments – viewed 11,236 times – ( +7 ) – version 1.1
In this wiki I will show how could be store last login date & time in database. First we need a field LastLoginTime (Type must be datetime). this field store a user login detalis (like - Date & Time).

Using Pear Mail Mail_Mime and Mail_Queue

Created 5 years ago by LorenHow-tos2 comments – viewed 11,139 times – ( +7 ) – version 1.1
Create a component (/protected/components/PearMail.php) Edit this as needed based on where you put the files from PEAR.

How to create yii2 extension and push to github and register into packagist to allow end user install from composer

Created about a year ago by Scott_HuangHow-tos1 comment – viewed 11,135 times – ( +4 ) – version 2.0
1. Create Extension in yii2.