Yii Framework Forum: Domain-Driven Design in YII - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Domain-Driven Design in YII Rate Topic: -----

#1 User is offline   malkum 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 15-June 12

Posted 22 August 2012 - 01:30 AM

Hello Yiiers,
Recently I came to know about a methodology called Domain Driven Design. I am still learning about it. My immediate reaction was to check if YII supports such design.

To my surprise google showed me another framework called Flow3 which is developed in PHP and implements the DDD design.

I want the guys to discuss more about it and help me find a solution for implementing DDD design in YII as I dont want to learn another framework and I love YII. Attached link expains the DDD design from the FLOW3 documentation

DDD and Flow3 Framework
0

#2 User is offline   phtamas 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 526
  • Joined: 26-February 11
  • Location:Mezőtúr, Hungary

Posted 25 August 2012 - 09:14 AM

View Postmalkum, on 22 August 2012 - 01:30 AM, said:

I dont want to learn another framework


Fortunately you don't have to. Domain Driven Design is not a "feature" that can be implemented at framework level. The reason for that is simple: the framework doesn't know anything (and must not make too much assumptions) about the actual problem domain of your client/employer. Problem domain analysis and application design is your responsibility and you are free to use any methodology you wish. Yii only provides tools for the implementation phase.
0

#3 User is offline   leandro 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 26
  • Joined: 01-February 10

Posted 25 August 2012 - 01:33 PM

Hi Malkum, I don't use Domain Driven Design (DDD) yet, but I completely read the Evans book (the DDD creator) and other DDD papers. I agree with phtamas that Yii is agnostic regarding the design process you use (like most programming frameworks). However, I think that is very difficult implement a DDD design with a language/framework that is not strongly object oriented. Happily, Yii it is, much more than pure PHP, which supports object oriented programming but is not object oriented itself. This is the reason because most DDD designers prefer Java as their programming language. But you can use Yii with DDD. Just my opinion.

Best regards,
Leandro
0

#4 User is offline   APer 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 13-December 11

Posted 27 September 2012 - 05:28 PM

As far as i know Yii was designed to develop application by using database first approach, and basically DDD drived from model, so i think if we want to implement the DDD methodology using Yii then Yii must provide some support to model first development rather than generate model from existing database tables. I really interested to know such design model to be supported by Yii,
0

#5 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 27 September 2012 - 05:34 PM

I always us a model first approach - always.
I rely on migrations so I don't need any existing database tables.
"Less noise - more signal"
0

#6 User is offline   APer 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 13-December 11

Posted 27 September 2012 - 05:51 PM

View Postjacmoe, on 27 September 2012 - 05:34 PM, said:

I always us a model first approach - always.
I rely on migrations so I don't need any existing database tables.


may you write some tutorial of using migration for DDD? I'll really appreciate this,
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users