You'll need to create your own model, controller and view.

Since pages was already taken, I created "contents".

Simple model with:

tile, url (or slug), and body (just an HTML dump).

I pass the URL to my view and findbyUrl. I slapped up fckEditor on the add
and edit views for the controller.
and on the "view" view (lol) I the the page title to:
$contents->['Content']['title'].
and then just did an <? echo $contents->['Content']['body'] ?>

Works quite nicely.
--
Baz L
Day In The Life of Baz
http://www.LifeOfBaz.com/

On 8/6/07, Sam Sherlock <[EMAIL PROTECTED]> wrote:
>
> but static is not dynamic
>
> I thought pages were for static pages with content updated infrequently
> and therefore the most apt method for such content is a page; not requiring
> db table, model & controller
>
> On 06/08/2007, murtada <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi,
> >
> > I would like my client to be able to login and edit the main content
> > of /pages/ files, such as about us, contact us, and even home.
> >
> > How is this possible? Do I have to make a controller for each page,
> > and store the data in the database?
> >
> > A quick step-by-step guide would be great.
> >
> > Thank you kindly.
> >
> > Murtada
> >
> >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to