To achieve a simple weather forecast, the following figure:
/*
*weather.php
*code:
*/
Weather here is: City the temperature is Temperature Wind Direction: Direction Wind
Cjuiresizable allows the UI component included in it to support scaling, which encapsulates the JUI resizable plug-in,
Cjuiresizable Basic use of the following methods:
beginwidget (' zii.widgets.jui.CJuiResizable ', Array (
' Options '
In the previous article, if you use UI components to support drag-and-drop, cjuidroppable indicates that a zone can accept dragged UI components that encapsulate JUI droppable plug-ins.
We modify the previous example to add a droppable area that
Cjuidraggable enables drag-and-drop functionality for other UI components that contain it, encapsulating JUI draggable plug-ins.
To enable a UI component to be dragged and dropped, the following are the basic uses of cjuidraggable:
beginwidget ('
Cjuisliderinput displays a slider that also encapsulates the JUI slider plug-in, which can be used as a user input UI component in form.
The basic usage is as follows:
beginwidget (' cactiveform ');?>
errorsummary ($model);?>
widget (
Cjuidialog is used to display dialog boxes, modes, or modeless dialogs. It encapsulates the JUI dialog plug-in.
Its basic usage is as follows
beginwidget (' Zii.widgets.jui.CJuiDialog ', array (' ID ' => ' mydialog ', ' options
'
Cjuibutton Display button, Cjuibutton can be either a submit button or a normal button.
The basic use of buttons is as follows:
widget (' Zii.widgets.jui.CJuiButton ', Array (
' ButtonType ' => ' submit ',
' name ' => ') Btnsubmit ',
' value ' =>
Cdetailview displays details for a model. The model to be displayed can be either a cmodel or an associative array.
Cdetailview configure attributes to determine which properties of the model need to display in what format.
Each property can be
Some days ago because the business needs to write a calculation of the combination of code, today sorted out for later use
/*** Mathematical problems to solve: calculate the composition of C (a,1) * C (b, 1) * ... * C (n, 1), where C (n, 1)
Effect Chart:
Remember before I saw a page number way of paging effect, the number of pages more folding lines continue to show up to more than 60 pages, hehe! A little influence beautiful!
So I wrote a page-numbering program that automatically
Using proxy class Classonedelegator to replace the Classone class to implement his approach
The demo is shown in the following code:
class ClassOne { function callClassOne() { print "In Class One"; } } class ClassOneDelegator { private $targets;
There are two tables in the database: Large classification Bigtype table and small classification Smalltype table.
Bigtype in the table: Id,bigname;
Smalltype in the table: Smallid,bigid,smallname;
Train of thought: (mainly according to gourd,
Principle: Generate a picture, and save the characters displayed in the picture to the session. When landing to determine whether the input check code and the session commander of the same code.
This is the file that generates the checksum code and
Cclipwidget provides a feature like recording "Macros," where the content between Cclipwidget Init and run can be stored in a controller clip variable, and then replayed back to any other location.
The basic uses of the Cclipwidget package are
Gamecontroller that are defined in hangman use the properties Word, which can be read and written using the $this->word format, but actually the method that corresponds to this property in Gamecontroller is
/**
* @return string The word to is
This is a more comprehensive PHP face test. It should be helpful for developers who are ready to go to a new company to apply for PHP jobs.
Or, to recruit PHP developers of the enterprise also some help, but do not print out the original test, a
A static member of a class differs from a general class member: A static member is independent of an instance of an object, and is related only to the class itself. They are used to implement the functionality and data that a class encapsulates, but
1. Need a session file, this of course is used to determine whether the administrator of the PHP file.
2. Need a getip.php file, this is to obtain the routing IP, but also for the administrator to judge.
3. Official start of the core document. In
Now a lot of friends who have a personal homepage or blog choose to hire a virtual host, while a considerable part of the virtual host support PHP. If you have a host space that supports PHP, is there any use of PHP to arm your site?
Can you get
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service