Reputation: 1
used below code for base url Configure::write('SITEURL',"http://".$_SERVER['HTTP_HOST'] . "/mysite url/");
but this is not the correct way to use dynamic base url in cakephp 3, so pls suggest any good answer
Upvotes: 0
Views: 221
Reputation: 2252
use Cake\Routing\Router; $baseurl = Router::url('/', true);
Upvotes: 1