Code Monkey home page Code Monkey logo

Comments (1)

KFKMan avatar KFKMan commented on June 3, 2024

i solved that but when i trying to render file i see empty screen but i'm trying to include compiled file manual it's can be seen.

No any error/warning on console/web page/service.

error_reporting(E_ALL);
ini_set('display_errors', 1);

$this->Engine = new Template(__DIR__.DIRECTORY_SEPARATOR."tpl".DIRECTORY_SEPARATOR, __DIR__.DIRECTORY_SEPARATOR.'compiled'.DIRECTORY_SEPARATOR);
$this->Engine->flushCompiled();
$TemplateVariables = array();
$this->Engine->render($PageTemplate,$TemplateVariables);
#foreach(get_included_files() as $incfile){echo $incfile.PHP_EOL."<br>";}
#include(__DIR__.DIRECTORY_SEPARATOR."compiled".DIRECTORY_SEPARATOR.$PageTemplate.".compiled");

Template File;

Hi

Compiled File;

Hi

On Include Files List, Look Like it's included.

C:\Users\oyunm\Desktop\template_sys\template-engine.php
C:\Users\oyunm\Desktop\template_sys\vendor\autoload.php
C:\Users\oyunm\Desktop\template_sys\vendor\composer\autoload_real.php
C:\Users\oyunm\Desktop\template_sys\vendor\composer\platform_check.php
C:\Users\oyunm\Desktop\template_sys\vendor\composer\ClassLoader.php
C:\Users\oyunm\Desktop\template_sys\vendor\composer\autoload_static.php
C:\Users\oyunm\Desktop\template_sys\sitemap-generator.php
C:\Users\oyunm\Desktop\template_sys\vendor\tleckie\template\src\Template.php
C:\Users\oyunm\Desktop\template_sys\vendor\tleckie\template\src\TemplateInterface.php
C:\Users\oyunm\Desktop\template_sys\vendor\tleckie\template\src\Compiler\Path.php
C:\Users\oyunm\Desktop\template_sys\vendor\tleckie\template\src\Compiler\PathInterface.php
C:\Users\oyunm\Desktop\template_sys\vendor\tleckie\template\src\Compiler\Compiler.php
C:\Users\oyunm\Desktop\template_sys\vendor\tleckie\template\src\Compiler\CompilerInterface.php
C:\Users\oyunm\Desktop\template_sys\vendor\tleckie\template\src\Compiler\Parser\Rules.php
C:\Users\oyunm\Desktop\template_sys\vendor\tleckie\template\src\Compiler\Parser\AbstractRules.php
C:\Users\oyunm\Desktop\template_sys\vendor\tleckie\template\src\Compiler\Parser\RulesInterface.php
C:\Users\oyunm\Desktop\template_sys\compiled\template.html.compiled

from template.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.