No, just make a model file.

Seriously, what's the problem with having:

<?php
class Engine extends AppModel
{
        var $name = 'Engine';
}
?>



On Jul 2, 5:00 pm, Ben <[EMAIL PROTECTED]> wrote:
> Hello World,
>
> i just tried to search, but can't find what i'm looking for.
>
> I want to bind a table to a model, so that associated entrys will
> shown at pagination. BUT i don't want to create a model-file just to
> get it.
>
> Some source for explanation:
>
> class Car extends AppModel{
>     var $name = 'Car';
>     var $uses = 'Cars';
>
>    var $belongsTo = 'Engines';     // BUT there shoudn't be a Model
> named 'Engine', just a Table called 'Engines'!!!!
>
>    function index(){
>        [...]
>        $this->Car->paginate('Cars');     // Should find Car1 ->
> Engine1, Car2 -> Engine2, ...
>    }
>
> }
>
> Is there a way to get it work?
> Ben
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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