Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: subdomain is lost on redirect()->to()
Post: RE: subdomain is lost on redirect()->to()
You can define baseURL property in App config (Config/App) like this:
PHP Code: public function __construct() { parent::__construct(); &n... |
|
ARAmiss |
CodeIgniter 4 Support
|
5 |
1,422 |
05-18-2020, 04:33 AM |
|
|
Thread: lang() third parameter: bug or feature?
Post: lang() third parameter: bug or feature?
Hello.
If i use this once:
PHP Code:lang('some_file.some_string', [], 'fr');
This will result all next:
PHP Code:lang('some_another_file.some_another_string'); will show last used... |
|
ARAmiss |
CodeIgniter 4 Support
|
1 |
729 |
01-04-2020, 07:07 AM |
|
|
Thread: Redirect to another controller
Post: Redirect to another controller
Hello.
There is my custom filter:
PHP Code:<?phpnamespace App\Filters;use CodeIgniter\HTTP\RequestInterface;use CodeIgniter\HTTP\ResponseInterface;use C... |
|
ARAmiss |
CodeIgniter 4 Support
|
0 |
572 |
12-21-2019, 03:32 AM |
|
|
Thread: Subdomains based localization
Post: RE: Subdomains based localization
The simplest way to define language locale is to set it in BaseController:
Code:$domain = $_SERVER['HTTP_HOST'];
$domain_paths = explode('.', $domain);
if (count($domain_paths) =... |
|
ARAmiss |
CodeIgniter 4 Support
|
1 |
805 |
12-12-2019, 02:12 AM |
|
|
Thread: Subdomains based localization
Post: Subdomains based localization
Hello.
I have main domain.com and its subdomains en.domain.com, fr.domain.com, de.domain.com and others.
I need to build localization versions of main domain on subdomains. How can i do it?
There are... |
|
ARAmiss |
CodeIgniter 4 Support
|
1 |
805 |
12-11-2019, 09:52 AM |