You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 1, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 1, 2020. It is now read-only.
Bug using function {include} 2 times in the same template.
Only if the compiled folder is empty.
The first include use Autoloader::loadFunction,
the second use Autoloader::__autoloadClass and send an error : Cannot redeclare Dwoo\Plugins\Functions\functionInclude().
The second time the function exist but not the class.
I solve the problem with require_once in Autoloader::__autoloadClass.
First of all, I think you need to update your dwoo's sources, because functionInclude as now a first letter as uppercase such as FunctionInclude.
All the tests I've done, I can't reproduce the problem in my environment, so can you tell me if you use .use the dwoo's autoloader or do you use your personal autoloader?
I use latest version of Dwoo and I use standard Dwoo Autoloader. When I want include two tpl files in my template, I see error:
Example 1 :
page.tpl
{include "another.tpl"}
Example 2:
page.tpl
{include "another.tpl"}
{include "another.tpl"}
I see error, Fatal error: Cannot redeclare Dwoo\Plugins\Functions\functionInclude() (previously declared in C:\wamp\www\modern\libs\Dwoo\Plugins\Functions\functionInclude.php:29) in C:\wamp\www\modern\libs\Dwoo\Plugins\Functions\functionInclude.php on line 88
Activity
emulienfou commentedon May 27, 2014
Update full dwoo source and tell me if you have the same bug ?
Hikari974 commentedon May 28, 2014
The problem is solved, but now I have some issue with my autoloader(priority I guess). I work on it and make you a feed back.
MartinMuzatko commentedon Jul 11, 2014
I got the same issue.
postaczech commentedon Oct 20, 2014
I got the same issue with include in templates ... Cannot redeclare Dwoo\Plugins\Functions\functionInclude().
emulienfou commentedon Oct 20, 2014
First of all, I think you need to update your dwoo's sources, because functionInclude as now a first letter as uppercase such as FunctionInclude.
All the tests I've done, I can't reproduce the problem in my environment, so can you tell me if you use .use the dwoo's autoloader or do you use your personal autoloader?
Thanks!
postaczech commentedon Oct 20, 2014
I use latest version of Dwoo and I use standard Dwoo Autoloader. When I want include two tpl files in my template, I see error:
Example 1 :
page.tpl
{include "another.tpl"}
Example 2:
page.tpl
{include "another.tpl"}
{include "another.tpl"}
I see error, Fatal error: Cannot redeclare Dwoo\Plugins\Functions\functionInclude() (previously declared in C:\wamp\www\modern\libs\Dwoo\Plugins\Functions\functionInclude.php:29) in C:\wamp\www\modern\libs\Dwoo\Plugins\Functions\functionInclude.php on line 88
Merge pull request #18 from themightychris/patch/autoloading
emulienfou commentedon Sep 10, 2016
Need to be tested in final 1.3.0