I found solution by doing this:

put

var $uses = array();

in my AppController,

and in my PortfolioController set needed model

var $uses = array('Gallery','Image');

It is working but I'm not sure if it is right.
is there any problem doing this?

On Sep 25, 2:02 pm, xaio <[EMAIL PROTECTED]> wrote:
> Thanks Grant, i do this but it still gives me that error.
> It wants me to have Portfolio model
>
> And if i do
>
> var $uses = array();
>
> it works but i don't have access to other models
>
> On Sep 25, 4:54 am, Grant Cox <[EMAIL PROTECTED]> wrote:
>
> >http://manual.cakephp.org/chapter/controllers
>
> > var $uses = array('Gallery', 'Image');
> > in the top of your controller.
>
> > On Sep 25, 10:42 am, xaio <[EMAIL PROTECTED]> wrote:
>
> > > I want to have a controller 'Portfolio' which shows my works, but i
> > > don't have have a model associated with it. My tables are 'galleries'
> > > and 'images'. And i get the folowing error:
>
> > > Missing Database Table
> > > No Database table for model Portfolio (expected portfolios), create it
> > > first.
> > > Notice: If you want to customize this error message, create app\views/
> > > errors/missing_table.ctp
>
> > > Is it possible to have such a controller that don't have any db table?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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