I was hoping to make a couple of directories under the webroot, e.g.

www.mysite.com/nonCakeDir1/
www.mysite.com/nonCakeDir2/

so I could then make calls to php files within those.
(e.g. www.mysite.com/nonCakeDir2/hello.php)

But as soon as there is a directory within the webroot, cake wants to
use it's structure (looking for controllers and views).

How do I set things up to use these directories?

On Sep 13, 10:00 am, teknoid <[EMAIL PROTECTED]> wrote:
> To build staticpagesthat share the layout of your cakephp's site,
> you simply add some_file.ctp to your app/views/pagesdirectory, then
> such page is accessed atwww.yoursite.com/pages/some_file. If you want
> a static page that has nothing to do with cake, simply place it in
> your cake's webroot directory and it will be accessed 
> atwww.yousite.com/someOtherFileNotRelatedToCake.php
>
> There is a core 'pages' controller, which you can override if you need
> some specific functionality for your staticpages. Also it may or may
> not be desirable for you to have 'pages' int the path of the URL, but
> that's easily dealt with routes.
>
> I like to make my staticpageslinks point to something 
> likewww.mysite.com/staticPage.html, then this route rule will properly
> make the connection to the right controller (hopefully you can see how
> that works):
>
> Router::connect(’/(.*).html’, array(’controller’ => ‘pages’, ‘action’
> => ‘display’));
>
> On Sep 13, 9:22 am, 703designs <[EMAIL PROTECTED]> wrote:
>
> > The CakePHP docs don't go into very many details about how to use
> > CakePHP in conjunction with a static website. I'm building a light CRM
> > app that will be behind my mostly static company site, but I want to
> > keep these staticpagesin the Cake system so that templates are
> > shared and I have access to dynamic capabilities even on staticpages.
> > What's the preferred way to go about this? I see, for example, that
> > one router is configured to send '/' topages->default(home), and I
> > imagine that routing will be involved in what I'm trying to do.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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