KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

How to use some php code in the footer string? #1884

Closed Eugene opened this topic on on Jan 30, 2021 - 3 comments

Eugene commented on Jan 30, 2021

Hi, I try to change the footer in my dashboard like this

>footerLeft("<div class='d-none d-md-block d-lg-block'>&copy; <?php echo date('Y'); ?>Company name</div>")

But in the rendered Html I get

<div class="d-none d-md-block d-lg-block">©<!--?php echo date('Y'); ?--> Company name</div>

Why is my PHP code commented?

Eugene commented on Jan 30, 2021

I've resolved it using the variable with the current year value. But it is a bit less transparent than an inline PHP statement

KoolReport commented on Jan 30, 2021

May be this will be better:

>footerLeft("<div class='d-none d-md-block d-lg-block'>&copy; ".date('Y')." Company name</div>")
Eugene commented on Jan 30, 2021

Thanks :-)

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None