Hi!
I am developing my web application with cake, but I need to deliver
the diagram of classes of the application with the Model-View-
Controller that uses. I have been searching very much but I do not
find anything of help. If someone can say me any link or something i
will great.
Thanks and regards
Just curious,
If you've created some app with cake, you could think of a mvc diagram
yourself I think :-)
Just think of how you work with it... You create a controller that
extends from some other class, you can reference a model from that
controller (which also extends from some other class), and you select
a view with that controller... In a view, can you reference the
controller that selected the view, or can you call some method on the
model directly from a view?
On 15 mei, 21:58, dandreta <borja_santu...@hotmail.com> wrote:
> Hi!
> I am developing my web application with cake, but I need to deliver
> the diagram of classes of the application with the Model-View-
> Controller that uses. I have been searching very much but I do not
> find anything of help. If someone can say me any link or something i
> will great.
> Thanks and regards
On Fri, May 16, 2008 at 3:28 PM, dandreta <borja_santu...@hotmail.com> wrote:
> Hi! > I am developing my web application with cake, but I need to deliver > the diagram of classes of the application with the Model-View- > Controller that uses. I have been searching very much but I do not > find anything of help. If someone can say me any link or something i > will great. > Thanks and regards
Hi! Do you mean a class inheritance diagram, like those in api.cakephp.org ? Perhaps you could get away with phpDocumentor... I believe it's used for generating the api docs (I could be wrong, though).
Thank you for answering.
I think I have not explained well, but what I want is some example of
classes diagram with attributes and methods of some application to see
how the relation is represented in the design between the classes
applying the Model-View-Controller.
For example, in my application I have a table Person (name, age, sex)
in the database. if I want to obtain all the persons and add a new
person I know that the PersonsController calls to PersonModel. Then I
have the PersonsController class and the PersonModel class but i dont
know what methods have each class.
I hope you have understood to me.
Thanks and regards
On 15 mayo, 22:41, "Juan Miguel Paredes" <juan.pare...@gmail.com>
wrote:
> On Fri, May 16, 2008 at 3:28 PM, dandreta <borja_santu...@hotmail.com> wrote:
> > Hi!
> > I am developing my web application with cake, but I need to deliver
> > the diagram of classes of the application with the Model-View-
> > Controller that uses. I have been searching very much but I do not
> > find anything of help. If someone can say me any link or something i
> > will great.
> > Thanks and regards
> Hi! Do you mean a class inheritance diagram, like those in
> api.cakephp.org ? Perhaps you could get away with phpDocumentor... I
> believe it's used for generating the api docs (I could be wrong,
> though).
On Sat, May 17, 2008 at 1:50 PM, dandreta <borja_santu...@hotmail.com> wrote:
> Thank you for answering. > I think I have not explained well, but what I want is some example of > classes diagram with attributes and methods of some application to see > how the relation is represented in the design between the classes > applying the Model-View-Controller. > For example, in my application I have a table Person (name, age, sex) > in the database. if I want to obtain all the persons and add a new > person I know that the PersonsController calls to PersonModel. Then I > have the PersonsController class and the PersonModel class but i dont > know what methods have each class. > I hope you have understood to me. > Thanks and regards
If phpDocumentor doesn't work for you, you could always try to 'reverse engineer' your code to generate diagrams (UML, I pressume). I believe Umbrello (and other floss tools) can import PHP classes into diagrams. Commercial tools are also available (SparxSystems Enterprise Architect, the Rational Software Architect and related tools, etc.). Anyway, IMHO it's easier to do 'forward engineering' than reverse.
> Hi! > I am developing my web application with cake, but I need to deliver > the diagram of classes of the application with the Model-View- > Controller that uses.
> Not tried it myself, filed on my list of things to do...
It will definitely be a good start, but the script would need to be modified to draw the associations between controllers and models, as well, if I understood the op's question correctly
Then, to seeing if I have understood it well. For my example, I have
two classes:
---------------------------------------------------
PersonsController
{attributes}
-model:Person
{methods}
+insertPerson(name,age,sex):void
+obtListPersons():Person[]
---------------------------------------------------
y
----------------------------------------------------
PersonModel
{attributes}
-id:int
-name:String
-age:int
-sex:String
{methods}
+Person(id,name,age,sex):Person
+obtListPersons():Person[]
----------------------------------------------------
Would it be like that?
It is strange for me that in the class ModeloPersona, has the builder
method of the class (+Person (id, name, age,sex):Person) and also the
method that returns all of the persons (+obtListPersons ():Person [])
because inside of a class only it must be its builder and the methods
that obtain or modify its attributes (for example: +obtname():String
and +setname (name:String):void). Or I am wrong?
I hope that you can solve to me these doubts.
On 16 mayo, 23:06, "Juan Miguel Paredes" <juan.pare...@gmail.com>
wrote:
> > Not tried it myself, filed on my list of things to do...
> It will definitely be a good start, but the script would need to be
> modified to draw the associations between controllers and models, as
> well, if I understood the op's question correctly
> Then, to seeing if I have understood it well. For my example, I have
> two classes:
> ---------------------------------------------------
> PersonsController
> {attributes}
> -model:Person
> {methods}
> +insertPerson(name,age,sex):void
> +obtListPersons():Person[]
> ---------------------------------------------------
> y
> ----------------------------------------------------
> PersonModel
> {attributes}
> -id:int
> -name:String
> -age:int
> -sex:String
> {methods}
> +Person(id,name,age,sex):Person
> +obtListPersons():Person[]
> ----------------------------------------------------
> Would it be like that?
> It is strange for me that in the class ModeloPersona, has the builder
> method of the class (+Person (id, name, age,sex):Person) and also the
> method that returns all of the persons (+obtListPersons ():Person [])
> because inside of a class only it must be its builder and the methods
> that obtain or modify its attributes (for example: +obtname():String
> and +setname (name:String):void). Or I am wrong?
> I hope that you can solve to me these doubts.
> On 16 mayo, 23:06, "Juan Miguel Paredes" <juan.pare...@gmail.com>
> wrote:
> > On Sat, May 17, 2008 at 4:28 PM, Howard Glynn <hgl...@gmail.com> wrote:
> > > Perhaps this is what you are looking for
> > > Not tried it myself, filed on my list of things to do...
> > It will definitely be a good start, but the script would need to be
> > modified to draw the associations between controllers and models, as
> > well, if I understood the op's question correctly