CakePHP Cookbook 2.x
like the following: /path_to_document_root /app /lib /plugins /vendors .htaccess index.php README Now might be a good time to learn a bit about how CakePHP’s directory structure works: single function or interface in an application. For example, when users request www.example.com/posts/index (which is the same as www.example.com/posts/), they might expect to see a listing of posts. The code $helpers = array('Html', 'Form'); public function index() { $this->set('posts', $this->Post->find('all')); } } By defining function index() in our PostsController, users can access the logic0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 801 15 Indices and tables 803 Index 805 iii iv CHAPTER 1 Getting Started The CakePHP framework provides a robust base for your application look something like the following: /path_to_document_root /app /lib /plugins /vendors .htaccess index.php README Now might be a good time to learn a bit about how CakePHP’s directory structure works: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [QSA,L] If your CakePHP site still has problems with mod_rewrite, you might want0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook 4.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 942 PHP Namespace Index 947 Index 949 viii CHAPTER 1 CakePHP at a Glance CakePHP is designed to make common web-development request goes through the following steps: 1. The webserver rewrite rules direct the request to webroot/index.php. 2. Your Application is loaded and bound to an HttpServer. 3. Your application’s middleware template, found at templates/Articles/index.php Using these conventions, CakePHP knows that a request to http://example.com/articles maps to a call on the index() method of the ArticlesController, where0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 943 PHP Namespace Index 947 Index 949 viii CHAPTER 1 CakePHP at a Glance CakePHP is designed to make common web-development request goes through the following steps: 1. The webserver rewrite rules direct the request to webroot/index.php. 2. Your Application is loaded and bound to an HttpServer. 3. Your application’s middleware template, found at src/Template/Articles/index.ctp Using these conventions, CakePHP knows that a request to http://example.com/articles maps to a call on the index() function of the ArticlesController, where0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 4.x
request goes through the following steps: 1. The webserver rewrite rules direct the request to webroot/index.php. 2. Your Application is loaded and bound to an HttpServer. 3. Your application’s middleware is template, found at templates/Articles/index.php Using these conventions, CakePHP knows that a request to http://example.com/articles maps to a call on the index() method of the ArticlesController, where /tests /tmp /vendor /webroot .editorconfig .gitignore .htaccess .travis.yml composer.json index.php phpunit.xml.dist README.md Now might be a good time to learn a bit about how CakePHP’s directory0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 3.x
request goes through the following steps: 1. The webserver rewrite rules direct the request to webroot/index.php. 2. Your Application is loaded and bound to an HttpServer. 3. Your application’s middleware is template, found at src/Template/Articles/index.ctp Using these conventions, CakePHP knows that a request to http://example.com/articles maps to a call on the index() function of the ArticlesController, where /tests /tmp /vendor /webroot .editorconfig .gitignore .htaccess .travis.yml composer.json index.php phpunit.xml.dist README.md Now might be a good time to learn a bit about how CakePHP’s directory0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook Documentation 5.x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 826 PHP Namespace Index 829 Index 831 viii CHAPTER 1 CakePHP at a Glance CakePHP is designed to make common web-development request goes through the following steps: 1. The webserver rewrite rules direct the request to webroot/index.php. 2. Your Application is loaded and bound to an HttpServer. 3. Your application’s middleware template, found at templates/Articles/index.php Using these conventions, CakePHP knows that a request to http://example.com/articles maps to a call on the index() method of the ArticlesController, where0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook Documentation 5.xrequest goes through the following steps: 1. The webserver rewrite rules direct the request to webroot/index.php. 2. Your Application is loaded and bound to an HttpServer. 3. Your application’s middleware is template, found at templates/Articles/index.php Using these conventions, CakePHP knows that a request to http://example.com/articles maps to a call on the index() method of the ArticlesController, where MenuLinksController Plural, CamelCased, end in Controller Templates Articles/index.php Articles/add.php Articles/get_list.php MenuLinks/index.php MenuLinks/add.php MenuLinks/get_list.php View template files are0 码力 | 1080 页 | 939.39 KB | 1 年前3
共 8 条
- 1













