Also, to set the page title for one of these pages, you just put this
somewhere in your view template:

$this->pageTitle = 'Home Page of Super Mash Up World';

And in case you are curious, you use the app/config/routes.php file to
make it so that:

http://www.mashupworld.com/

silently redirects to:

http://www.mashupworld.com/pages/homepage

Also, in the future it would be better to use a more descriptive
subject for your post.  "New User" doesn't really describe what your
post is about ... your post is actually more useful than the subject
line suggests it is.

-Aran

On May 21, 2:26 pm, aranworld <[EMAIL PROTECTED]> wrote:
> There is a very similar discussion thread posted yesterday 
> here:http://groups.google.com/group/cake-php/browse_thread/thread/2c01cf7c...
>
> The key is the Pages controller.  Pages are "static" pages whose
> templates are in the views/templates directory.  They do not have
> controllers, or models, and are accessed with the URL:
>
> http://www.yourwebsite.com/pages/home_page_mashup -->
> points to views/pages/home_page_mashup.ctp
>
> To make things "dynamic" you fill up this "static" page with calls to
> $this->element(), in which each element is built upon a call to $this-
>
> >requestAction().
>
> This can cause performance problems, however, if you employ caching,
> then the performance problem isn't really an issue.
>
> As mentioned in the thread above, this article provides a lot of
> information on how to use the combination of element() and
> requestAction().
>
> http://bakery.cakephp.org/articles/view/creating-reusable-elements-wi...
>
> -Aran
>
> On May 21, 1:39 pm, "Marcos Aruj" <[EMAIL PROTECTED]> wrote:
>
> > I think you are looking for "layouts". That's where you can join all
> > different parts of the page and style them. Look for them in the tutorial.
> > Hope this helps.
>
> > On Wed, May 21, 2008 at 2:21 PM, Rob Wilkerson <[EMAIL PROTECTED]> wrote:
>
> > > Hey guys -
>
> > > I'm new to Cake and have walked through a tutorial or two, but it
> > > occurs to me that most of what I've read with respect to getting
> > > started with Cake is very simplistic.  I haven't seen any "advanced"
> > > examples so far.  That got me thinking that most sites aren't so
> > > simplistic as CRUD+view for a single class of object (like, say,
> > > features).  If all I wanted to display was features, then sure, a
> > > simple m, v and c for the feature class is all I'd need, but as often
> > > as not, pages are kind of mashups of different objects.
>
> > > So what's the core strategy for creating a page view that is
> > > effectively a mashup displaying features, sponsors, events, etc.?  I'm
> > > sure it can be done, I just haven't read anything that offers an
> > > example.
>
> > > Thanks for the input.
>
> > > Rob
>
> > --
> > Marcos Aruj Alvarez
> > Ingeniero de Software
> > -------------------------------
> > [EMAIL PROTECTED]
> > -----
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to