Welcome Guest, Not a member yet? Register   Sign In
CI3 - wiredesignz HMVC
#1

Hello,

I've just setup a local copy of CI3 & installed wiredesignz HMVC and following the installation instructions I have the welcome message working as it should, I'm just getting started and would like to be able to include a single header.php file & footer.php to use across the application, but unsure where to actually put them within the application.

I currently have the following:
/application/modules/welcome/controllers/Welcome.php
/application/modules/welcome/views/welcome_message.php

/application/modules/templates/views/header.php
/application/modules/templates/views/footer.php

If I put
Code:
<?php require_once 'header.php'; ?>
in welcome_message.php so it loads the header.php where required so basically I don't have to add a header or footer file to each module??
and I can keep them in one place


Regards
Reply


Messages In This Thread
CI3 - wiredesignz HMVC - by ambush-reality - 06-03-2015, 09:18 AM
RE: CI3 - wiredesignz HMVC - by davicotico - 06-03-2015, 11:00 AM
RE: CI3 - wiredesignz HMVC - by ambush-reality - 06-03-2015, 12:20 PM
RE: CI3 - wiredesignz HMVC - by RogerMore - 06-04-2015, 12:36 AM
RE: CI3 - wiredesignz HMVC - by mwhitney - 06-04-2015, 07:13 AM
RE: CI3 - wiredesignz HMVC - by ambush-reality - 06-04-2015, 08:11 AM
RE: CI3 - wiredesignz HMVC - by mwhitney - 06-04-2015, 08:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB