Yes, you can tell CakePHP that your controller doesn't use a model.

On your HomesController add the following variable:

var $uses = null;

Like so:

class HomesController extends AppController
{
        var $uses = null;

        function index()
        {
                $this->set('title', 'Home Page');
        }
}

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge.
BAKE ON!


-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de Tazz
Enviado el: MiƩrcoles, 20 de Diciembre de 2006 02:31 a.m.
Para: Cake PHP
Asunto: Re: How do i change default home page?


Humm when I create the HomesController, it then requires me do build
the Homes Model and then that requires an actual database table...

Is there a way so I can just create a home page and display different
data from different models regardless of their relation?



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to