Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Namespace or function?
Post: RE: Namespace or function?

Thank you for the clarifycation on why to use the function, makes sense now!
127 Views
3 Replies
07-21-2021, 06:02 AM
superior
    Thread: Namespace or function?
Post: Namespace or function?

Hi, What do you prefer calling other classes, using the namespace like new \App\Model\ModelName or with the function model('App\Model\ModelName') ? I haven't used this function before and am wonde...
127 Views
3 Replies
07-21-2021, 12:59 AM
superior
    Thread: having a chat widget appear (or not!)
Post: RE: having a chat widget appear (or not!)

For what version of CodeIgniter are you searching this solution?
156 Views
5 Replies
07-21-2021, 12:47 AM
superior
    Thread: Which browser do you guys recommend?
Post: RE: Which browser do you guys recommend?

neerajmine Wrote: (07-19-2021, 09:20 PM) -- Top 5 Reasons You Should Use Google Chrome Speed. Chrome is designed to be the fastest web browser. ... Simplicity. Chrome is a clean and simple browse...
64,228 Views
93 Replies
07-20-2021, 10:40 AM
superior
    Thread: redirect a user from a main controller
Post: RE: redirect a user from a main controller

I've got to agree with @"paliz" on this one, the Filter is the best choice to accomplish this. You can always exclude certain pages to bypass the authentication part.
272 Views
2 Replies
07-14-2021, 07:36 AM
superior
    Thread: Craptcha
Post: RE: Craptcha

Gary Wrote: (07-06-2021, 12:19 PM) -- includebeer Wrote: (07-04-2021, 06:38 AM) -- Gary Wrote: (07-03-2021, 02:37 PM) -- I find that when I'm writing/replying to a thread (perhaps because of some t...
410 Views
6 Replies
07-12-2021, 07:51 AM
superior
    Thread: Multi Query Problems in Codeigniter 3
Post: RE: Multi Query Problems in Codeigniter 3

@"includebeer" the order for this is correct, the column count depends on this, so calling all columns should match the insert. see: https://dev.mysql.com/doc/refman/8.0/en/insert-select.html
373 Views
10 Replies
07-11-2021, 07:07 AM
superior
    Thread: Multi Query Problems in Codeigniter 3
Post: RE: Multi Query Problems in Codeigniter 3

@"includebeer" It's possible to run a insert on a select, but the amount of columns must match for this. @"sultantaspusat" Are you trying to copy from the select to the insert or do you want somet...
373 Views
10 Replies
07-11-2021, 02:32 AM
superior
    Thread: Migration on group and namespace
Post: RE: Migration on group and namespace

@"InsiteFX" According to the documentation the -n is for the namespace, it seems like that isn't working correctly right now?
333 Views
6 Replies
07-09-2021, 01:33 AM
superior
    Thread: Different database and URL configurations
Post: RE: Different database and URL configurations

@"wuuyun" thank you for your reply! My configuration is managed from a master dashboard (statistics, usages and so on), so different files would be an extra handle to work with. But it could work ...
418 Views
3 Replies
07-09-2021, 01:27 AM
superior
    Thread: I have to run some condition in every controller
Post: RE: I have to run some condition in every controll...

Like @"MGatner" said, i would recommend using CodeIgniter 4 Filter (https://codeigniter.com/user_guide/incoming/filters.html) as well.
530 Views
7 Replies
07-09-2021, 01:24 AM
superior
    Thread: I need LOCK IN SHARE MODE for database model
Post: RE: I need LOCK IN SHARE MODE for database model

That depends on the input, for insert/update i prefer using prepared statements, and on output i use the esc(); function. You should never trust any input/output always be aware of abuse.
532 Views
8 Replies
07-09-2021, 01:19 AM
superior
    Thread: Migration on group and namespace
Post: RE: Migration on group and namespace

Hi paliz! thank you for your answer, did try your solution but it's looking for APPPATH and that's not my directory structure. My modules folder is outside of the app root, it doesn't return any er...
333 Views
6 Replies
07-07-2021, 05:21 AM
superior
    Thread: Migration on group and namespace
Post: Migration on group and namespace

Hi, I'm trying to run a migration to my maindb group from my modules folder, to do this i've been reading the migration (https://codeigniter4.github.io/userguide/dbmgmt/migration.html#command-line-to...
333 Views
6 Replies
07-07-2021, 02:10 AM
superior
    Thread: Different database and URL configurations
Post: RE: Different database and URL configurations

This question is closed, have found a solution myself by writing and reading JSON formatted info.
418 Views
3 Replies
07-06-2021, 11:59 PM
superior
    Thread: Different database and URL configurations
Post: Different database and URL configurations

Hi, I'm running a single application for different customers, in version 3 of CI i've made things work on different settings from the same application. Now i'm rebuilding everything in CI4 with the...
418 Views
3 Replies
07-03-2021, 04:51 AM
superior
    Thread: I need LOCK IN SHARE MODE for database model
Post: RE: I need LOCK IN SHARE MODE for database model

Why don't you use prepared statements for this? I think that's a better approach against validating requests.
532 Views
8 Replies
07-02-2021, 04:20 AM
superior
    Thread: Hide my username in this forum
Post: RE: Hide my username in this forum

This isn't related to CodeIgniter 4 support, you can try using the Contact Us (https://forum.codeigniter.com/contact.php) to get this changed.
354 Views
3 Replies
07-02-2021, 04:13 AM
superior
    Thread: Auth Library Benefits
Post: RE: Auth Library Benefits

For me Myth-Auth (https://github.com/lonnieezell/myth-auth), it has so many build in features you can use and change. In version 3 of CI (https://github.com/benedmunds/CodeIgniter-Ion-Auth/tree/3) i'v...
367 Views
2 Replies
07-02-2021, 12:33 AM
superior
    Thread: better approach to work with models
Post: RE: better approach to work with models

I would personally also put it in a Model, running queries inside a controller is a no-go for me..
401 Views
5 Replies
07-02-2021, 12:29 AM
superior

Theme © iAndrew 2016 - Forum software by © MyBB