This file contains 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 | |
public function testUnlockMultipleFieldRemovingFromFields() { | |
$this->Form->request['_Token'] = array( | |
'key' => 'testKey', | |
'unlockedFields' => array() | |
); | |
$this->Form->create('Order'); | |
$this->Form->hidden('Order.id', array('value' => 1)); | |
$this->Form->checkbox('Ticked.id.'); |
This file contains 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
diff --git a/vendor/codeception/codeception/src/Codeception/Lib/Parser.php b/vendor/codeception/codeception/src/Codeception/Lib/Parser.php | |
index 7e6987a..543b155 100644 | |
--- a/vendor/codeception/codeception/src/Codeception/Lib/Parser.php | |
+++ b/vendor/codeception/codeception/src/Codeception/Lib/Parser.php | |
@@ -126,7 +126,7 @@ protected function addCommentStep($comment) | |
public static function validate($file) | |
{ | |
- exec("php -l $file 2>&1", $output, $code); | |
+ exec("php -l '$file' 2>&1", $output, $code); |
This file contains 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 | |
/* | |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. | |
* | |
* Copyright 2010 Oracle and/or its affiliates. All rights reserved. | |
* | |
* Oracle and Java are registered trademarks of Oracle and/or its affiliates. | |
* Other names may be trademarks of their respective owners. | |
* | |
* The contents of this file are subject to the terms of either the GNU |
This file contains 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
.mtapp-tabs-navi li { | |
margin-right: 4px; | |
} | |
.mtapp-tabs-navi li.first-child { | |
margin-left: 0; | |
} | |
.mtapp-tabs-navi li a { | |
padding: 10px; | |
min-width: 6em; | |
color: #7B7C7D; |
This file contains 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
#!/usr/bin/env php | |
<?php | |
$paths = array( | |
PHP_BINDIR, | |
'/usr/local/phpenv/shims', | |
getenv('PATH') | |
); | |
putenv('PATH=' . join(PATH_SEPARATOR, $paths)); | |
array_shift($argv); |
This file contains 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
# LANGUAGE translation of CakePHP Application | |
# Copyright YEAR NAME <EMAIL@ADDRESS> | |
# | |
msgid "" | |
msgstr "" | |
"Project-Id-Version: PROJECT VERSION\n" | |
"POT-Creation-Date: 2013-09-18 23:20+0200\n" | |
"PO-Revision-Date: 2013-11-18 13:21+0900\n" | |
"Last-Translator: nojimage <nojimage@gmail.com>\n" | |
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n" |
This file contains 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 | |
// ... | |
if (!extension_loaded('timecop')) { | |
$response = $app->sendFile($file, 200, $headers); | |
} else { | |
// timecop hack | |
$response = new Symfony\Component\HttpFoundation\BinaryFileResponse($file, 200, $headers, false, null, false, false); | |
$date = \DateTime::createFromFormat('U', $response->getFile()->getMTime()); |
This file contains 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
#!/usr/bin/env bash | |
Vendor/bin/cake bake project --empty -v app | |
# replace include_path | |
replace="s/define('CAKE_CORE_INCLUDE_PATH',.*$/define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'Vendor' . DS . 'cakephp' . DS . 'cakephp' . DS . 'lib');/" | |
sed -i .orig -e "$replace" app/webroot/index.php app/webroot/test.php | |
## # replace console path, if CakePHP < 2.5 |
This file contains 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
#!/bin/bash | |
# Fix the 64bit c++ patch for PHP5.3 | |
# https://bugs.php.net/bug.php?id=48795 | |
# | |
# install to {path_to_php-build}/share/php-build/before-install.d/ | |
function version { echo "$@" | awk -F. '{ printf("%d.%d.%d\n", $1,$2,$3); }'; } | |
phpver=$(basename "`pwd`") |
This file contains 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 | |
/* | |
* Database MySQLDump Class File | |
* Copyright (c) 2009 by James Elliott | |
* James.d.Elliott@gmail.com | |
* GNU General Public License v3 http://www.gnu.org/licenses/gpl.html | |
* | |
*/ |