Hi Roger, rather than starting from scratch, I highly recommend <a href="https://www.drupal.org/project/console">https://www.drupal.org/project/console</a>. It is based on the same concepts that are available with Rails and other programming languages that have a code generator. It will help you get an idea what is "correct".<div><br></div><div>To quote from the project documentation:</div><div><span style="color:rgb(51,51,51);font-family:'Open Sans','Clear Sans','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:16px;line-height:20.4799995422363px">"The purpose of this project is to leverage the Symfony Console Component to provide a CLI tool to automate the creation of drupal 8 modules and other recurring tasks."</span><br><br><div class="gmail_quote">On Sat Jan 17 2015 at 22:03:59 Roger <<a href="mailto:arelem@bigpond.com">arelem@bigpond.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Learning how to create modules and forms I followed the tutorial exactly<br>
but get Page not found error.<br>
Also it seems the YAML syntax has changed within Drupal 8,<br>
Where<br>
|demo.demo:|<br>
|||path: '/demo'|<br>
|||defaults:|<br>
|||_content: '\Drupal\demo\Controller\<u></u>DemoController::demo'|<br>
|||_title: 'Demo'|<br>
|||requirements:|<br>
|||_permission: 'access content'<br>
<br>
is now-<br>
|<br>
|demo.demo:|<br>
|||path: '/demo'|<br>
|||defaults:|<br>
|||- content: '\Drupal\demo\Controller\<u></u>DemoController::demo'|<br>
|||- title: 'Demo'<br>
and<br>
|<br>
|||requirements:|<br>
|||- permission: 'access content'<br>
or any other permission causes an error when the caches are cleared.<br>
<br>
Can someone please advise what's going on here please?<br>
Thanks<br>
Roger<br>
|<br>
<br>
<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</blockquote></div></div>