【PHP】cakePHP3をMacに入れようとしたらintlエラー
サーバー上でのインストールは簡単に出来たけど、ローカルMacにcakePHP3環境を作ろうとしたら思ったよりハマってしまったのでメモ。
composer経由でcreate-projectしたら以下のようなエラーが出た。
Your requirements could not be resolved to an installable set of packages. Problem 1 - cakephp/cakephp 3.2.9 requires ext-intl * -> the requested PHP extension intl is missing from your system.
ググると新旧色々な情報があるけど、Homebrewを導入済みだったら自分の環境のphpバージョン(php -vで確認可)のphp-intlをインストールするだけでした。(私はPHP ver.7.0.6だったので70)
$ brew search intl $ brew install php70-intl
もししばらくHomebrew使ってなければbrew update
も忘れずに。
あとcomposerのキャッシュが悪さをしている場合はcomposer clearcache
でキレイになります。
【PHP】CakePHP3でForm Helperの<div>タブが削除できない
小1時間悩んだのでメモがてら。
(もし解決法ご存知の方がいたらコメントもらえると嬉しいです)
今の開発でCakePHP3を使っているのですが、CakePHP2で出来てた事が色々出来なくなっている印象。。。 Form Helperの<div> タブ削除もこの1つでしょうか。
■変更前
<?=$this->Form->submit('決定', array( 'div' => false )) ?>
どうしてもこうなっちゃう・・・
<div class="submit"><input type="submit" value="決定"/></div>
なので以下のようにしたら結果的に<div>タブ無効に出来ました。
■変更後
<?=$this->Form->button('決定', array( 'type' => 'submit', 'div' => false )) ?>
<button type="submit">決定</button>
何かすっきりしないけど仕方ない。。。
【Mac】SourceTreeでgit svnしたらHTTP403エラー
MacのSourceTreeでSubversionを使っていたのですが、久しぶりにCommitしたらBacklog側のSSL証明書が更新されていたためHTTP403エラーに。 小一時間悩みましたが、結局は「svn list」コマンドで「常に許可」し直してあげたら改善しました。 証明書周りは便利な反面、ハマったら面倒くさいのでもう少しわかりやすく管理したいですね。。。
参考にさせて頂いたサイト。
対策1: 一度ターミナルで明示的に許可する(検証を無視する) $ svn list https://example.net/svn/repos
【iOS】ModalViewを閉じた時に遷移元のイベントを発火させる方法
【iOS】Firebaseをimportしたらエラーになる問題
【iOS】"missing iOS distribution signing identity for ..."エラー
別のMacで開発したiOS AppプロジェクトをGit経由で持ってきて、内部テスト用にiTunes Connectにアップロードしようとすると以下のエラーが発生。
missing iOS distribution signing identity for "XXXXXXXX"
stackoverflowで探してみると引用元の回答通り、キーチェーンアプリで期限切れのAppleWWDRCAを削除すると解決。
Thanks for bringing this to the attention of the community and apologies for the issues you’ve been having. This issue stems from having a copy of the expired WWDR Intermediate certificate in both your System and Login keychains. To resolve the issue, you should first download and install the new WWDR intermediate certificate (by double-clicking on the file). Next, in the Keychain Access application, select the System keychain. Make sure to select “Show Expired Certificates” in the View menu and then delete the expired version of the Apple Worldwide Developer Relations Certificate Authority Intermediate certificate (expired on February 14, 2016). Your certificates should now appear as valid in Keychain Access and be available to Xcode for submissions to the App Store.