Home >CMS Tutorial >PHPCMS >How to cite images in PHPCMS?
PHPCMS How to cite images?
First upload the image to the images folder under statics of PHPCMS;
Path: phpcms\statics\images
Then create the img tag in the page, And specify the width and height of the img tag as the width and height of the image;
<img width="300" height="200">
Finally, set the src of img to {IMG_PATH} plus the image name.
<img src="{IMG_PATH}user-cover.jpg" width="300" height="200">
{IMG_PATH} is the path to get the image in the images file under static. Here phpcms officially provides a method to get the value, which saves us from having to go through the URL. Quotation is cumbersome.
Recommended tutorial: "PHPCMS Tutorial"
The above is the detailed content of How to cite images in PHPCMS?. For more information, please follow other related articles on the PHP Chinese website!