Welcome Guest, Not a member yet? Register   Sign In
Issue with include
#7

(This post was last modified: 05-17-2016, 05:52 PM by John_Betong. Edit Reason: Added condition )

I use many includes within my views also depending on passed parameters different HTML headers are loaded (a special one for AmpProject compatible pages.)

Recently CodeIgniter simplified includes by declaring a VIEWPATH constant in index.php.

// view file common to many web-pages
if( isset( $ampOk ) ):
require VIEWPATH ."template/core/_header-amp.php";
else:
// load non-amp version
endif;


Tediously tapped on a tablet Sad
Reply


Messages In This Thread
Issue with include - by kikk - 05-12-2016, 06:25 AM
RE: Issue with include - by Wouter60 - 05-12-2016, 09:55 AM
RE: Issue with include - by kikk - 05-13-2016, 12:12 AM
RE: Issue with include - by kikk - 05-13-2016, 06:34 AM
RE: Issue with include - by kikk - 05-17-2016, 12:40 AM
RE: Issue with include - by Wouter60 - 05-17-2016, 12:36 PM
RE: Issue with include - by John_Betong - 05-17-2016, 05:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB