Hi,
I have a problem in showing from sub models information that is in array..
I have 3 models (and tables); Reservation, ServiceCategorys and Services - where all the reservations are on it own main table (reservation_id, ect), the ServiceCategories (service_id, service_name) have the options that they can chose, and in the Services are the values for the services (id, reservation_id, service_id, service_value).
Services 'belongTo' (JOIN INNER) => ServiceCategories 'belongTo' (JOIN INNER) => Reservation
If i put on the 'Front list' PHP Functions;
to show that is there i get;
My head is not working today.. How i can print / show the values there..? Thanks.
How I can
I have a problem in showing from sub models information that is in array..
I have 3 models (and tables); Reservation, ServiceCategorys and Services - where all the reservations are on it own main table (reservation_id, ect), the ServiceCategories (service_id, service_name) have the options that they can chose, and in the Services are the values for the services (id, reservation_id, service_id, service_value).
Services 'belongTo' (JOIN INNER) => ServiceCategories 'belongTo' (JOIN INNER) => Reservation
If i put on the 'Front list' PHP Functions;
Reservation.Services: $temp = \GCore\Libs\Arr::getVal($row, array("Services", "[n]", "request_id"), array()); return print_r($temp );
to show that is there i get;
Array (
[id] => Array ( )
[service_id] => Array ( )
[reservation_id] => Array ( )
[service_value] => Array ( )
)
My head is not working today.. How i can print / show the values there..? Thanks.
How I can