您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

【PHP开发】搭建购物网站之定义核心控制器

2024/2/26 1:28:45发布20次查看
本篇文章的主要内容是搭建购物网站之定义核心控制器,感兴趣的朋友可以学习一下。
实现跳转的方法:
1.php中header的函数
2js中location函数
3.html中的meta函数
引入message.html
<meta http-equiv="refresh" content ="<?php echo $wait;?> ;url=<?php echo $url;?>"/><link href="application/views/admin/styles/general.css" rel="stylesheet" type="text/css" /><link href="application/views/admin/styles/main.css" rel="stylesheet" type="text/css" /><td style="font-size: 14px; font-weight: bold"><?php echo $message;?></td></tr><tr><td></td><td id="redirectionmsg"><?php echo $wait;?> 秒之后跳转</td></tr><tr><td></td><td><ul style="margin:0; padding:0 10px" class="msg-link"> <li><a href=""></a></li></ul></td></tr></table></div></div>
建立一个基础控制类
<?phpclass controller{ //跳转方法 public function jump($url,$message,$wait=3){ if($wait==0){ header("location:$url"); }else{ include cur_view_path."message.html"; } exit();//一定要退出die一样。 }}?>
相关教程:php视频教程
以上就是【php开发】搭建购物网站之定义核心控制器的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product