Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Model files in CI4
Post: RE: Model files in CI4

Filippo65 Wrote: (07-21-2021, 10:30 AM) -- I'll check if the Query Builder Class can work here too. If not, I can maybe make my own class for setting up the $sql string. -- Of course you can use th...
810 Views
14 Replies
07-23-2021, 04:52 AM
includebeer
    Thread: Model files in CI4
Post: RE: Model files in CI4

Filippo65 Wrote: (07-19-2021, 10:57 AM) -- 1) I'm already grouping many tabel's data into big multi-table objects, i.e: $GC->Tabella1, from AA_Tabella1, $GC->Tabella2, from AA_Tabella2... How can ...
810 Views
14 Replies
07-19-2021, 02:45 PM
includebeer
    Thread: MacOS M1 can't install CodeIgniter 4, missing PHP's intl extension
Post: RE: MacOS M1 can't install CodeIgniter 4, missing ...

carvellho Wrote: (07-18-2021, 11:26 AM) -- [Solved] -- Ok, what was the solution?
172 Views
2 Replies
07-19-2021, 02:05 PM
includebeer
    Thread: M1 Chip MacOS php intl extension error
Post: RE: M1 Chip MacOS php intl extension error

ihaveerror Wrote: (07-16-2021, 02:42 PM) -- I installed mamp but I still get an intl error. -- That's weird. On the PHP Info page I can see "intl" is enabled by default. Nothing to edit in the conf...
538 Views
12 Replies
07-17-2021, 06:54 AM
includebeer
    Thread: To All New User's READ THIS!
Post: RE: To All New User's READ THIS!

jreklund Wrote: (07-16-2021, 06:55 AM) -- InsiteFX Wrote: (07-16-2021, 05:18 AM) -- When posting a forum topic please do not use cut copy and paste it makes it un-readable and users will not read it...
260 Views
4 Replies
07-16-2021, 08:38 AM
includebeer
    Thread: Using variables as the controller name for routes
Post: RE: Using variables as the controller name for rou...

John_Betong Wrote: (07-16-2021, 04:22 AM) -- @eril46, https://codeigniter.com/user_guide/incoming/controllers.html Quote: -- Important Controller class names MUST start with an uppercase ...
722 Views
11 Replies
07-16-2021, 05:37 AM
includebeer
    Thread: To All New User's READ THIS!
Post: RE: To All New User's READ THIS!

Yes please! This is becoming ridiculous... You can also click on Preview Post to see if it is correctly formatted. Then click Post Reply if everything is readable. Another trick, you can switch ...
260 Views
4 Replies
07-16-2021, 05:29 AM
includebeer
    Thread: How often do you use the backup() method of the database drivers?
Post: RE: How often do you use the backup() method of th...

crazcodernp Wrote: (07-15-2021, 04:15 AM) -- jasonzig Wrote: (03-03-2019, 04:06 PM) -- I use PostgreSQL. -- HI i cannot use $model->insert() method in codeigniter 4. It returns bool(false) when va...
31,193 Views
38 Replies
07-15-2021, 07:55 AM
includebeer
    Thread: Model files in CI4
Post: RE: Model files in CI4

A model can do select in multiple tables, but you will need to write the query yourself, you won't benefit from most of the features the Model class has to offer. You can also not have any entities at...
810 Views
14 Replies
07-14-2021, 02:23 PM
includebeer
    Thread: M1 Chip MacOS php intl extension error
Post: RE: M1 Chip MacOS php intl extension error

donpwinston Wrote: (07-13-2021, 05:04 PM) -- includebeer Wrote: (07-13-2021, 12:16 PM) -- Aren’t DLL for Windows only? I’m pretty sure it’s a *.so file on macOS and Linux. -- Yes. Also Apple is re...
538 Views
12 Replies
07-14-2021, 06:06 AM
includebeer
    Thread: CORS policy Ci4
Post: RE: CORS policy Ci4

You can't just guess what the error is with just this message. Look at your log files (apache and in CI's log), and look what response you get when you make that request with Postman. And while you'...
361 Views
9 Replies
07-13-2021, 01:49 PM
includebeer
    Thread: M1 Chip MacOS php intl extension error
Post: RE: M1 Chip MacOS php intl extension error

Aren’t DLL for Windows only? I’m pretty sure it’s a *.so file on macOS and Linux.
538 Views
12 Replies
07-13-2021, 12:16 PM
includebeer
    Thread: Multi Query Problems in Codeigniter 3
Post: RE: Multi Query Problems in Codeigniter 3

Then do 3 separate select. What are you trying to do that won’t work with separate queries? Maybe show us some code. For someone looking for help, you are not very collaborative…
372 Views
10 Replies
07-13-2021, 12:10 PM
includebeer
    Thread: Why is Code Igniter not recommended??
Post: RE: Why is Code Igniter not recommended??

aarna6928 Wrote: (07-12-2021, 11:47 PM) -- CodeIgniter is not what most people would consider a secure framework. ... It's an old framework and doesn't make use of newer functionality that exists wit...
2,811 Views
9 Replies
07-13-2021, 11:59 AM
includebeer
    Thread: CORS policy Ci4
Post: RE: CORS policy Ci4

Check you log files, there must be a more detailed error message there, or test you api with postman. Now you only have a json parsing error, probably because the backend output an error message in ht...
361 Views
9 Replies
07-13-2021, 10:49 AM
includebeer
    Thread: Model files in CI4
Post: RE: Model files in CI4

Class name must match file name. If not, the autoloader won’t find them and won’t know which file to load.
810 Views
14 Replies
07-12-2021, 03:44 PM
includebeer
    Thread: Using view layouts echoes void return type.
Post: RE: Using view layouts echoes void return type.

This looks like an error in the user guide. You are right, extend() return void, there's nothing to echo. PHP Code: --     /**     * Specifies that the current view should extend an existing layo...
276 Views
4 Replies
07-12-2021, 07:26 AM
includebeer
    Thread: CORS policy Ci4
Post: RE: CORS policy Ci4

I think the problem comes from Google and not from your app. It says to register your domain for your client ID and to register this origin for this client ID... My guess is when your test from local...
361 Views
9 Replies
07-12-2021, 07:19 AM
includebeer
    Thread: select only false
Post: RE: select only false

InsiteFX Wrote: (07-12-2021, 01:38 AM) -- I also recommend new users to read @includebeer tutorials well worth the read. -- Thanks @"InsiteFX"  :cool:
446 Views
8 Replies
07-12-2021, 06:27 AM
includebeer
    Thread: select only false
Post: RE: select only false

I have examples on how to use models and entities in part 2 (https://includebeer.com/en/blog/how-to-build-a-basic-web-application-with-codeigniter-4-part-2) and part 5 (https://includebeer.com/en/blog...
446 Views
8 Replies
07-11-2021, 07:54 AM
includebeer

Theme © iAndrew 2016 - Forum software by © MyBB