Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: {locale} placeholder in filters
Post: {locale} placeholder in filters

The main goal is to be able define just one route instead multiple rows for every locale. This PHP Code: --     public $globals = [         'before' => [             'secured' => [            ...
614 Views
1 Replies
06-11-2022, 05:12 AM
webdeveloper
    Thread: {locale} placeholder in routes
Post: RE: {locale} placeholder in routes

includebeer Wrote: (06-10-2022, 06:34 PM) -- kenjis Wrote: (06-10-2022, 06:05 PM) -- See this PR: https://github.com/codeigniter4/CodeIgniter4/pull/6073 -- I like the idea of a $useSupportedLocale...
1,358 Views
8 Replies
06-11-2022, 04:29 AM
webdeveloper
    Thread: {locale} placeholder in routes
Post: RE: {locale} placeholder in routes

Thank you for comment! Always happy to see any other solutions. Yep, it can be done like this too. I have never think about to create filter for this. Router should handle this "right". One impo...
1,358 Views
8 Replies
06-09-2022, 01:56 AM
webdeveloper
    Thread: How to loop pagination links using for loop instead of using foreach loop
Post: RE: How to loop pagination links using for loop in...

I really don't know why you need this, but did you try it like below? If it's associative array, it should work. PHP Code: --        > --
689 Views
8 Replies
06-08-2022, 08:25 AM
webdeveloper
    Thread: {locale} placeholder in routes
Post: {locale} placeholder in routes

Hi, I just want to share with you one of my changes I made to base router. Hopefully, it will save some time, to somebody who will search for the same solution like I did. I was wondering why my pr...
1,358 Views
8 Replies
06-08-2022, 06:23 AM
webdeveloper
    Thread: insert without data
Post: RE: insert without data

Yes i know and it really makes things easier many times, by defining $table variable and other stuff inside my Model. I like that a lot! I would really appreciate this change. Fighted with this man...
981 Views
5 Replies
06-08-2022, 05:44 AM
webdeveloper
    Thread: insert without data
Post: RE: insert without data

Yes, sure, I can. And I did, ofcourse, there was no other way. But for me, that's ugly solution now. 1. I need to defined table again (in API controller), which is already defined in connected mode...
981 Views
5 Replies
06-07-2022, 03:12 AM
webdeveloper
    Thread: insert without data
Post: insert without data

Hi guys, i'm facing one "problem" with inserting new data into table. PHP Code: -- $this->model->insert([]) -- for me expecting query would be: Code: -- INSERT INTO gallery VALUES(); -- which i...
981 Views
5 Replies
06-05-2022, 04:26 AM
webdeveloper
    Thread: codeigniter separated apps on different paths nginx config
Post: codeigniter separated apps on different paths ngin...

Hi, guys! I just want to install 3 separated CI applications on my nginx server. I'm new in nginx so I m not sure how to setup multiple codeigniter applications on one subdomain (or domain) with di...
1,483 Views
1 Replies
02-02-2021, 07:32 AM
webdeveloper
    Thread: passing variable into anonymous function - form validation
Post: RE: passing variable into anonymous function - for...

ok in that case it isnt readable very well and not usefull so much (strange way to do that) .. i will use rather callback function .. there i can pass any variable and inside callback function $this r...
2,524 Views
2 Replies
01-06-2016, 11:06 AM
webdeveloper
    Thread: Email Library Issues
Post: RE: Email Library Issues

check if u didnt replace CI email class with your value ... i saw in your code initialization function with $this->email = NULL ... if its so then error msg make sence ... in that case u calling from(...
14,828 Views
13 Replies
01-06-2016, 09:33 AM
webdeveloper
    Thread: Email Library Issues
Post: RE: Email Library Issues

maybe your function initialize() replace $this->email (CI library object which u loaded) with NULL value ... then u already dont have email library object .. and u using from funcion on variable $this...
14,828 Views
13 Replies
01-06-2016, 08:46 AM
webdeveloper
    Thread: passing variable into anonymous function - form validation
Post: passing variable into anonymous function - form va...

Hello, i would ask simple question. is there any possibility to pass own parameter into anonymous function in set_rules for form_validation like its shown in first example below or its just possibl...
2,524 Views
2 Replies
01-06-2016, 08:40 AM
webdeveloper

Theme © iAndrew 2016 - Forum software by © MyBB