How do I pass information my a controller to a view in PHP (no framework)?

SmartBoy786

New Member
Using PHP, If I have a model (a class) where I various queries, whatever I need, and in my controller, I use myModel = new CustomerModel(); and later in the controller, say I call myMyodel in the controller (I know looks like codeigniter but I am not using a framework) to:$data['query'] = myModel.OrderByLastName();how do I pass that $data['query'] to a view, a separate .php page?I don't wan to echo anything from my controller.Also, was hoping this design, the way I explained it makes sense. Or am I wasting time with the model class?
 
Back
Top