$vehicles = Model_Vehicle::find('all', array( 'offset' => Pagination::$offset, 'limit' => Pagination::$per_page, 'include' => array('propellant', 'type'), ));
protected $belongs_to = array('propellant', 'type');
<?php echo ($vehicle->type_id != 0) ? $vehicle->type->name : 'None'; ?> <?php echo ($vehicle->propellant_id != 0) ? $vehicle->propellant->name : 'None'; ?>
It looks like you're new here. If you want to get involved, click one of these buttons!