• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
question : SaaS style URLs , HMVC , Dev Footer

(06-16-2018, 03:27 AM)InsiteFX Wrote: SEE:  This Website

Modules in CodeIgniter 4

Read all the other Blog posts as well.

So currently using HMVC, I can do something like

which calls view  layout_out

then from my controller, i pass this view for $data and content is loaded fine.

But in the layout_one view itself, i have multiple divs ( say for banners, footer, header)
and from that view itself, I call it like this:

echo modules::run('banner/promotions');
echo modules::run('page/footer');
echo modules::run('sidebar/nav');

so curerntly,  a controller calls a page .. where it displays the data, but the page itself calls multiple other controllers to display parts .. making CI very flexible like any wordpress/joomla module with template etc.

But in CI4, i read that there will be no ability to  do anything like this ( the view will be just a view without even ability to run php)

so how is the above kind of use-case handled in CI4 ?


Messages In This Thread
RE: question : SaaS style URLs , HMVC , Dev Footer - by admin0 - 06-16-2018, 04:04 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.