PHP Classes
elePHPant
Icontem

package View

Recommend this page to a friend!

      View  >  All threads  >  package View  >  (Un) Subscribe thread alerts  
Subject:package View
Summary:What?
Messages:2
Author:Alekos Psimikakis
Date:2017-10-24 09:50:35
 

  1. package View   Reply   Report abuse  
Alekos Psimikakis - 2017-10-24 09:50:35
What is an HTML template file, what is ann HTML layout files and how exactly this class work?

I started with $view = new View('1.htm', '2.htm');, and the output was exactly the same with '2.htm'. So, I certainly din't provide the right HTML files!

Note also that before that I had to fix two errors:
1) Fatal error: Default value for parameters with a class type hint can only be NULL in View.php on line 26
2) Fatal error: Default value for parameters with a class type hint can only be NULL in View.php on line 42



  2. Re: package View   Reply   Report abuse  
Ezhaym Najera M - 2018-09-19 20:57:25 - In reply to message 1 from Alekos Psimikakis
You need to tell where you put files on Constants in View class, but i think error is PHP version, this works on PHP7.1+