Category: Routing

Cakephp 3 create sub-domain routing like username.domain.com

I want to create sub-domain routing for my Cakephp 3 application. The user profile url is:http://domain.com/profile/{username}I would like to have sub-domain {username} pointing to ProfileController,

#subdomain
1 Answers

Category: Routing

Get base_url in controller

I need to fix one of my client's cakephp application (version 2.4). And in most web applications we need base_url to get current path for link building. Now I want to build a link to image so:$base_ur

SOLVED
2 Answers
Pidara
Pidara

4

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

Welcome to Aero Coding!

Aero Coding is a CakePHP-focused Q&A community for professional and enthusiast cake bakers. It's built and run by you as part of the community.


Join Now Tour

Download Cakephp

Start baking your own CakePHP application!


Cakephp All Versions