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
・validation.ymlに | |
constraints: | |
- Callback: | |
methods: [isEmailConfirmEqual] | |
groups: [registration] | |
・フォームエンティティクラスに | |
public function isEmailConfirmEqual(ExecutionContext $context) | |
{ | |
if ($this->email != $this->email_confirm) { |
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
1. config.ymlなどでparameters, servicesを定義 | |
2. サービスコンテナを定義 | |
3. コントローラ内でサービスコンテナを取得 | |
4. テンプレートへ渡す |
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 | |
while getopts a:bc: flag; do | |
case $flag in | |
a) | |
opt_a=$OPTARG | |
;; | |
b) | |
opt_b=1 | |
;; |
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 | |
\Swift::init(function () { | |
\Swift_DependencyContainer::getInstance() | |
->register('mime.qpheaderencoder') | |
->asAliasOf('mime.base64headerencoder'); | |
\Swift_Preferences::getInstance()->setCharset('iso-2022-jp'); | |
}); | |
$message = \Swift_Message::newInstance() | |
->setSubject('長めの日本語サブジェクトを送信した場合の挙動の確認をおこなう') |
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
1. Eclipse JUNO Classic ダウンロード | |
http://www.eclipse.org/downloads/packages/eclipse-classic-421/junosr1 | |
2. PDTのインストール | |
http://eclipse.org/pdt/release-notes/3.1.1/ | |
http://www.cyber-funnel.com/eclipse/index1444.html | |
http://symfony.dubture.com/ | |
http://p2-dev.pdt-extensions.org/index.html | |
==== | |
Help->Install New Software->Work With: "http://download.eclipse.org/tools/pdt/updates/nightly/" |
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 | |
namespace Euphory\StoreBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; | |
use FOS\RestBundle\View\View; |
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
euphory_store: | |
resource: "@EuphoryStoreBundle/Resources/config/routing.yml" | |
prefix: / |
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
service_with_session: | |
class: Euphory\Bundle\StoreBundle\ServiceWithSession | |
calls: | |
- [ setSession, [ @session ] ] |
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 ./vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php | |
app/bootstrap.php.cacheが生成される。 |
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
export PATH=$HOME/usr/local/bin:$PATH | |
export PERL5LIB=$HOME/usr/local/share/perl5 | |
perl Makefile.PL PREFIX=$HOME/usr/local | |
make | |
make test | |
make install | |
mkdir -p ~/opt/mysql | |
cd ~/opt/mysql | |
wget http://download.softagency.net/mysql/Downloads/MySQL-5.5/mysql-5.5.30-linux2.6-x86_64.tar.gz |
OlderNewer