mastering cakePHP.
The static page is working fine once i placed it in pages folder.
:)
On Apr 29, 2:48 am, cricket <zijn.digi...@gmail.com> wrote:
> On Thu, Apr 28, 2011 at 11:49 AM, Jeremy Burns | Class Outfit
>
> <jeremybu...@classoutfit.com> wrote:
> > Really wrong. Please read the guide, even if the Blog tutorial isn't right
> > for you. Start here: http://book.cakephp.org/view/958/The-Pages-Controller.
> > What you are trying to do is one of the most basic things and you are way
> > off line.
>
> Although, granted, it's easy to see how it could be confusing.
>
> varai, if you want to include static, full HTML pages put them under
> app/webroot. You can even have a deep directory structure, eg
>
> app/webroot/foo.bar.html
>
> You would access this with:
>
> http://www.domain.com/foo/bar.html
>
> Take a close look at the rewrite rules in the .htaccess files. What
> they do is check if the requested URL is for an existing file or
> directory under app/webroot. If so, it serves that, other wise it
> passes the request to index.php, which in turn passes it to
> Dispatcher. It's the latter which is complaining that the request
> doesn't make sense.
>
> If you want your static pages to use an existing layout then you need
> to change the static pages into templates. In that case, you'd use the
> PagesController and put your various pages in the app/views/pages
> directory.
--
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 For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment