CakePHP不支持path/to途徑,前后臺無法方法
Jun 13, 2016 pm 12:02 PM
CakePHP不支持path/to路徑,前后臺無法方法
本來想把前后臺分離,但是閱讀了cakephp的說明,才發(fā)現(xiàn),cakephp根本就不支持path/to路徑。
cakephp官網(wǎng)給出的 管理員分離方式:http://book.cakephp.org/2.0/en/development/routing.html#prefix-routing
意思就是說所有的前端后臺的控制器都在一個控制器中,然后通過admin_前綴來區(qū)分是給管理員使用還是給前端使用。。。
看到這一段真的很無語,使用人數(shù)那么多的一個框架,居然是連這個path/to的功能都沒有,就這一點CI就可以甩掉CakePHP幾條大街了。
CakePHP 前端和后臺都用同一個控制器,呵呵。(default7#zbphp.com)
不知道CakePHP3.x是否還是這樣的方式?

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Working with database in CakePHP is very easy. We will understand the CRUD (Create, Read, Update, Delete) operations in this chapter.

In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

Logging in CakePHP is a very easy task. You just have to use one function. You can log errors, exceptions, user activities, action taken by users, for any background process like cronjob. Logging data in CakePHP is easy. The log() function is provide

Validator can be created by adding the following two lines in the controller.

This chapter deals with the information about the authentication process available in CakePHP.

In this chapter, we are going to learn the following topics related to routing ?

How to set the PATH environment variable in Linux systems In Linux systems, the PATH environment variable is used to specify the path where the system searches for executable files on the command line. Correctly setting the PATH environment variable allows us to execute system commands and custom commands at any location. This article will introduce how to set the PATH environment variable in a Linux system and provide detailed code examples. View the current PATH environment variable. Execute the following command in the terminal to view the current PATH environment variable: echo$P

To work on file upload we are going to use the form helper. Here, is an example for file upload.
