On Jun 27, 2006, at 9:55 AM, PaulM wrote:
>
> When user visits my site I want them to access a home page. On that
> home page I want to display a form with option files. The option
> files
> will come directly from a database.
So it uses a database.
> But I am not using a database for the page itself. Cake asks me to
> create a database for the model, but I dont need a model for the
> default home page.
Okay, so you don't use a database.
> The default page however will use database to construct the form.
Okay, so you need a database.
> I am not understanding something or is there a way to create a page
> without a model?
I'm not understanding something as well, but the way to have a
controller not use a model is by setting the controller's $uses
variable to null.
<?php
class SprocketsController extends AppController
{
var $uses = null;
function index()
{
//...
}
}
?>
;o)
-- J
>
> Thanks
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---