The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Login with Twitter (Kirby) Re: Login with Twitter (Kirby)


yeah, it’s the same idea. He’s just parsing the URL instead of using a query string.

You can see what he’s doing in `./kirby/lib/uri.php`.
You can access those params like
`$someParam = $site->uri()->param( $key );`

So, in this case, you’d do:

if( $site->uri()->param( ‘do’ ) == ‘logout’ ){
/* logout */

The query string approach (`?do=logout`) will still work, of course.