Home  >  Article  >  Backend Development  >  How does the slim framework create a controller layer?

How does the slim framework create a controller layer?

WBOY
WBOYOriginal
2016-08-10 09:07:191178browse

How does the slim framework create a controller layer?
This is the effect I want to achieve

Reply content:

How does the slim framework create a controller layer?
This is the effect I want to achieve

<code>$app->get('/test', '\HomeController:show');</code>

The document clearly explains how to create a controller

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