Wiki

Sorted by viewsX
Displaying 541-550 of 785 result(s).

Create/Develop View files with plain HTML (Without using ActiveForm Class)

Created 3 years ago by kalpitHow-tos2 comments – viewed 12,388 times – ( +2 / -3 ) – version 1.1
Today i want to share with you is "How can we write HTML Code in view files? I am writing this article because many times we can not use CActiveForm to design our form...
tags: views, tutorial

Yet another implementation of CPhpAuthManager.

Created 4 years ago by seenivasanHow-tos3 comments – viewed 12,364 times – ( +8 / -2 ) – version 1.1
In this wiki, I try to implement a simple authorization schema without putting much logic inside a file or into database table. We are constructing authorization hierarchy inside the controller. We are getting roles for the current user from database table and assigning only roles to user that are declared in the particular controller. We have brought down the work of loading of auth data at main application level to controller level. This way we have pulverised auth data for entire site into smaller units. Finally we are going to look at couple of examples.

How to display page on fancybox...using CHtml::ajaxlink with yii validation

Created 3 years ago by Ankit ModiTutorials2 comments – viewed 12,299 times – ( +2 / -1 ) – version 1.1
1) include the fancybox extesion otherwise fancybox js

Getting nulls from database instead of empty strings

Created 6 years ago by samdarkTips2 comments – viewed 12,260 times – ( +13 / -1 ) – version 1.1
To get null from database instead of empty strings you need to set up your DB connection as follows:
tags: database, null

Publish yii webapp using Git push

Created 5 years ago by rootbearHow-tos6 comments – viewed 12,195 times – ( +2 / -1 ) – 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

Upload Files to Rackspace Cloud Files CDN

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

Background task with Ajax

Created about a year ago by Alexandre RodichevskiTutorials0 comments – viewed 11,992 times – ( -1 ) – version 1.1
Web applications normally execute almost immediately the user's requests. But some requests, like statistical reports, take long time to execute.

Building Page Specific Menus using CMenu

Created 4 years ago by mistrybHow-tos1 comment – viewed 11,953 times – ( -1 ) – 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

Yii code completion and calltips in Komodo Edit

Created 6 years ago by viterTips1 comment – viewed 11,947 times – ( +6 / -1 ) – version 1.1
My favourite editor is Komodo Edit (free and crossplatform) and I use it for my everyday coding work. Just recently I found out how to make it help me to work with Yii. :) So follow these steps:
tags: Komodo Edit

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

Created 5 years ago by c@cbaHow-tos0 comments – viewed 11,916 times – ( +4 / -1 ) – 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.