I have this code which is inside a view Inventory.php from a model named Inventory. This is used to display the current ID being viewed:
<?php $inventoryID = $model->inventory_id; ?> <--- this one.
<h3>View Info for Inventory No. <?php echo $inventoryID; ?>: <?php echo $model->brand->brand; ?> <?php echo $model->model;?></h3>
I want to use it in another model named InventoryHistory because it will be saved in the InventoryHistory database. How do I do that?