Display custom text in view

Hello,

I have made some conditon based code in view.edit.php file.

if($res > 10)
{
echo “Some statement”;
}
else
{
echo “Some statement”;
}

I want to display the echo statement in editview page. How can i do it?

Hi,

You can use Display function in view.edit.php file as following.

function display() {
if($res > 10)
{
echo “Some statement”;
}
else
{
echo “Some statement”;
}
parent::display();
}

This will help…

Hi,

Any update on this?