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".To quote from the project documentation:"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."On Sat Jan 17 2015 at 22:03:59 Roger <arelem@bigpond.com> wrote: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/ ]
--
[ Drupal support list | http://lists.drupal.org/ ]