Closed
Description
Direction
when using parser to render view, the parser can't differentiate between {expired_discount} with {expired_discount_date}
Describe the bug
Code example
Controller:
<?php
namespace App\Controllers;
class Test extends BaseController
{
public function index()
{
$data = [
'expired_discount' => '1212312423470',
'expired_discount_date' => '1999-09-09',
];
echo $this->parser->setData($data)->render('test');
}
}
View:
<p>Expired Discount Serial = {expired_discount}</p>
<p>Expired Discount Date = {expired_discount_date}</p>
Result:
Expired Discount Serial = 1212312423470
Expired Discount Date = 1212312423470
expired_discount_date will have the same value as expired_discount
CodeIgniter 4 version
branch: develop
Expected behavior, and steps to reproduce if appropriate
value of expired_discount should not be the same with expired_discount_date
Context
- OS: Window 10
- Apache 2.4.46
- 7.4.10
Activity