CodeIgniter 4.0 のサーバ要件 PHP 7.2 以上 php-json、php-mysqlnd、php-xml が有効 intl、mbstring 機能拡張 libcurl(CURLRequest を使う場合) データベース MySQL 5.1 以上(MySQLi ドライバ) PostgreSQL(Postgre ドライバ) SQLite3(SQLite3 ドライバ) 動作確認環境 CodeIgniter 4.0.4 Composer 2.0.8 PHPUnit 8.5.13 PHP 7.4.13 Xdebug 3.0.1 MySQL 5.7.32 macOS 10.15.7 Composer のインストール Composer とは、PHPでの新しいパッケージ(ライブラリ)管理システムです。 Composer はパッケージ管理コマンドとしての composer コマンド、パッ
The Qiita Advent Calendar 2020 is supported by the following companies, organizations, and services.
CodeIgniter Advent Calendar 2020 の記事ですが、今日は「フレームワークへの依存をいかに減らすか」というテーマです。 フレームワークの入門書、入門記事、公式ドキュメントには多分出てこない話題です。 フレームワークの罠 CodeIgniter4 についてチュートリアルから始めて、いろいろと書いてきました。 普通にユーザガイドを読んでアプリを開発していこうとすると、アプリは以下のように階層化されます。 黒い矢印は依存です。 MVC パターン 依存とはそれを使うということです。 コントローラがモデル、ビュー、そしてフレームワークに依存します。モデルもビューもフレームワークに依存します。 要するにフレームワークのユーザーが書くコードはほぼ全てフレームワークに依存します。フレームワークと密結合します。フレームワークがないとほとんど全く動きません。 普通にフレームワークを
Who Should Read This Book? This book is for PHP developers who don't know Automated Testing or Unit Testing, or for those looking for help testing CodeIgniter applications. If one or more of the lines below sounds familiar, this book is perfect for you! I have never written test code. I want to write test code, but I don't know how. I tried to write test code in the past, but I couldn't quite figu
Learn CodeIgniter 3 and practical solutions for crafting web applications of any size.Whether you're a designer who's just diving into CodeIgniter and don't know where to start, a newer developer who knows some PHP and has decided to give this framework a go, or a long-time CodeIgniter developer inspired by the recent resurrection of your favorite framework and looking for fresh inspiration, this
あなたのお気に入りのフレームワークCodeIgniterが帰ってきた!(CodeIgniter 3.0の感想) すでにご存じの人も多いと思いますが、2015年3月30日にCodeIgniter 3.0.0がリリースされました。 その影響もあり、日本語の情報も徐々に増えてきてます。そこで、私もこのあたりで現在の感想を書いておこうと思います。 (参考)PHPカンファレンス福岡でのCodeIgniterについて発表資料 ライセンスがMITライセンスに変更 何と言っても最大の変更点はライセンスが変わったことです。 2.xまでは独自ライセンスのCodeIgniterライセンス(GPL非互換)だったものが、3.0からはMITライセンスになりました。 これは、CodeIgniterのオーナーが私企業のEllisLabから、大学であるBCITに変わったことにより実現しました。 EllisLabにより3.0
時代はTwigです あのEC-CUBEもバージョン3からテンプレートエンジンをTwigに変更します。 土曜日にあったOSC Nagoyaで教えてもらったのですが、実はTwigには、配列もオブジェクトもドット(.)で表現できるという圧倒的な優位性がありました。 Twigでは$foo['bar']も$foo->barも$foo->bar()も以下のように表現できます。 {{ foo.bar }} すっきりしてますね。 ということで、CodeIgniterでもTwigを使いたいと思います。 CodeIgniter Simple and Secure Twig CodeIgniterでTwigを簡単に使うために「CodeIgniter Simple and Secure Twig」というツールを作成しました。 https://github.com/kenjis/codeigniter-ss-twi
In the century of Higgs boson, people don’t like blabbermouthes. so if you want to know “why i choose Laravel”, the answer would be “Hugging future” and you can stop reading. I’m not going to write a technical article But if you ask for details, here we go: 1. CodeIgniter is deadWho can say that CodeIgniter wasn't best PHP framework ever?! But like every good thing, CI dead. I don’t want to explai
FuelPHPで最初に便利だったのがhttpdのメソッドでコントローラーのアクションを分岐できるところ。 FuelPHPが動かないサーバの案件でCodeIgniterを使ったときに真っ先に追加したのがこの機能。 function action_xxx (){ function get_xxx (){ function post_xxx (){ と書くだけで、GET, POSTによるアクションの分岐が可能になります。 以下の内容のMy_Controller.phpを作成。 <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class MY_Controller extends CI_Controller { var $uploaded; var $view_headers; var $view_f
Paul Tarjan HHVM 2.2.0 Posted October 18, 2013 We released a new version of HHVM today. A big change is that we are now packaging for many of the popular distros. Ubuntu 12.04 / 13.04 / 13.10 Mint 15 Debian 7 Fedora 19 If your favorite one isn’t there, leave a comment and we’ll try to add it. Or if you want to become the packager for that distro, great! Bundle it up and then update the wiki. The n
私は小さなソフトウェア開発会社で指導的立場にあり、購入を含めてツールの選択にも責任がある。しかし、チームで使用するフレームワーク、特にUIフレームワークを選択するのは非常に難しい仕事だ。数年前、将来のWeb開発に向けてリッチインターネットアプリケーションフレームワークを選択した際、自分の調査ではAdobe Flexが最適と思われた。AdobeがLinuxバージョンのFlashを廃止することが想像できなかった頃の話だ。当時HTML5は初期の計画段階だったのに対し、Flexは完成度が高く、ドキュメントも豊富な商用製品であり、Flashを使用するための優れた機能が搭載されていた。そのため、Flexを選択したが、現在では開発が停止している。逆に、15年前にデスクトップアプリケーションをQtに切り替えたが、こちらは現在も広く使われている。そこで、私は正しい選択と誤った選択の違いを見出したいと思ってい
しまったー 初めからこれを使えば良かったー CodeIgniterを利用したプロジェクトで開発終えてから CodeIgniterのユーザガイド見てたら思わず上記のように思ってしまったメソッドがあったので ご紹介+備忘録残し で書いときます。 safe_mailto というメソッドなんですが・・・ 参考: URL ヘルパー : CodeIgniter ユーザガイド 日本語版. まず、いつものようにヘルパーの呼び出し $this->load->helper('url'); で、Viewとなるphpに <?php echo safe_mailto('[email protected]'); ?> って書いちゃうだけで この「 [email protected] 」というメールアドレスをJavaScriptで難読化して表示してくれちゃう。 あー、これ使えば良かった。 独自におんなじようなことや
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く