$option = array();
$option['recursive'] = -1;
$option['joins'][] = array(
'type' => 'LEFT', //LEFT, INNER, OUTER
'table' => 'posts',
'alias' => 'Post', //下でPost.user_idと書くために
'conditions' => '`User`.`id`=`Post`.`user_id`',
);
$option['conditions'] = array('Post.isPrivate' => 1);
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * これは、コアとなる設定ファイルです。 | |
| * | |
| * Cake のコアとなる振る舞いを設定するのに使ってください。 | |
| * | |
| * PHP 5 | |
| * | |
| * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
| * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org) |
-
さくらの [VPSコントロールパネル][vps_home] から
OS再インストール→カスタムOSインストールへ -
カスタムOSインストール の
OS選択でUbuntu 12.04 amd64を選択 -
注意事項を読んで
確認ボタン →実行ボタン -
VNCコンソールでインストーラーが起動するので [インストールガイド][install_guid] を参考にインストールを進める
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| App::uses('AppController', 'Controller'); | |
| class ApisController extends AppController { | |
| // どの Model も使わないようにする。 | |
| public $uses = false; | |
| public function index() { | |
| $data = array(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| App::uses('CakeEmail', 'Network/Email'); | |
| class AppCakeEmail extends CakeEmail { | |
| protected $_emailPattern = null; | |
| /** | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function(grunt) { | |
| // Project configuration. | |
| grunt.initConfig({ | |
| // Metadata. | |
| pkg: grunt.file.readJSON('package.json'), | |
| // Task configuration. | |
| jasmine: { |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.