$smarty->assign('ROOT_PATH',ROOT_PATH);$smarty->assign('ADMIN',ADMIN_PATH);
How should I write the path here? Because you might want to use URL rewriting later without relative path
Reply content:
$smarty->assign('ROOT_PATH',ROOT_PATH);$smarty->assign('ADMIN',ADMIN_PATH);
How should I write the path here? Because you might want to use URL rewriting later without relative path
You this is the WWW root directory is the physical path, you must modify the path for HTTP access only line
For example:./admin/do.php?act=login
The URL root of the Web page is based on the root directory of the current site, so in the browser is not able to access the file outside the directory, so you can not directly use D: This file absolute path as a URL.
If you configure the domain name, your site root directory is D:/phpStudy/www/blog1 , then the URL is: (域名)/admin/do.php?act=login .
If you do not configure the domain name, your site root directory is D:/phpStudy/www , then the URL is: localhost/blog1/admin/do.php?act=login .