I am developing an application where there are different users related to different domains.
In the admin panel i am adding a domain.
Now i need to display logo of each domain.
How can i dynamically display logo of any domain?
Is there any way that i input a domain name as a string and it returns domains information along with the image.
I know i can upload logos while adding a domain but i want it to do it with a simple helper function.
How can i achieve it.
Let suppose i need a function like this
$autoload['helper'] = array('domain_helper');
And to find domain
<img src = "<?php echo domain_image('https://www.google.com/'); ?>" >