Re: Page not found errors Drupal 8

Naveen Valecha <[email protected]> Mon, 19 Jan 2015 20:26:27 +0530
Newsgroups gmane.comp.php.drupal.support
Message-ID <CAAoAbQX-vDhTTkSagZ0kbi08bYhDJpS97TRNopKBwDH2d87d4w@mail.gmail.com>
--===============8061531885541818280==
Content-Type: multipart/alternative; boundary=001a11c3e402f9ea25050d0288df

--001a11c3e402f9ea25050d0288df
Content-Type: text/plain; charset=UTF-8

Hi Roger,
Console is awesome project if you need to do the development fast and
create the forms using the commands.
if you need to learn about the drupal 8 structure and the apis then this
the best place for you to start with.
https://api.drupal.org/api/drupal/8

P.S. : Console Rocks!

On Mon, Jan 19, 2015 at 7:05 PM, Lucas Hedding <[email protected]>
wrote:

> 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/ ]
>>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>



-- 
Naveen valecha
Web : http://valechatech.com
Twitter: http://twitter.com/NaveenValechaNV

--001a11c3e402f9ea25050d0288df
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi Roger,<div>Console is awesome project if you need to do=
 the development fast and create the forms using the commands.</div><div>if=
 you need to learn about the drupal 8 structure and the apis then this the =
best place for you to start with.</div><div><a href=3D"https://api.drupal.o=
rg/api/drupal/8">https://api.drupal.org/api/drupal/8</a><br></div><div><br>=
</div><div>P.S. : Console Rocks!</div></div><div class=3D"gmail_extra"><br>=
<div class=3D"gmail_quote">On Mon, Jan 19, 2015 at 7:05 PM, Lucas Hedding <=
span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_b=
lank">[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"=
gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-=
left:1ex">Hi Roger, rather than starting from scratch, I highly recommend=
=C2=A0<a href=3D"https://www.drupal.org/project/console" target=3D"_blank">=
https://www.drupal.org/project/console</a>. It is based on the same concept=
s that are available with Rails and other programming languages that have a=
 code generator. It will help you get an idea what is &quot;correct&quot;.<=
div><br></div><div>To quote from the project documentation:</div><div><span=
 style=3D"color:rgb(51,51,51);font-family:&#39;Open Sans&#39;,&#39;Clear Sa=
ns&#39;,&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:16px;=
line-height:20.4799995422363px">&quot;The purpose of this project is to lev=
erage the Symfony Console Component to provide a CLI tool to automate the c=
reation of drupal 8 modules and other recurring tasks.&quot;</span><div><di=
v class=3D"h5"><br><br><div class=3D"gmail_quote">On Sat Jan 17 2015 at 22:=
03:59 Roger &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">are=
[email protected]</a>&gt; wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"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: &#39;/demo&#39;|<br>
|||defaults:|<br>
|||_content: &#39;\Drupal\demo\Controller\<u></u>DemoController::demo&#39;|=
<br>
|||_title: &#39;Demo&#39;|<br>
|||requirements:|<br>
|||_permission: &#39;access content&#39;<br>
<br>
is now-<br>
|<br>
|demo.demo:|<br>
|||path: &#39;/demo&#39;|<br>
|||defaults:|<br>
|||- content: &#39;\Drupal\demo\Controller\<u></u>DemoController::demo&#39;=
|<br>
|||- title: &#39;Demo&#39;<br>
and<br>
|<br>
|||requirements:|<br>
|||- permission: &#39;access content&#39;<br>
or any other permission causes an error when the caches are cleared.<br>
<br>
Can someone please advise what&#39;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></div></div>
<br>--<br>
[ Drupal support list | <a href=3D"http://lists.drupal.org/" target=3D"_bla=
nk">http://lists.drupal.org/</a> ]<br></blockquote></div><br><br clear=3D"a=
ll"><div><br></div>-- <br><div class=3D"gmail_signature"><div dir=3D"ltr"><=
div style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13p=
x;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:n=
ormal;line-height:normal;text-align:start;text-indent:0px;text-transform:no=
ne;white-space:normal;word-spacing:0px">Naveen valecha<br></div><div style=
=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-st=
yle:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;lin=
e-height:normal;text-align:start;text-indent:0px;text-transform:none;white-=
space:normal;word-spacing:0px">Web :=C2=A0<a href=3D"http://valechatech.com=
/" target=3D"_blank">http://valechatech.com</a><br></div><div style=3D"colo=
r:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;font-style:norm=
al;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height=
:normal;text-align:start;text-indent:0px;text-transform:none;white-space:no=
rmal;word-spacing:0px">Twitter:=C2=A0<a href=3D"http://twitter.com/NaveenVa=
lechaNV" target=3D"_blank">http://twitter.com/NaveenValechaNV</a></div></di=
v></div>
</div>

--001a11c3e402f9ea25050d0288df--

--===============8061531885541818280==
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/ ]
--===============8061531885541818280==--