Home >Backend Development >PHP Tutorial >请问tomatocms的改变控制器有关问题

请问tomatocms的改变控制器有关问题

WBOY
WBOYOriginal
2016-06-13 10:19:211017browse

请教tomatocms的改变控制器问题?
tomatocms的后台管理地址是http://(domains)/index.php/admin,对应的目录是core里的controllers,但点后台里的http://(domains)/index.php/admin/category/list却可以转换到category里的controllers去了,请问对tomatocms框架熟悉的朋友,tomatocms是如何改变对应的控制器的?在哪个文件里写了?

------解决方案--------------------
主要通过如下文件完成的:
/app_tomatocms/application/modules/core/config/routes/dashboard.ini
定义路由
/app_tomatocms/libraries/Tomato/Module/Loader.php
加载路由

/app_tomatocms/application/plugins/adminaccess/Plugin.php
/app_tomatocms/libraries/Tomato/Controller/Plugin/Admin.php
路由的解析分发

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn