PHP Framework queryphp Tutorial: Getting Started six view templates
Use native PHP code tags?
Read the manual:?
PHP provides some alternative syntax for process control, including If,while,for,foreach and switch.
The basic form of an alternative syntax is to replace the left curly brace ({) with a colon (:) and a closing curly brace (}).
Change to Endif;,endwhile;,endfor;,endforeach respectively; and Endswitch;.?
How many more labels can be made?
Url_for () modify function for URL address Use this function to set the address?
Template tags use the url_for () function Example:
- "> Add a new record
- The > Data list
Url_for (); Add a true parameter is bound to return the dynamic address
">
?
Template tags use the Foreach Loop example:
?
?
?
<title>Curd Demo</title>?
?
?
?
- "> Add a new record
?
- The > Data list
?
?
??
?? ?
Serial number | ?? ?
Class name | ?? ?
typeID | ?? ?
| ?? ?
| ?? ?
| ??
?? $value):?> Cycle start Note: No.
?? ?
| ?? ?
| ?? ?
| ?? ?
"> Show | ?? ?
"> Edit | ?? ?
The > Delete | ??
?? //Cycle end?
?? ?
| ?? ?
| ?? ?
| ?? ?
| ?? ?
| ?? ?
| ??
?
?
?
echo $pager->getwholebar (url_for ("curd/index/page/:p Age"); Output paging navigation:p age will be replaced by paging pages
?
?
?
?