for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use yii\db\Migration;
class m170127_103353_add_change_password_template extends Migration
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
public function up()
$this->insert('mail_templates', [
'key' => 'CHANGE_PASSWORD',
'body' => '<p>Hello, {{name}}!</p>'
. '<p>To change your password, click here please {{link}}.</p>',
'updated_at' => date('Y-m-d H:i:s'),
'name' => 'Password changing',
'subject' => 'Password changing'
]);
}
public function down()
$this->delete('mail_templates', ['key' => 'CHANGE_PASSWORD']);
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.