show current view template in Smarty tab
This commit is contained in:
parent
0d4662edf5
commit
48ba33562e
@ -17,6 +17,7 @@ namespace D3\DebugBar\Application\Models\Collectors;
|
|||||||
|
|
||||||
use DebugBar\DataCollector\DataCollector;
|
use DebugBar\DataCollector\DataCollector;
|
||||||
use DebugBar\DataCollector\Renderable;
|
use DebugBar\DataCollector\Renderable;
|
||||||
|
use OxidEsales\Eshop\Core\Registry;
|
||||||
use Smarty;
|
use Smarty;
|
||||||
|
|
||||||
class SmartyCollector extends DataCollector implements Renderable
|
class SmartyCollector extends DataCollector implements Renderable
|
||||||
@ -67,7 +68,7 @@ class SmartyCollector extends DataCollector implements Renderable
|
|||||||
*/
|
*/
|
||||||
public function collect(): array
|
public function collect(): array
|
||||||
{
|
{
|
||||||
$data = [];
|
$data = ['current view template' => Registry::getConfig()->getTopActiveView()->getTemplateName()];
|
||||||
|
|
||||||
$vars = $this->smarty->get_template_vars();
|
$vars = $this->smarty->get_template_vars();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user