What is CakePHP?
Example:
// echo 'Hello, CakePHP!';
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
WithoutBook 将分主题面试题、在线练习测试、教程和对比指南整合到一个响应式学习空间中。
了解热门 CakePHP 面试题与答案,帮助应届生和有经验的候选人为求职面试做好准备。
了解热门 CakePHP 面试题与答案,帮助应届生和有经验的候选人为求职面试做好准备。
搜索问题以查看答案。
Example:
// echo 'Hello, CakePHP!';
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// composer create-project --prefer-dist cakephp/app my_project
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// Inflector::pluralize('Article'); // Returns 'Articles'
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// Automatically handled by CakePHP
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// public $table = 'my_custom_table';
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// Configure::write('debug', 2);
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// = $this->Html->link('Click me', ['controller' => 'pages', 'action' => 'display', 'home']) ?<
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// class PostsController extends AppController {}
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// public function beforeFilter() {
// Code here
}
收藏此条目、标记为困难题,或将其加入复习集合。
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// bin/cake bake model
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
//$articles = $this->Articles->find('all');
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// $this->loadComponent('Paginator');
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// public function validationDefault(Validator $validator) {
// Validation rules here
}
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// $articles = $this->Articles->find('all')->contain(['Authors']);
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// class Comment extends AppModel {
public $belongsTo = 'Post';
}
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// Form in the view
= $this->Form->create($article, ['type' => 'file']) ?<
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// public function beforeSave($options = []) {
// Code here
}
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// class Author extends AppModel {
public $hasMany = 'Book';
}
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// if ($this->request->is('ajax')) {
// Code for AJAX request
}
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// public function beforeRender() {
// Code here
}
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// public function beforeDelete($cascade = true) {
// Code here
}
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// $this->loadComponent('Session');
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// $email = new CakeEmail();
$email->to('recipient@example.com')->subject('Subject')->send('Message');
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// bin/cake bake migration CreateArticles title:string body:text
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// $this->loadComponent('Cookie');
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// $this->loadComponent('Paginator');
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// $this->loadComponent('Security');
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// $this->Articles->getConnection()->transactional(function () {
// Code here
});
收藏此条目、标记为困难题,或将其加入复习集合。
Example:
// Creating a custom shell
bin/cake bake shell MyCustomShell
收藏此条目、标记为困难题,或将其加入复习集合。