Sorry if this question is too vague, but I’d rather not muddy it’s point with my assumptions as to what may or may not actually be relevant background information.
If I create an association such as Employee belongsTo Company
When I create a view for Employee and want to display their Company name how can I simply display the company name by…
<?php echo $employee['Employee']['Company']['company_name'] ?>
or simply a custom property (if such a thing exist) such as…
<?php echo $employee['Employee']['CompanyName'] ?>
This, of course, assumes the use of…
$this->set('employee',$someEmployeeRetreivalLogicHere)
…in the Controller
It should be accessible with:
If that doesn’t work, use debug($employee); to see the array’s structure.