Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 03:24

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



dwoo Template Inheritance

Discussion on dwoo Template Inheritance within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
Reav0r's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 150
Received Thanks: 32
dwoo Template Inheritance

Hay Leute,
ich versuche mich gerade in die dwoo Template engine einzuarbeiten und versuche mich gerade an der Template Inheritance. Allerdings bekomme ich eine Error-Meldung wenn ich versuche das erweiternde Template zu laden.

Hier einmal die Fehler Meldung:
Leider sehr unübersichtlich...

PHP Code:
error] [client ::1PHP Fatal error:  
Uncaught exception 'Dwoo\\Exception\\CompilationException' with message 'Compilation error at line 1 in 
"file:/Library/Server/Web/Data/Sites/Default/Test/dwoo/login.tpl" : 
Extends : Resource "file:../index/index.tpl" not found.' 
in /Users/lucafuhl/Sites/dwoo/lib/Dwoo/Plugins/Functions/FunctionExtends.php:86\nStack trace:\n#0 [internal function]: 
Dwoo\\Plugins\\Functions\\FunctionExtends::compile(Object(Dwoo\\Compiler), '"../index/index...')\n#1 /Users/lucafuhl/Sites/dwoo/lib/Dwoo/Compiler.php(2058): 
ReflectionMethod->invokeArgs(NULL, Array)\n#2 /Users/lucafuhl/Sites/dwoo/lib/Dwoo/Compiler.php(1427): 
Dwoo\\Compiler->parseFunction('{extends "../in...'174false'root'29)\n#3 /Users/lucafuhl/Sites/dwoo/lib/Dwoo/Compiler.php(795): 
Dwoo\\Compiler->parse('{extends "../in...'1NULLfalse'root'29)\n#4 /Users/lucafuhl/Sites/dwoo/lib/Dwoo/Template/String.php(373): 
Dwoo\\Compiler->compile(Object(Dwoo\\Core), Object(Dwoo\\Template\\Fil in /Users/lucafuhl/Sites/dwoo/lib/Dwoo/Plugins/Functions/FunctionExtends.php on line 86 
und hier noch die beiden Templates:

Leider hab ich bisher nicht viel zu dem Fehler gefunden, wäre nice wenn hier jemand wüsste woran das liegen könnte...
Reav0r is offline  
Reply

Tags
dwoo, dwoo-template, php, php template


Similar Threads Similar Threads
inheritance vs composition
06/21/2013 - CO2 Programming - 35 Replies
npcs , players , guards/bats/pets and monsters/bosses all having coords , hp , size , mesh and more stuff in common which would fit better inheritance or composition ? and why ? should i just follow "has a" and "is a" theory ? edit: at efficiency they both sounds the same to me as at inheritance it would always go through base class tree until it reach the derived class , at composition it would do the same for custom types to use them at the composite class (the big complex one), not sure...
[Template]Homepage Template by CrystalPrime (Gold-Version)
09/21/2011 - Metin2 PServer Guides & Strategies - 46 Replies
#Done
WTB Pheonix PS12+ BoT Warrior template/non template
05/15/2011 - 9Dragons Trading - 9 Replies
I will pay by paypal. No nab scammers. pm me with details of what is on the char ie weopon relics etc. thnx



All times are GMT +2. The time now is 03:25.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.