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 | |
$code1 = 'FF5E'; /* 全角チルダ */ | |
$code2 = '301C'; /* 波ダッシュ */ | |
$char1 = h2bin($code1); | |
$char2 = h2bin($code2); | |
var_dump(urlencode($char1)); | |
var_dump(urlencode($char2)); |
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
/* | |
* jQuery plugin skelton. | |
*/ | |
;(function($, window, undefined) { | |
$.fn.example = function(options) { | |
return this.each(function() { | |
var o; | |
if (options) { | |
o = $.fn.extend({}, $.fn.example.defaults, options); | |
} else { |
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
--- a/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php | |
+++ b/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php | |
@@ -117,7 +117,7 @@ abstract class AbstractOracleDriver implements Driver, ExceptionConverterDriver | |
if ( ! isset($params['port'])) { | |
$params['port'] = 1521; | |
} | |
- | |
+ $params['service'] = true; | |
$serviceName = $params['dbname']; | |
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
;; extension=php_oci8.dll ;; Oracle 11g より前のバージョンはこちらを有効に | |
extension=php_oci8_11g.dll ;; Oracle 11g 以降のバージョンはこちらを有効に | |
extension=php_pdo_oci.dll |
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
CREATE INDEX index_name_idx ON table_name (column_name text_pattern_ops); |
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
$dbh = DBI->connect("dbi:Oracle://<Host Name>:1521/<Service Name>", username, password); |
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
########################################### | |
# log4j でバッチの情報ログとデバッグログを分ける | |
########################################### | |
## アプリケーションの情報ログ | |
log4j.category.jp.example.batch=INFO, FILE, C | |
log4j.additivity.jp.example.batch=false | |
## 各種ライブラリのログ | |
log4j.category.org.seasar=DEBUG, FILE2, C |
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
extension_dir=D:\home\site\wwwroot\bin\php\ext\ ;; 修正 | |
;extension=php_oci8.dll ;; Oracle 11g より前のバージョンはこちらを有効に | |
extension=php_oci8_11g.dll ;; Oracle 11g 以降のバージョンはこちらを有効に | |
extension=php_pdo_oci.dll ;; 追加 |
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
--- a/src/Eccube/Controller/ShoppingController.php | |
+++ b/src/Eccube/Controller/ShoppingController.php | |
@@ -134,6 +134,7 @@ class ShoppingController extends AbstractController | |
$cartService = $app['eccube.service.cart']; | |
$orderService = $app['eccube.service.order']; | |
$orderRepository = $app['eccube.repository.order']; | |
+ $paymentService = $app['eccube.service.payment']; | |
// カートチェック | |
if (!$cartService->isLocked()) { |
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
{% macro recursiveCategories(Category) %} | |
{% if Category.hasChildNodes() %} | |
<ul> | |
{% for child in Category.childNodes() %} | |
<li>{{ child.name }}</li> | |
{{ _self.recursiveCategories(child) }} | |
{% endfor %} | |
</ul> | |
{% endif %} | |
{% endmacro %} |