Re: Page not found errors Drupal 8
Lucas Hedding <[email protected]> Mon, 19 Jan 2015 13:35:15 +0000
| Newsgroups | gmane.comp.php.drupal.support |
|---|---|
| Message-ID | <CAAPYOemYMAmSxoJ5k3aOd_VJKiDZRfTsBYLrk1fr05aNuD59Xw@mail.gmail.com> |
--===============4460710451575557499== Content-Type: multipart/alternative; boundary=047d7b67287487aa01050d0164b2 --047d7b67287487aa01050d0164b2 Content-Type: text/plain; charset=UTF-8 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 <[email protected]> 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/ ] > --047d7b67287487aa01050d0164b2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Roger, rather than starting from scratch, I highly recommend=C2=A0<a hre= f=3D"https://www.drupal.org/project/console">https://www.drupal.org/project= /console</a>. It is based on the same concepts that are available with Rail= s 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 fr= om the project documentation:</div><div><span style=3D"color:rgb(51,51,51);= font-family:'Open Sans','Clear Sans','Helvetica Neue= 9;,Helvetica,Arial,sans-serif;font-size:16px;line-height:20.4799995422363px= ">"The purpose of this project is to leverage the Symfony Console Comp= onent to provide a CLI tool to automate the creation of drupal 8 modules an= d other recurring tasks."</span><br><br><div class=3D"gmail_quote">On = Sat Jan 17 2015 at 22:03:59 Roger <<a href=3D"mailto:[email protected]"= >[email protected]</a>> wrote:<br><blockquote class=3D"gmail_quote" sty= le=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Learni= ng 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=3D"http://lists.drupal.org/" target=3D"_bla= nk">http://lists.drupal.org/</a> ]<br> </blockquote></div></div> --047d7b67287487aa01050d0164b2-- --===============4460710451575557499== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- [ Drupal support list | http://lists.drupal.org/ ] --===============4460710451575557499==--