thinkphp examples of use of hollow formwork and empty modules, thinkphp Hollow
This paper describes the use of Thinkphp hollow formwork and empty modules. Share to everyone for your reference. The implementation method is as follows:
1. Empty operation
Copy the Code code as follows: function _empty ($name) {
$this-]show ("$name does not exist [a href= ' __app__/index/index '] return home [/A]");
}
2. Empty module
Copy the Code code as follows: Class Emptyaction extends action{
function index () {
$city =m (' City ');
$arr = $city-]select ();
$this-]assign (' list ', $arr);
$name =module_name;//Get the module name of the current address bar
$this-]display ("City: $name");//reference the corresponding module
}
}
It is hoped that this article will be helpful to everyone's thinkphp framework design.
http://www.bkjia.com/PHPjc/917681.html www.bkjia.com true http://www.bkjia.com/PHPjc/917681.html techarticle thinkphp Examples of the use of hollow formwork and empty modules, thinkphp Hollow This paper describes the use of Thinkphp hollow formwork and empty modules. Share to everyone for your reference. Concrete implementation methods such as ...