Post by Schwimpi » Tue May 18, 2021 11:56 pm

I'm trying to load a module into the header so it will appear where ever the user goes but can't seem to find a way to do so. Any help is appreciated.

New member

Posts

Joined
Thu Apr 29, 2021 2:19 am

Post by halfhope » Wed May 19, 2021 12:13 am

1. In controller/common/header.php call controller:

Code: Select all

$data['search'] = $this->load->controller('common/search');
2. then you can use call result in template like this:
3.x

Code: Select all

{{ search }}
2.x

Code: Select all

<?php echo $search ?>

My extensions in marketplace. [ security | flexibility | speedup ]


User avatar
Active Member

Posts

Joined
Tue Dec 10, 2013 9:44 pm
Location - San Diego

Post by Schwimpi » Wed May 19, 2021 9:12 pm

Thanks for the help, that did the trick!

New member

Posts

Joined
Thu Apr 29, 2021 2:19 am
Who is online

Users browsing this forum: No registered users and 265 guests