Skip to content

How to limit foreach in the first object of a json file

Hello I am trying to print a json file to a table. The json file is from this website https://jsonvat.com/. I want to print $data->rates->periods->rates[0]->standard. But I get “Cannot use object of type stdClass as array in …” My code is this: When I change $data = json_decode($…

fetch related records between 3 model

I have few products in 3 category (for example), and each product has a brand. I want to show brands which related to products in a specific category. Models: –product –brand –category relations: category has many products brand has many products How can I do that? Answer Considering you hav…

Dropbox api limitations

Is it possible to use dropbox api to show directly to my webpage the content of a folder which is on my dropbox account and to allow dropbox users to add content to it (directly from my website too) …