Welcome Guest, Not a member yet? Register   Sign In
Title in View or in Controller [SOLVED]
#3

@InsiteFX is right. It depends but I would go with the first option but not typing this way

PHP Code:
<?php if(isset($meta_title) && !empty($meta_title)): ?>
    <?= '<title>'.esc($meta_title).'</title>'?>
<?php 
endif; ?>


but shortly this way

PHP Code:
<title><?php echo $title ?? 'No title' ?></title> 
Reply


Messages In This Thread
RE: Title in View or in Controller - by InsiteFX - 06-26-2022, 12:35 AM
RE: Title in View or in Controller - by demyr - 06-26-2022, 02:52 AM
RE: Title in View or in Controller - by kenjis - 06-26-2022, 04:59 PM
RE: Title in View or in Controller - by InstantT - 06-27-2022, 07:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB