what functionality does the content class give the classes that extend it?

I think you want to have these reusable parts within a component
and use behaviours on the corresponding models

but you can read Neil Crook's answer here
http://stackoverflow.com/questions/1875831/cakephp-abstracting-appcontroller-another-level-possible
also read
http://cakephp.1045679.n5.nabble.com/Extending-controllers-td1261319.html

 - S




On 9 February 2011 20:28, mfrday <[email protected]> wrote:

> Hi there - I am somewhat of a newbie to cake, and have what I believe
> is a simple question.     I have the following content entities being
> submitted to our system:   bookmarks, messages, and posts.   All of
> these entities have a set of underlying similar fields /
> relationships.   What I would like to do is create a base class
> (content) that can be inherited by all of these other content
> entities.
>
> Here is a sample of the data elements:
>
> Contents Class:
> - id
> - user_id
> - target_id
> - category_id
> - created
> - modified
>
> Bookmarks Class (inherits from Content)
> - id
> - content_id
> - url
> - message
>
> Posts Class  (inherits from Content)
> - id
> - content_id
> - name
> - picture
>
> etc....
>
>
> My question is how do I go about doing this ?   Is the Content class a
> component ?   Do I need to create a regular view / controller for it
> as well ?
>
> Any direction that could be given would be extremely helpful.
>
> Regards,
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to