简体   繁体   English

在codeigniter的文件夹内加载页面

[英]load a page inside a folder in codeigniter

I have changed the name of codeigniter and placed htdocs then in application folder I have created a new folder in that new folder again I created some folders for different web pages in each and every folder I added controllers,models,view files. 我已经更改了codeigniter的名称,然后将htdocs放置在应用程序文件夹中,然后在该新文件夹中再次创建了一个新文件夹,并在每个添加控制器,模型,查看文件的文件夹中为不同的网页创建了一些文件夹。 Now I want to access a controller file which is in the new folder. 现在,我要访问新文件夹中的控制器文件。

I tried with default route but not working..Can anyone suggest 我尝试使用默认路由,但无法正常工作。有人可以建议吗

Create as many folders as you want inside the controller model and view folders in CodeIgniter and not outside them if you really want to organise them. 在控制器模型内创建所需数量的文件夹,并在CodeIgniter中查看文件夹,如果确实要组织它们,则不在文件夹外部。

Remember to set base URL in application/config/config.php file and default router inside the application/config/routes.php file. 记住要在application / config / config.php文件中设置基本URL,并在application / config / routes.php文件中设置默认路由器。

If you have problems please comment below describing errors. 如果您有问题,请在下面描述错误,并进行评论。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM