hi marcos,

  did you read the manual or something ? What you area asking is all
answered there.

  I strongly suggest you follow these sections in the manual:
http://manual.cakephp.org/chapter/models
http://manual.cakephp.org/chapter/controllers
http://manual.cakephp.org/chapter/views
  They will show you the main aspects of the framework and ther MVC
pattern (along with some basic sql and php)

  Anyways, the thing is:
- layout -> a placeholder for the content. no code here (almost)
- views -> where all the results are shown. minimum logic here (a few
loops, maybe an 'if')
- elements -> tiny 'views' that are used more than once in different controllers
- controllers -> mostly you will put the logic here, and spend your
time dealing with models inside the actions, retrieving data from
those models, and handling them to the view, where it will be rendered
to the user.
- models -> commonly an SQL table abstraction. You set the
relationships between tables here with a few words

  and that is it.

  spark






On 10/5/06, Neves <[EMAIL PROTECTED]> wrote:
>
> Here goes a better example.
> My main layout has a place where all pages go inside and a sidebar with
> the last news.
> Where goes the code that query the database and bring data to the
> layout view use it?
>
>
> >
>


-- 
[web] http://synapsisdi.com.br
[livesets] http://djspark.com.br/mp3

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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