2010/2/25 第1回 Symfony 1.4 勉強会のご報告 当日は、弊社社員よりSymfony 1.4に関する発表を行わせていただきました。
2010/2/25 第1回 Symfony 1.4 勉強会のご報告 当日は、弊社社員よりSymfony 1.4に関する発表を行わせていただきました。
メモ書きなので品質低 まずsymfony1.0を1.1にアップグレードとプロジェクトを1.2から1.3/1.4にアップグレードすると1.3の廃止予定および削除される機能に目を通す。バージョンが違うが参考になると思う。翻訳して頂いた方々に感謝。 OpenPNE プラグイン開発者のみなさんにsymfony1.4 対応のお願いもちょっと参考になる。 pluginが読み込まれない symfony1.4では一つ一つ手動でconfig/ProjectConfiguration.class.phpに設定する必要がある。 Symfony tutorial参照 また、フォルダの名前を何とかPluginにする必要がある。1.0はplugins/testのような名前でも大丈夫だったが、ソースを見た感じplugins/testPluginのように、Pluginという文字がフォルダに付いてないと認識しない。 Pro
symfony1.2までは「jpMailPlugin」を利用していましたが、1.4へとバージョンアップの機会に 「SwiftMailer」を使用することにしました。 基本的に携帯への送信が必須となるので、日本語(JISコード)対応しなければいけません。 とりあえずsymfonyのマニュアル通りに送信してみることに・・・ mb_language('ja'); mb_internal_encoding('UTF-8'); $message = Swift_Message::newInstance() ->setFrom('from@hoge.com') ->setTo('to@hoge.com') ->setSubject(mb_encode_mimeheader('日本語のサブジェクト', 'iso-2022-jp', 'B', "\r\n")) ->setBody(mb_convert_e
HelloKernel.php cache/ config/ console logs/ 先ほど説明をしたKernelというものが出てきます。Kernelの中にはいくつかのメソッドが実装されています。簡単に説明します。 ◆registerRootDir() Kernelのルートとなるディレクトリです。またカーネルを配置してあるディレクトリ、ここではhelloがカーネルの名称、つまりアプリケーションの名称となります。 ◆registerBundles() Bundleとは日本語にすると束とか1つにまとめたものという意味です。このBundleはSymfony 2では非常に重要な役割を持ちます。 このメソッドの中でZendBundleやDoctrineBundleを返しているのをみると、Bundleは従来のPluginのように思われるかもしれませんが、あながち間違いではないでしょう。 こ
Time for another big news! #Symfony 2.0 will use #PHPUnit instead of #lime. Integration is already on its way. 昨日、しんふぉにゃんの間にビッグニュースがありました。 それは、ファビアンがSymfony2ではPHPUnitをテストツールとして利用するとつぶやいたからです。 これまでsymfonyには自前で小回りの効くlimeというテストツールが用意されていたのですが、これをPHPUnitに乗り換えするようです。 テストが多くなってくるとlimeだと厳しくなってくるというのは分かりますが、気軽さでいえばlimeのほうが上です。 気軽さよりもしっかりと書けるPHPUnitを採用するメリットが大きいのかもしれません。 ちなみに、limeは完全に無くなったわけではないようで、GitHub上
Services Platform.sh for Symfony Best platform to deploy Symfony apps SymfonyInsight Automatic quality checks for your apps Symfony Certification Prove your knowledge and boost your career SensioLabs Professional services to help you with Symfony Blackfire Profile and monitor performance of your apps
前回のまとめ symfony 1.4のCacheHelperには余分なキャッシュを保存してしまう問題がある(多分)。sfViewCacheManagerのソースを見た感じでは、module名とaction名のみを基準にキャッシュ管理をしており、独自の内部URI(default/indexのような)をもたないcacheは制御が行えず、action cacheも同時に保存してしまうような仕様になっている。 対策 結局別にCacheHelperを作成する事で対応した。元々symfony 1.0の時からCacheHelperでは対応できない機能があったので、別途CacheHelperを作成して対応していた。 ソース github ライセンスはMIT 追加した機能は 前回のブログで書いた余分なキャッシュを保存しないようにした。 別途引数にinternalURIを追加して、複数のページで同一のキャッシ
Symfony2はsandbox版が配布されていますが、実際に自分でアプリケーションやバンドルを作成するにはどうするのか試してみました。 sandboxをとってきて試すだけであればhttp://symfony-reloaded.org/codeからどうぞ。以下はGitHubからソースコードを取得し、コマンドを使って雛形まで作ってみます。 ただし、公式のマニュアルにはこれらの手順については何も書かれていませんのであくまでも私が推測で試した結果です。また動きが怪しかったりしてますが、まだプレビュー版ですので安定していないかったりバグがあるのはよくあることです。この点をご理解の上お読みください。_(_ _)_ Symfony2のソースをとってくる ここではGitHubからcloneしてきます。symfony-sandoxをclonseしてきます。 symfonyそのもののリポジトリもありますが、
Building a platform from symfony at Yahoo! Presented at symfonyLive 2010 in Paris, France by Dustin Whittle. Join us for a case study on using open source tools to build a platform for enterprise web applications with symfony. The focus of this session will be on how Yahoo! has built web applications that scale with symfony. Find out what worked and what didn't when building scalable web applicati
The first international Symfony Conference is currently being held in Paris, featuring some great talks from talented peeps. Here is for you, lazy guys, the published slides. I will update this post when new one are published. Enjoy! Day 1 I18N with Symfony (pdf) by Thomas Rabaix Symfony internals by Geoffrey Bachelet Using Doctrine Migrations by Dennis Benkert Doctrine 2 – Not the Same Old PHP OR
Symfony performs Better Symfony 2 is one of the fastest PHP framework around. We have tested it against the other major PHP frameworks with a simple "Hello World" application and also with a slightly more elaborate application. Here are the results (see below for the methodology and the code). Benchmark Results "Hello World" Application For the "Hello World" application, the Symfony 2.0 is about:
パリでおこなわれた Symfony Live 2010 にて、 Symfony 2 のプレビューリリース版が 2 月 17 日 19 時頃に GitHub で公開されました(ただし日本時間では 18 日 3 時頃という日本人泣かせな時間。今頃現地の方々は手元で Symfony 2 と戯れているんでしょうね、うらやましいです)。 http://github.com/symfony/symfony/ ということでもう寝たいのですが、 sandbox に web/check.php という動作環境確認用のフロントコントローラがいるので、それだけでも動作させてみました。 以下、取り急ぎ手順です: $ cd /path/to/document-root $ git clone git://github.com/symfony/symfony-sandbox.git $ cd symfony-sand
Symfony, High Performance PHP Framework for Web Development フランスではSymfonyのカンファレンスが開催され、Symfony2のプレビュー版がついさきほど公開されました。 残念ながら日本からtwitterのタイムラインを眺めつつ雰囲気を味わっていたのですが、そのまとめをちょこっと。 イベントの公式サイトは以下のとおり。 SymfonyLive Conferences かなり濃厚な発表が色々あったようです。 以下気になった事 Doctrine2ではマジックメソッドをまったく使っていない => 予想以上に速くなった Doctrineを使い始めて最初に大変な思いをしたのが、マジックメソッドが多いため、どのように処理されているかを追うことでした。 個人的にも嬉しい対応。 Doctrine 2 - Not The Same Old Ph
The document discusses how to write a scalable Symfony application in the cloud. It covers upgrading points like database connections, file uploads, session storage, local development, and deploying. Database connections should use a master-slave configuration. File uploads can use Amazon S3 for storage. Sessions can be stored in a database. Local development differs from production. Deploying can
Loading... Flash Player 9 (or above) is needed to view presentations. We have detected that you do not have it on your computer. To install it, go here. Using Zend Framework with Symfony - Presentation Transcript Using Zend Framework with Symfony Matthew Weier O'Phinney Project Lead, Zend Framework Matthew Weier O'Phinney PHP Developer since 2000 Zend Framework contributor since 2006 Project Lead
This document discusses using Doctrine Migrations to manage database schema changes. It begins by explaining the problems with manually migrating databases, then introduces Doctrine Migrations as a way to version and rollback schema changes. Key aspects covered include generating migrations from schema changes, the migration file format, and using Symfony commands to generate, migrate and rollback
テスト用のapp testを追加 symfony generate:app test symfony generate:module test default apps/test/config/settings.ymlのprodにcache:true追加。apps/test/modules/default/actions/actions.class.phpのexecuteindexをreturn sfView::SUCCESS;に書き換え。 1 この状態でアクセスしてみる。 ブラウザで/test.php/を開く。 キャッシュされたファイルを調べる。 find cache/test/prod/template/ -type f (何も表示されない) 2 indexSuccess.phpでfragment cacheを使って見る。 例えばapps/test/modules/default/te
MongoDBを使ったセッション管理のほうがMySQL(PDO)より確実に速いよね?でも、そのためのクラスが用意されてないよね? ってことで、書いてみました。 sfMongoSessionStorage/sfMongoSessionStorage.class.php at master · brtriver/sfMongoSessionStorage · GitHub 書いたといっても、DBのセッション管理クラスをそのまま書き換えたぐらいです。 設定 使い方はfactories.ymlにて以下のように設定。 レプリケーションさせたりというところまでは考慮してません。 storage: class: sfMongoSessionStorage param: host: localhost #接続先 port: 27017 #ポート db_name: symfony #DB名 collecti
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く