English 中文(简体)
它意味着与主要地点指数相对立案。 密码用户的网址?
原标题:What does it mean for a file path to be relative to the main site index.php file in codeigniter?

在密码用户中使用文档和溪流,我遇到的一个问题是,像露天这样的功能无法在同一夹中发现一个档案。 例如,

如果我的职能和档案都属于ELPER,那么我可以简单地指出(档案、文件)是空洞的,因为它刚刚赢得检测。

因此,我前往现场查看有关档案的文件。

www.un.org/Depts/DGACM/index_spanish.htm 注:这条道路与你的主要网站索引.php档案、NOT 你的控制器或浏览文档相对。 《守则》承认使用前线控制器,因此道路总是与主站点指数相对。

因此,我改变了申请/求助者/档案名称的道路,并发挥了作用。

我知道,这是由于前线控制员(指数.php)而导致的某种改道,但我的理解不完整。 难道有人能向我解释一下,当我尝试像开放这样的东西时, CI究竟发生了什么?

感谢你时间。

最佳回答

这很简单。 只有一个文件处理控制员/模型/助手(称为“框架主计长”):<代码>/index.php。 因此,这一切都是通过这一文字进行的。

如果需要列入一些内容,则与<编码>index.php相对。 一种良好做法是,使用《识别法》环境的常数把你的档案包括在内。 http://jimdoescode.blogspot.com/101/some-codeigniter-constants.html”rel=“nofollow”http://jimdoescode.blogspot.com/201101/some-codeigniter-constants.html。

例如:

<?php
include(APPPATH ."/helpers/my_helper.php");
?>
问题回答

暂无回答




相关问题
Code snippet paths in GCC

Background: Keil C51 on a PC, currently moving to GCC (CrossPack-AVR) on an iMac. Since I write firmware for micro s I have a lot of driver source files etc. that I need to include with my programs,...

C#/.NET app doesn t recognize Environment Var Change (PATH)

In my C# app, I am programmatically installing an Oracle client if one is not present, which requires adding a dir to the PATH system environment variable. This all works fine, but it doesn t take ...

PHP absolute path to file URI

In order to refer to a local DTD when using PHP SimpleXML, I need to convert the absolute path into a file type URI. For example, convert /home/sitename/www/xml/example.dtd to file:///home/sitename/...

Check if files with absolute and relative path exists

Is there a way to check whether files (with either an absolute or relative path) exists? Im using PHP. I found a couple of method but either they only accept absolute or relative but not both. Thanks.

How to get file path of the file with the running-vba code

I want to get the folder path from the file who is running the vba-code. For example: the vba-code is in the file C:myfolderfile.accdb and I want the vba-code to return C:myfolder Is that ...

热门标签