Answer the question
In order to leave comments, you need to log in
Get model in layout?
Good morning. There are many different models. For users for companies, etc.
There is in layout main.php which is responsible for displaying pages. How can I refer to the company model in this file, for example?
tried like this
<?
$model = new Company();
?>
Answer the question
In order to leave comments, you need to log in
How can I refer to the company model in this file, for example?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question