Create a model file (lets call it Dynamic)
<?php
class Dynamic extens AppModel

$useTable = false;

?>

In your Controller, you can use $this->Dynamic->useTable =
'YOUR_TABLE_NAME';



Thanks.








On Apr 21, 1:23 pm, Jeremy Burns | Class Outfit
<[email protected]> wrote:
> Please show some more of your code - we're in the dark a bit about what you 
> are trying to do.
>
> Jeremy Burns
> Class Outfit
>
> [email protected]http://www.classoutfit.com
>
> On 21 Apr 2011, at 09:21, gannher wrote:
>
>
>
>
>
>
>
>
>
> > On 20 avr, 18:30, cricket <[email protected]> wrote:
> >> On Wed, Apr 20, 2011 at 11:33 AM, gannher <[email protected]> wrote:
> >>> Hello
>
> >>> My application must create table. It will be done with procedure/
> >>> function in mysql. So cakephp doesn't need to send query "create
> >>> table...".
>
> >>> How can I use this table with cakephp ? Must I create file model and
> >>> how ? I would like use function find, paginate, etc with this table.
>
> >> $this->YourModelName->setSource('your_table_name');
>
> > Hello
>
> > With this solution i have :
>
> > Missing Database Table
>
> > Error: Database table debug for model Undefine was not found.
>
> > --
> > Our newest site for the community: CakePHP Video 
> > Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help 
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > [email protected] For more options, visit this group 
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to