ラベル MVC の投稿を表示しています。 すべての投稿を表示
ラベル MVC の投稿を表示しています。 すべての投稿を表示

2013年6月15日土曜日

Laravelに手を出してみる日記

PHPのウェブアプリケーションフレームワークLaravelつかってみましょう。

フレームワーク・PHP本体のバージョン問題や、CodeIgniterのライセンス問題などでウェブフレームワークが乱立する中で、Laravelはなかなかよいとおもいます。

IoC Containerもあるよ☆-(´>ω・`)b

環境構築

基本的な構築は、composerでcreate-projectを実行すれば完了。
composer create-project laravel/laravel your-project-name

オラオラー!と関連コンポーネントがダウンロードされて、 

 終了。イェイ


つづく。

かねこ(人´∀`)

2012年9月10日月曜日

MVCとMOVE

世間ではMVC is dead, it's time to MOVE on.(和訳)の話題が花盛り♪

ちょっと見てみた。

MVC is a phenomenal idea. You have models, which are nice self-contained bits of state, views which are nice self-contained bits of UI, and controllers which are nice self-contained bits of …

What?

I'm certainly not the first person to notice this, but the problem with MVC as given is that you end up stuffing too much code into your controllers, because you don't know where else to put it.

これの、too much code into your controllers, because~ の下り、イマイチ(><)

実際は、MVCのモデルの領域は、”データと手続き”の部分なので、Controllerが誇大化する場合は、そもそもModelの扱い方を間違えてるのではないかと思います(よくあるのは、ControllerからDAO操作してるとか)

ということで、MVC死んでねー

MOVEは一読してよくわからなかったので、次回お勉強してみようと思います。

かねこ( ・`д・´)