There's many ways to check if table ex.
http://forums.mysql.com/read.php?101,33936,40320#msg-40320

If You want to *create* table, without any  structure,
you can play with CREATE TABLE IF NOT EXISTS in model's constructor.
(there's model property $useTable too)

//snipp
public function __construct($id = null, $table = null, $ds = null) {

     parent::__construct($id, $table, $ds);
}

On Sep 25, 7:22 am, forrestgump <[EMAIL PROTECTED]> wrote:
> nobody to give a suggestion ?
>
> On Sep 24, 2:47 pm, forrestgump <[EMAIL PROTECTED]> wrote:
>
> > Hello,
> >  Iam trying to figure out a way for a model to :
> > 1)testtheexistenceof atable.
> > 2)if thetabledoesnt exist i wish the model to create thetable.
>
> > can someone help?
>
> > Forrestgump
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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