yeah, i found that code while i was reading through some posts here.
example...say you have an 'about' page with just a blurb of text and
no db. here is the code for the model 'about.php':
<?php
class About extends AppModel
{
var $name = 'About';
var $useTable = false;
}
?>
i agree that's a better way to do it.
On Apr 23, 1:42 pm, the_woodsman <[EMAIL PROTECTED]> wrote:
> Remember, URLs are based on controllers, not models, and you can
> always have a cpanel controller that doesn´t use any models (off the
> top of my head I think this is by setting the $uses field to null or
> false).
>
> You can also use routing to make /cpanel link to any other url, be it /
> pages/panel, /somecontroller/someparam, etc.
>
> On Apr 23, 10:53 am, Stacey <[EMAIL PROTECTED]> wrote:
>
> > if memory serves me correctly, you need to edit your main .htaccess
> > file to include the following:
>
> > <IfModule mod_rewrite.c>
> > RewriteEngine on
> > RewriteRule ^$ app/webroot/ [L]
> > RewriteRule (.*) app/webroot/$1 [L]
> > </IfModule>
>
> > that keeps it from handling the webroot files, and just shows them as
> > is.
>
> > On Apr 23, 9:35 am, 浪漫様 <[EMAIL PROTECTED]> wrote:
>
> > > Thanks for your reply, but is not working for me... I already tried
> > > that before... but when i entered "www.mysite.com/cpanel" it
> > > automatically redirected to "www.mysite.com/app/webroot/cpanel"
>
> > > Rohman- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---