PHP Framework queryphp Course: Getting Started six view templates

Source: Internet
Author: User
Tags php foreach
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
    • ?

?

?? ?? ? ?? ? ?? ? ?? ? ?? ? ?? ? ?? ?? $value):?> Cycle start Note: No. ?? ? ?? ? ?? ? ?? ? ?? ? ?? ? ?? ?? //Cycle end? ?? ? ?? ? ?? ? ?? ? ?? ? ?? ? ?? ?
Serial numberClass nametypeID
"> Show"> EditThe > Delete
?

?

echo $pager->getwholebar (url_for ("curd/index/page/:p Age"); Output paging navigation:p age will be replaced by paging pages

?

?

?

?


  • Related Article

    Contact Us

    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

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.