Hi Roger, rather than starting from scratch, I highly recommend https://www.drupal.org/project/console. 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".
Learning how to create modules and forms I followed the tutorial exactly
but get Page not found error.
Also it seems the YAML syntax has changed within Drupal 8,
Where
|demo.demo:|
|||path: '/demo'|
|||defaults:|
|||_content: '\Drupal\demo\Controller\DemoController::demo'|
|||_title: 'Demo'|
|||requirements:|
|||_permission: 'access content'
is now-
|
|demo.demo:|
|||path: '/demo'|
|||defaults:|
|||- content: '\Drupal\demo\Controller\DemoController::demo'|
|||- title: 'Demo'
and
|
|||requirements:|
|||- permission: 'access content'
or any other permission causes an error when the caches are cleared.
Can someone please advise what's going on here please?
Thanks
Roger
|
--
[ Drupal support list | http://lists.drupal.org/ ]