• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Valid Welcome-Message.php

#1
To remove the Welcome-page.php HTML validation errors and warnings;

Step #1

File: ./application/Controllers/Home.php:

PHP Code:
<?php namespace App\Controllers;

use 
CodeIgniter\Controller;

class 
Home extends Controller
{
public function 
index()

   $tmp crypt("a-very-long-random-text-string"'a-personal-crypt-key');
   $data['nonce'] = $tmp;

   return view('welcome_message'$data);
}


}
// 

Step #2

File: ./application/Views/welcome-message.php

PHP Code:
// add lang="en" 
 
  <html lang="en">

// remove: {csp-style-nonce}
// replace with:
 
  <style nonce="<?= $nonce ?>">

// add px
 
  letter-spacing0.8px;

// remove from <svg ...
 
   version="1.0"


 
  

https://validator.w3.org/
That's it a validated web page Smile
download and make your system directory strict
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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