clevertech / YiiSES

21 stars 5 forks source link

include(CSSToInlineStylesHelper.php) [... failed to open stream: No such file or directory #1

Closed sallespromanager closed 11 years ago

sallespromanager commented 11 years ago

Hi, I am using Yii standard project ( not Yii-Boilerplate ) and Yii-SES module.

I am having a problem with the call to this helper function in Blank.php when I try to create a campaign.

I included it manually as shown below, BUT then it complains it can not be loaded again later on when the e-mail is rendered after calling the Campaign command.

what am I doing wrong ?

89 ob_end_clean(); 90 //$path = Yii::getPathOfAlias('application.components.helpers') . DIRECTORY_SEPARATOR; 91 //require($path.'CSSToInlineStylesHelper.php'); 92 $email = new CSSToInlineStylesHelper($markup, $css);

sallespromanager commented 11 years ago
// autoloading the component classes in   config/main.php   did the trick.

'import'=>array(
    'application.models.*',
    'application.components.*',

    'application.modules.ses.components.helpers.*',

thanks Toni !