Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: localization issue
Post: RE: localization issue

includebeer Wrote: (05-11-2021, 04:31 AM) -- You don’t have to use a database. It’s useful if you have long text like blog articles in multiple languages. But for single words or sentences you can st...
1,623 Views
14 Replies
05-11-2021, 01:01 PM
eleumas
    Thread: localization issue
Post: RE: localization issue

InsiteFX Wrote: (05-04-2021, 02:13 AM) -- Read this may help you to understand what were talking about. Multilanguage Database Design in MySQL (https://www.apphp.com/tutorials/index.php?page=multila...
1,623 Views
14 Replies
05-11-2021, 12:06 AM
eleumas
    Thread: localization issue
Post: RE: localization issue

I have a simple site without blog or anything. I would like only translate the text and i would like have an example how to use localization in Codeigniter 4 because i have some issue how i have spe...
1,623 Views
14 Replies
05-04-2021, 12:45 AM
eleumas
    Thread: localization issue
Post: RE: localization issue

Sorry, but Codeigniter have a specific folder called language for translate multilangual sites. Why i should use a mySQL table for to do this? :)
1,623 Views
14 Replies
04-30-2021, 07:01 AM
eleumas
    Thread: localization issue
Post: RE: localization issue

includebeer Wrote: (04-29-2021, 05:16 PM) -- What do you mean by IT controller and EN controller? When using localization you don't need separate controller for each languages. The text is pulled fro...
1,623 Views
14 Replies
04-30-2021, 02:45 AM
eleumas
    Thread: localization issue
Post: localization issue

i believe to have an issue like this: https://forum.codeigniter.com/thread-75292.html I have a site in 3 language: IT EN ES I use {locale} and all work good but only if the pages are identical. ...
1,623 Views
14 Replies
04-29-2021, 04:34 AM
eleumas
    Thread: is_unique issue on update
Post: RE: is_unique issue on update

This is the solution: PHP Code: -- $id = $this->request->getPost('id'); $rules = ([         'email'    => [           'label'  => 'Email',           'rules'  => 'required|valid_email|is_uni...
806 Views
5 Replies
03-26-2021, 07:15 AM
eleumas
    Thread: is_unique issue on update
Post: is_unique issue on update

I have an issue when update an user with is_unique rule.  I would like ignore email address if email is the same, otherwise the mail have to be check for haven't duplicates.  How can i do?  I hav...
806 Views
5 Replies
03-25-2021, 11:12 AM
eleumas
    Thread: Add HTML in custom error message
Post: Add HTML in custom error message

Hi, i need to add a link in is_unique error custom message. How can i do? PHP Code: -- 'email'    => [         'label'  => lang('Main.formLabelEmail'),         'rules'  => 'required|valid_ema...
350 Views
1 Replies
03-18-2021, 05:06 AM
eleumas
    Thread: passing variable in model
Post: passing variable in model

PHP Code: -- function get_articles() {     $articles = $this->db->query("SELECT * FROM tbl_articles WHERE status = '1' AND lang = '$this->locale' ORDER BY id DESC");    foreach($articles->getResult(...
327 Views
1 Replies
02-25-2021, 02:54 AM
eleumas
    Thread: Passing URI Segments to methods
Post: RE: Passing URI Segments to methods

InsiteFX Wrote: (02-23-2021, 12:12 PM) -- Here is the tutorial link from @Inlcudebeer that will show you just how to do what you want. How to build a basic web application with CodeIgniter 4 (http...
510 Views
3 Replies
02-24-2021, 04:26 AM
eleumas
    Thread: conflict with method name
Post: RE: conflict with method name

iRedds Wrote: (02-23-2021, 09:39 PM) -- "You either take off the cross or put on your panties."(с) From a framework perspective, you are defining the same URL mask. Choose the right way. PHP Co...
484 Views
3 Replies
02-24-2021, 03:35 AM
eleumas
    Thread: conflict with method name
Post: conflict with method name

Hi! i use localization in CI 4.1.1. I have a controller for each language and inside any controller there is a method called blog. Method blog in italian controller: PHP Code: -- public function bl...
484 Views
3 Replies
02-23-2021, 02:20 PM
eleumas
    Thread: Passing URI Segments to methods
Post: Passing URI Segments to methods

Hi! I have a view with this link:  Code: --
510 Views
3 Replies
02-23-2021, 11:12 AM
eleumas
    Thread: issue for rewrite link in multilang site
Post: issue for rewrite link in multilang site

Hi! I have this controller: PHP Code: -- public function article($slug)   {     $data['article'] = $this->articlesModel->where('slug', $slug)->first();     $dataArticle = $data['article'];     $data[...
223 Views
0 Replies
02-22-2021, 10:56 AM
eleumas
    Thread: Remove segment from url in multi language site
Post: RE: Remove segment from url in multi language site

demyr Wrote: (02-22-2021, 06:05 AM) -- It looks like you are trying to add and view the result within the same method (It/Main::article). Have you tried seperating them? Plus, can you see any respons...
835 Views
6 Replies
02-22-2021, 08:04 AM
eleumas
    Thread: Remove segment from url in multi language site
Post: RE: Remove segment from url in multi language site

demyr Wrote: (02-20-2021, 04:19 AM) -- using only :any() should meet your needs. Or try (:segment) -- Thanks for reply and help me @demyr! I tried to use only :any or :segment: PHP Code: -- $r...
835 Views
6 Replies
02-22-2021, 04:24 AM
eleumas
    Thread: Remove segment from url in multi language site
Post: Remove segment from url in multi language site

Hi! i have this code... View: PHP Code: --
835 Views
6 Replies
02-19-2021, 12:00 PM
eleumas
    Thread: Issue for loading language in controller
Post: RE: Issue for loading language in controller

Thanks for reply. Can you explain better please?
577 Views
3 Replies
01-14-2021, 03:30 AM
eleumas
    Thread: Issue for loading language in controller
Post: Issue for loading language in controller

Hi, i would like compile the meta hreflang tag dynamically and navigate the pages like in Joomla. My site is in italian and english. Default language should be italian. My code: Config/App.php PHP C...
577 Views
3 Replies
01-13-2021, 09:02 AM
eleumas

Theme © iAndrew 2016 - Forum software by © MyBB