How would I get:
print (!$getTemplate) ? "Cannot Find Template File!" : "Template OK!";
to be used as:
if (!$getTemplate)
{
echo "Cannot Find Template File!";
}
else
{
echo "Template OK!";
};
I have tried so many way of doing it but cant find it, im still quite new at PHP.
It’s hard to tell where this going wrong from your question but I would suggest this.
You could try using
file_exists();For example:
Edited later to include OP’s edit: