YThink is a content management system based on ThinkPHP5.1 (LTS) and layui. After work, I have some ideas of my own. I developed the YThink content management system based on ThinkPHP5.1 and the front-end framework LayUI. It is not actually a CMS, but some projects can be developed on this basis, which can save some work. For example, the backend management system has been set up, using layui, and has implemented some functions, such as single-page module, content module, picture module, online messages, friendly links, membership and permission management, etc. As well as some front-end functions, member registration, login, mini program authorization and other related functions. During the development process, we drew on the functions and features of many excellent CMS systems.
Developed based on ThinkPHP 5.1 (LTS), the front frame is LayUI 2.4.5.
Note: The running environment of ThinkPHP5 requires PHP5.6 or above, and PHP7 or above is recommended.
After downloading, use composer install to install the dependencies required for the project~~~ composer install ~~~
Create a database such as y_think and run y_think.sql in the root directory to initialize it.
For other deployment operations, please refer to ThinkPHP.
The directory structure remains consistent with ThinkPHP, except that the application and view directories have been adjusted.
www WEB deployment directory (or subdirectory)
├─application application directory
│ ├─common public module directory
│ │ ├─controller Base controller directory
│ │ ├─model public model directory
│ │
│ ├─admin background management module
│ │ ├─common.php module function file
│ │ ├─controller controller directory
│ │ ├─model model directory
│ │ ├─validate validator directory
│ │ └─ ... more library directories
│ │
│ ├─api API interface module
│ │ ├─config module configuration information
│ │ ├─controller controller directory
│ │ └─ ... more library directories
│ │
│ ├─index front-end module
│ │ ├─controller controller directory
│ │ └─ ... more library directories
│ │
│ ├─command.php command line definition file
│ ├─common.php public function file
│ └─tags.php application behavior extension definition file
│
├─config application configuration directory
│ ├─module_name module configuration directory
│ │ ├─database.php database configuration
│ │ ├─cache cache configuration
│ │ └─ ...
│ │
│ ├─app.php application configuration
│ ├─cache.php cache configuration
│ ├─cookie.php Cookie configuration
│ ├─database.php database configuration
│ ├─log.php log configuration
│ ├─session.php Session configuration
│ ├─template.php template engine configuration
│ └─trace.php Trace configuration
│
├─route route definition directory
│ ├─route.php route definition
│ └─... more
│
├─public WEB directory (external access directory)
│ ├─static static resource directory
│ ├─template front-end and back-end HTML template directory
│ ├─favicon.ico web icon, just replace it directly
│ ├─index.php entry file
│ ├─router.php quick test file
│ └─.htaccess for apache rewriting
│
├─thinkphp framework system directory
│ ├─lang language file directory
│ ├─library framework library directory
│ │ ├─think Think class library package directory
│ │ └─traits System Trait directory
│ │
│ ├─tpl system template directory
│ ├─base.php base definition file
│ ├─console.php console entry file
│ ├─convention.php framework convention configuration file
│ ├─helper.php helper function file
│ ├─phpunit.xml phpunit configuration file
│ └─start.php framework entry file
│
├─extend extended class library directory
├─runtime The runtime directory of the application (writable, customizable)
├─vendor third-party library directory (Composer dependent library)
├─build.php automatically generates definition files (reference)
├─composer.json composer definition file
├─LICENSE.txt authorization document
├─README.md README file
├─think command line entry file