Here is a compiled _newsletter.haml from my local machine. It's impossible to get the compiled file from Heroku because it uses ephemeral file systems. No way to access.
$ cat runtime/Haml/cache/42/3d/91bd8b041c10692b0203de214a1022f5d137a59f139b43c8548dee680fa6__newsletter.haml.php
<?php
use \yii\bootstrap\ActiveForm;
function __MtHamlTemplate_423d91bd8b041c10692b0203de214a1022f5d137a59f139b43c8548dee680fa6($__variables)
{
extract($__variables);
?><div class="sub-scrip">
<div class="container">
<?php $form = ActiveForm::begin(['id' => 'subscriber-form', 'action' => ['subscriber/subscribe'], 'options' => ['class' => 'form-inline']]); ?>
<div class="row">
<div class="col-md-5">
<h1 id="newsletter">Subscribe to Our Newsletter</h1>
<p>Subscribe and be the first to receive notice for special deals and savings!</p>
</div>
<div class="col-md-7">
<?php echo $form->field($subscriber, 'name')->textInput(['placeholder'=>'Name']); ?>
<?php echo $form->field($subscriber, 'email')->input('email', ['placeholder'=>'Email']); ?>
<div class="form-group">
<button <?php echo MtHaml\Runtime::renderAttributes(array(array('class', ('btn' . ' ' . 'btn-primary')), array('type', ('submit')), array('style', ('margin-bottom:10px;'))), 'html5', 'UTF-8'); ?>>Subscribe!</button>
</div>
</div>
</div>
<?php ActiveForm::end() ; ?>
</div>
</div>
<?php
}
It works locally. Here is error from Heroku:
Here is
_newsletter.haml
. No mention of$this
.Here are the versions used on Heroku:
Here are the versions used locally (Yii 2.0.10)
Here is a compiled
_newsletter.haml
from my local machine. It's impossible to get the compiled file from Heroku because it uses ephemeral file systems. No way to access.PHP 7.0.14 locally, php (7.1.0) on Heroku
Not sure this is enough info.