Codeigniter路线没有显示任何内容

时间:2018-05-10 07:31:31

标签: php codeigniter

我正在处理一个我尚未开发并且无法正常工作的codeigniter应用程序,如果我请求主网址没有调用主控制器(我尝试过的每条路线都获得了404错误),浏览器显示列出的目录。

使用codeigniter进行同一服务器上的另一个没有任何更改的项目可以正常工作,

任何人都知道可能出现什么问题?

1 个答案:

答案 0 :(得分:0)

确保您已在ALTER FUNCTION[dbo].[getPaye] (@grosspay MONEY) RETURNS MONEY AS BEGIN -------------different income bands DECLARE @lowerlimit MONEY = 215000 DECLARE @midlimit MONEY = 335000 DECLARE @upperlimit MONEY = 410000 DECLARE @newupperlimit MONEY = 10000000 --------------different percentages DECLARE @lowerpercent AS DECIMAL(3, 2) = 0.1 DECLARE @midpercent AS DECIMAL(3, 2) = 0.2 DECLARE @upperpecent AS DECIMAL(3, 2) = 0.3 --------------------return value DECLARE @payeamount AS MONEY ----------------for incomes below 215,000 ..no tax paid IF @grosspay <= @lowerlimit BEGIN set @payeamount = 0 END -------for income less than or equal to 335,000, tax the difference between the income and 215,000 at 10% IF @grosspay <= @midlimit BEGIN SET @payeamount = (@grosspay - @lowerlimit) * @lowerpercent END -------for Income less than or equal to 410,000, tax the difference between the incomes and 335,000 at 20% plus 10,0000 IF @grosspay <= @upperlimit BEGIN SET @payeamount = 10000 + (@grosspay - @midlimit) * @midpercent END --- for income less than or equal 10,000,000 tax the difference between the income and 410,000 at 30% plus 25,000/= IF @grosspay >= @newupperlimit BEGIN SET @payeamount = 25000 + (@grosspay - @upperlimit) * @upperpecent END -----for income above 10,000,000 tax than difference between the income and 410,000 at 30% plus 25,000 plus 10% *(Income-10,000,000) IF @grosspay > @newupperlimit BEGIN SET @payeamount = 25000 + (@grosspay - @upperlimit) * @upperpecent + (@grosspay - @newupperlimit) * @lowerpercent END RETURN @payeamount END 中添加项目文件夹,如下所示

base_url

并使用此代码更新您的$config['base_url'] = 'http://'.$_SERVER['SERVER_NAME'].'/project_folder/'; $config['index_page'] = ''; 文件

.htaccess