and how do i use the controller if i want to send for example in about us page with the default view but with about us content insoide the defaylt view?
2012/6/5 Steve Found <[email protected]> > On 04/06/12 12:44, gorgoro wicks wrote: > >> Hello there again >> >> >> if i have understand the blog tutorial correct when i create a view i >> have to create a controller and a model is that right? >> What i mean is that on MVC is like , that a view must have a >> controller and a model if i want to persist something . >> >> But if don't want that(persistence) can i have view with controller >> only ? >> >> The normal way to implement a page is create the view folder then >> the controller and then the model connect them with code and then >> move on?is that right ?Have i understand that right? >> >> thanks a lot >> >> Data persistence is done in the Model. > > The Controller controls the flow of logic, reads and writes data through > the model and initiates data display through the view. > > The view displays data given to it by a controller or requested from a > controller. > > The 'usual' method of development is to create your model then your > controller and then your views since you will need normally need a view for > each action in the controller. > > If you do not need data persistence at all and it's just a single static > page that you want displayed then Cake already has a Pages controller > object to do this. It's where cake puts the welcome page by default when > you do a cake bake and can be found in app/View/Pages/home.ctp. You can > create any static view that does not require controller logic there. > > > -- > 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 > cake-php+unsubscribe@**googlegroups.com<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/**group/cake-php<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
