|
网站的目录结构为
chip(网站页面碎片存放目录)
css(css文件存放目录)
img(图片存放目录)
js(js存放目录)
system(CI框架目录)
|--
......
......
|-application
|-controllers
|-client.php
................
................
|-views
|-index.php
index.php 文件代码如下
<html>
<head>
<title>管理中心</title>
<meta http-equiv=Content-Type content=text/html;charset=utf-8>
</head>
<frameset rows="64,*" frameborder="NO" border="0" framespacing="0">
<frame src="/chip/admin_top.php" noresize="noresize" frameborder="NO" name="topFrame" scrolling="no" marginwidth="0" marginheight="0" target="main" />
<frameset cols="200,*" rows="560,*" id="frame">
<frame src="/chip/left.php" name="leftFrame" noresize="noresize" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" target="main" />
<frame src="/chip/right.php" name="main" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" target="_self" />
</frameset>
<noframes>
<body></body>
</noframes>
</html>
通过控制器加载试图文件 index.php 一切正常,但是我想给left.php传递参数,使用$this->load->view("index",$data);总是传递不成功。
按照http://codeigniter.org.cn/forums/thread-82-1-1.html这里的方法可以传递参数,但是如果我有很多页面,控制器就会变得很大。使用上面的那种加载方法,如何传递参数呢,请高手指教。 |
|