Category: Routing

In Cakephp 3, how to detect user from another site?

I want to have a method before AppController (beforeFilter) to detect if a user has come to my site via another site. If so, from another site, the method will redirect them to a welcome page. &n

SOLVED #detect #url #domain
2 Answers

Category: Routing

Can't get query strings from URL

This my code:<?php public function getUser() {   if ($this->Auth->user()) {     $userId = (empty($this->request->query['id']) ? null : $this->re

SOLVED #query #string #url
1 Answers