Thanks On Jun 4, 9:50 pm, CrotchFrog <[email protected]> wrote: > My understanding is that you can have a controller without a model by > declaring an empty $uses array in your controller. > > public $uses = array(); > > If the page is static you can also use the 'Pages' controller and create > your view in /View/Pages (no model or controller method required). > That page would be accessible through the url @ your_site/pages/yourView or > you can create a custom route to that page. > > My normal implementation of views is to create my model, then controller, > and lastly create views for any controller methods that require one. > > HTH, > ED > > > > > > > > On Monday, June 4, 2012 7:44:36 AM UTC-4, 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
-- 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
