index.php在CI的解压目录下的,和system文件夹并列
<?php
//定义ENVIRONMENT,system_path,application_folder
//根据system_path,application_folder,定义常量BASEPATH,APPPATH,SELF,EXT,FCPATH,SYSDIR
*--------------------------------------------------------..
分类:
Web程序 时间:
2015-03-18 18:35:03
阅读次数:
224
<%
String path = request.getContextPath();
String basePath = request.getScheme()+”://”+request.getServerName()+”:”+request.getServerPor...
分类:
Web程序 时间:
2015-03-17 12:36:15
阅读次数:
138
1 ajax非异步调用,且调用函数具有返回值
function getEncoderInfo(id){
var encoder = [];
$.ajax({
type : "post",
url : basePath+"/management/source/findSourceById",
data : {
id:id
},
dataType :...
分类:
Web程序 时间:
2015-03-09 17:41:43
阅读次数:
207
1.设置本地化语言在protected/config文件夹下的main.php中做如下设置:return array( 'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..', 'name'=>'My Web Application'...
分类:
其他好文 时间:
2015-03-09 15:45:10
阅读次数:
123
jQuery('#user-grid').datagrid({url:basePath+'user-manager-list.html',width:870,height:338,fitColumns:true,pagination:true,rowIndex:'login_name',single...
分类:
其他好文 时间:
2015-03-05 18:39:35
阅读次数:
3817
<%@?page?contentType="text/html;charset=UTF-8"?language="java"?%>
<%
????String?path?=?request.getContextPath();
????String?basePath?=?request.getScheme()?+?"://"?+?request.g...
分类:
Web程序 时间:
2015-03-05 00:25:09
阅读次数:
255
1,web应用程序中添加ueditor目录(网上直接下载解压即可,最后附有下载地址)前端页面添加应用js 以及空间的容器 (@(BasePath)是网站虚拟根目录,可以不用关心) 2,controller中方法[Validate...
分类:
其他好文 时间:
2015-03-03 14:51:42
阅读次数:
109
在struts2应用中,通过获得绝对路径,简化代码:
方法一:
修改表单提交路径为绝对路径:
/user/login" method="post"/>
方法二:
表单提交路径不修改,但是:
1.在页面中添加如下代码:
String basePath=request.getScheme()+
"://"+request.ge...
分类:
其他好文 时间:
2015-02-08 09:08:48
阅读次数:
140
1 界面
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
">
My JSP 'index.jsp' start...
分类:
Web程序 时间:
2015-02-02 18:06:59
阅读次数:
268
ci/core/CodeIgniter.php是ci框架的核心处理文件,其处理流程如下:1require了3个文件BASEPATH
core/Common.php
core/Compat.php
APPPATH
config/constants.php2加载Benchmark,并打时间戳3加载Hooks,并调用钩子pre_system4加载Config、URI、Input和Language5加载并解析Rou..
分类:
Web程序 时间:
2015-01-29 19:44:10
阅读次数:
205