Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: using model disalowed in incomingrequest service?
Post: RE: using model disalowed in incomingrequest servi...

Evidently there is problem. In version 4.4.1 worked fine until 4.4.3. How dynamically load languages from database, so i can use them in filters? DomainModel did this for me on this place so i worke...
243 Views
2 Replies
11-09-2023, 12:58 AM
webdeveloper
    Thread: using model disalowed in incomingrequest service?
Post: using model disalowed in incomingrequest service?

Hello, i literally cannot find out what's wrong with my custom incomingrequest service. Are the models disallowed here? After i remove line with $domainModel = new DomainModel(); everything works f...
243 Views
2 Replies
11-08-2023, 09:48 AM
webdeveloper
    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' => [            ...
1,709 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...
5,492 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...
5,492 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: --        > --
3,124 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...
5,492 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...
3,643 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...
3,643 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...
3,643 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...
2,325 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...
3,088 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(...
17,591 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...
17,591 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...
3,088 Views
2 Replies
01-06-2016, 08:40 AM
webdeveloper

Theme © iAndrew 2016 - Forum software by © MyBB