CodeIgniter Forums
CI4 not registering view with Smarty - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: CI4 not registering view with Smarty (/thread-80270.html)



CI4 not registering view with Smarty - MrLeroy - 10-11-2021

Hello,
I have noticed that if I use smarty template engine, debug bar always shows "Views 0" and no template data. Is there any way to modify debugger to correctly pick up smarty and provided data to the template?


RE: CI4 not registering view with Smarty - iRedds - 10-13-2021

Of course.
1. You need to create a provider class that will implement the RenderInterface, pass all Smarty calls and generate data for the toolbar.
2. Override the renderer service in which you will instantiate the above class.

=)