I have a calls which help me display json directly in html table.
I have a calls which help me display json directly in html table.
Some PHP installations may use a different php.ini
file for CLI PHP (command line PHP parser). As a result, when running the model
or crud
command in yiic shell
, you may encounter errors like "YiiBase::include(PDO.php): failed to open stream..." or "...could not find driver", even though the requirement checker confirms you have PDO and the corresponding database driver.
When you need to integrate with other frameworks (e.g. Zend Framework), you have to follow these steps:
Yii's ActiveRecord classes are powerful, but they fall short when you want to have a configurable table prefix for your application.
In this post I am going to describe a solution to make your yii-based web application safe from illegal content injections.
If we want to set meta tags on a per page (controller-action) basis, we may use the clientScript application component.
In order to nicely display flash Messages, create view like this called views/site/dialog.php :
It is a common case coders often come accross. For example the purpose of these checkbox is to mark records to be deleted
Followings are the simple steps to put an analogue clock widget on your skeleton application that is just generated by yiic.
A simple trick to get the localized version of a model field is to add this little method to your models.
p.s. latest version of this tutorial is always available unter the docs/ folder of the User Management Module.
During development, it's often very handy to have SQL logging and profiling.
Often happens to have the need of change a part of the page with ajax.
Almost all the information you need whilst working with yii is written in the Class Reference.
The keywords will be stored in a text field in a comma delimited format. The keywords will be created by the site administrator.
This tutorial will show you how to use the Pogostick Yii Extension Library to make an HTML TEXTAREA input element into a full-fledged WYSIWYG editor pretty much with very little code.
Here is a quick tutorial for connecting Yii with Twitter using the Pogostick Yii Extensions Library.
>Highslide JS is an open source JavaScript software, offering a Web 2.0 approach to popup windows. It streamlines the use of thumbnail images and HTML popups on web pages. > > + No plugins like Flash or Java required. > + Popup blockers are no problem. The content expands within the active browser window. > + Single click. After opening the image or HTML popup, the user can scroll further down...
While yiic shell
tool is very convenient at generating skeleton code in our application, the generated code is not always what we want. For example, we may want the generated code to carry specific copyright information; we may want to use our own coding style; we may want to add more features; and so on. All these can be accomplished easily in Yii.