MVC in Drupal

在Drupal 要maintain 一個完整的MVC 結構其實不容易
因為template engine 的功能太強大, 而且我們的習慣又免得修改 module
所以好多在controller 和views 界線之間的修改都會在template 內做

在我從其他的framework 中得到的MVC concept,
覺得其中一部份的修改其實是應該用修改controller 實現的
但因為上面的原因, 便選擇了用Views 處理
我都正在試驗自定一個module 來 customize 部份功能,
又能令其他 contrib module 的升級不受影響

其中一個想法是,
要分開"需要的功能" 和 "garland 不需要的功能"
應該能清楚的分辨什麼應該在Views, 什麼不應該的煩惱

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <h4> <h3>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options