I want to call a file in my controller
like
require_once './protected/mail.gav.php';
But I am not able to do so.
What is the error?
I want to call a file in my controller
like
require_once './protected/mail.gav.php';
But I am not able to do so.
What is the error?
use the path alias to refer file:
require_once ‘./protected/mail.gav.php’; to
require_once Yii::getPathOfAlias('application'). DIRECTORY_SEPARATOR .'mail.gav.php';
just try it , i am not sure is it right
Thanks this works