Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. App::import('Controller', 'cars');
  2. $carsCont = new carsController;
  3.  
  4. App::import('Controller', 'brands');
  5. $brandCont = new brandsController;
  6.  
  7. foreach($statuss as $status)
  8.  
  9. {
  10.  
  11. $car_info = $carsCont->get_car_info($status['status']['car_id']);
  12.  
  13. $car_name = $car_info['car_name'];
  14.  
  15. $car_id = $status['status']['car_id'];
  16.  
  17. $brand_list = $brandCont -> get_brand_name($status['car']['brand_id']); <---- this is not working
  18.  
  19.  
  20. echo $brand_list['brand']['brand']; echo $car_name;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement