PHP framework queryphp Tutorial: how to use the native php code label in the getting started 6 view template? Read the manual :? PHP provides alternative syntaxes for process control, including if, while, for, foreach, and switch. The basic form of the alternative syntax is to replace left curly braces ({) with colons (:) and right curly braces (}) with endif;, endwhile;, endfor ;, endforeach PHP framework queryphp Tutorial: Getting started 6 view template
Use Native php code labels?
Read the manual :?
PHP provides alternative syntaxes for process control, including if, while, for, foreach, and switch.
The basic form of the alternative syntax is to replace left curly braces ({) with a colon (:) and right curly braces (})
Endif;, endwhile;, endfor;, endforeach; and endswitch ;.?
How many other labels can be used?
How can I use url_for () to modify the url function?
Example of using url_for () as a template tag:
- "> Add New Records
- "> Data list
Url_for (); adding a true parameter will definitely return a dynamic address.
">
?
Example of using foreach loop for template labels:
?
?
?
CURD demo?
?
?
?
- "> Add New Records
?
- "> Data list
?
?
?
? ?
? ?
? ?
? ?
? ?
? ?
?
? $ Value):?> Cycle start note: number
?
? ?
? ?
? ?
? ?
? ?
? ?
?
? // The loop ends.
?
? ?
? ?
? ?
? ?
? ?
? ?
?
?
?
Serial Number | ?
Class name | ?
Typeid | ?
| ?
| ?
| ?
?
?
| ?
| ?
| ?
"> Display | ?
"> Edit | ?
"> Delete | ?
?
?
| ?
| ?
| ?
| ?
| ?
| ?
?
?
?
Echo $ pager-> getWholeBar (url_for ("curd/index/page/: page"); // output page navigation: page will be replaced by the page number
?>?
?
?
?