移动网站已破坏CodeIgniter模块
问题描述:
I had to move my site to another host and now the codeigniter installation is failing. I've fixed a few problems, but some of my modules break when I try to save changes. The end up going to the following url
admin/index.php/admin/index.php
is that right?
我不得不将我的网站移动到另一台主机,现在codeigniter安装失败了。 我已经修复了一些问题,但是当我尝试保存更改时,我的一些模块会中断。 最终转到以下网址 p>
admin / index.php / admin / index.php
code> pre>
是吗? p>
div>
答
It turned out that the person who had origionally implemented the system had used a differnt bit of code to get the base script for each module, so I had to go through and change each module.
For the admin module it turned out it was to do with changes in how the two differnt versions of php dealt with paths.
答
Your paths are relative. Put before an /
or write using base_url()