when i created a custom module in magento 2.2.3 on locahost i go the error:
Parse error: syntax error, unexpected ''Magenticians_Mymodule'' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ')' in C:\xampp\htdocs\magento3\app\code\Magenticians\Mymodule\registration.php on line 5
please help me to resolve this error
Solved! Go to Solution.
Keep below code in your registration.php file,
<?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Magenticians_Mymodule', __DIR__ );
Hello @shweta_singh1
Seems like ) missing of.
Please open file and check again.
Hope it will help you.
Keep below code in your registration.php file,
<?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Magenticians_Mymodule', __DIR__ );