Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Let's make auto routes disable
Post: RE: Let's make auto routes disable

kenjis Wrote: (03-25-2022, 09:10 PM) -- ChicagoPhil Wrote: (03-25-2022, 08:08 PM) -- My plan was to get the user status in the base controller constructor and then execute a permissions check in eac...
16,177 Views
24 Replies
03-26-2022, 12:16 AM
ChicagoPhil
    Thread: Let's make auto routes disable
Post: RE: Let's make auto routes disable

kenjis Wrote: (03-25-2022, 04:44 PM) -- @"ChicagoPhil" Okay, Good question. See this tutorial: https://www.binaryboxtuts.com/php-tutorials/codeigniter-4-json-web-tokenjwt-authentication/ You w...
16,177 Views
24 Replies
03-25-2022, 08:08 PM
ChicagoPhil
    Thread: CodeIgniter 4 Has Been Awesome
Post: RE: CodeIgniter 4 Has Been Awesome

I just started making the switch to CI4 as a CI3 user hold out. I've been looking it over for about a week now and it's pretty awesome.
2,662 Views
4 Replies
03-25-2022, 04:35 PM
ChicagoPhil
    Thread: Let's make auto routes disable
Post: RE: Let's make auto routes disable

kenjis Wrote: (03-25-2022, 04:15 AM) -- ChicagoPhil Wrote: (03-24-2022, 11:13 PM) -- Why? I really like using it. Is it because of the JavaScript? -- No. JavaScript does not matter. Auto rout...
16,177 Views
24 Replies
03-25-2022, 11:08 AM
ChicagoPhil
    Thread: Let's make auto routes disable
Post: RE: Let's make auto routes disable

kenjis Wrote: (02-21-2022, 07:45 PM) -- Auto routes are really dangerous. It could make vulnerabilities in your app very easily. I strongly recommend you disable auto routes. For example, see thi...
16,177 Views
24 Replies
03-24-2022, 11:13 PM
ChicagoPhil
    Thread: An uncaught Exception was encountered
Post: RE: An uncaught Exception was encountered

kenjis Wrote: (03-21-2022, 07:03 PM) -- try PHP Code: -- 'hostname' => '/Applications/MAMP/tmp/mysql/mysql.sock', -- -- That did the trick! I tried something very close to that and it didn't wor...
4,337 Views
9 Replies
03-22-2022, 01:16 PM
ChicagoPhil
    Thread: An uncaught Exception was encountered
Post: RE: An uncaught Exception was encountered

I have confirmed that the missing socket setting is the problem. I think the Codeigniter team needs to consider adding one more setting to the database configuration file. It would be nice to have a s...
4,337 Views
9 Replies
03-21-2022, 05:57 PM
ChicagoPhil
    Thread: An uncaught Exception was encountered
Post: RE: An uncaught Exception was encountered

InsiteFX Wrote: (03-21-2022, 12:47 AM) -- Your solution there is telling me that it is not finding the MySQL files. Which maybe a configuration setup problem. But wait and see if one of the developm...
4,337 Views
9 Replies
03-21-2022, 08:01 AM
ChicagoPhil
    Thread: An uncaught Exception was encountered
Post: RE: An uncaught Exception was encountered

I don't want to mark this thread as solved just yet. I'm looking for feedback on why what I did worked and if there is a way to do it without going into system files.
4,337 Views
9 Replies
03-20-2022, 06:17 PM
ChicagoPhil
    Thread: An uncaught Exception was encountered
Post: RE: An uncaught Exception was encountered

So I solved the problem but its a terrible solution. I made a change in the frameworks system code and it works like a charm. File: /vendor/codeigniter4/framework/system/Database/MySQLi/Connection....
4,337 Views
9 Replies
03-20-2022, 12:45 PM
ChicagoPhil
    Thread: An uncaught Exception was encountered
Post: RE: An uncaught Exception was encountered

kenjis Wrote: (03-20-2022, 04:31 AM) -- Try PHP Code: -- 'hostname' => '127.0.0.1', -- -- Same result. Same error. EDIT: not exactly the same error Code: -- An uncaught Exception was enco...
4,337 Views
9 Replies
03-20-2022, 09:11 AM
ChicagoPhil
    Thread: An uncaught Exception was encountered
Post: An uncaught Exception was encountered

I've searched this topic and yes, I'm using MAMP on mac. Migrations run from URl but when using spark via CLI I get this error for any database command. Seeding or Migrations. That's all I got for to...
4,337 Views
9 Replies
03-20-2022, 12:22 AM
ChicagoPhil
    Thread: Codeigniter 3 fetch_method() equivalent in CI4
Post: RE: Codeigniter 3 fetch_method() equivalent in CI4

I found the method in the Router Class. It's called methodName() now. Of course I got the idea where to find it right after I posted the question. [hr] kenjis Wrote: (03-19-2022, 07:24 PM) -- PHP Co...
1,447 Views
2 Replies
03-19-2022, 07:24 PM
ChicagoPhil
    Thread: Codeigniter 3 fetch_method() equivalent in CI4
Post: Codeigniter 3 fetch_method() equivalent in CI4

Is there an equivalent method to get the method that was called in the current controller class that CI3 had that was called fetch_method()? The docs are a bit overwhelming right now because I'm not u...
1,447 Views
2 Replies
03-19-2022, 07:04 PM
ChicagoPhil
    Thread: Update about 1 million rows in MySQL table every 1 hour
Post: RE: Update about 1 million rows in MySQL table eve...

olegrain Wrote: (07-21-2020, 07:27 AM) -- jreklund Wrote: (07-21-2020, 06:59 AM) -- By the looks of things you are executing (at least want to) one million + 1 query every hour. That's a lot. Depend...
4,640 Views
6 Replies
07-22-2020, 01:01 AM
ChicagoPhil
    Thread: One suggestion and one issue
Post: RE: One suggestion and one issue

BlackBanana Wrote: (07-17-2020, 11:06 PM) -- 1. Why don't the admin create a discord channel or and IRC channel for faster connection between us , i know there is slack , but i couldn't join the grou...
1,811 Views
2 Replies
07-18-2020, 09:56 PM
ChicagoPhil
    Thread: Controllers does not show when i use them in URL
Post: RE: Controllers does not show when i use them in U...

BlackBanana Wrote: (07-16-2020, 03:57 PM) -- ChicagoPhil Wrote: (07-16-2020, 12:02 PM) -- Try https://localhost/www/igniterTest/public/index.php/helloworld -- The problem was in $routes->setA...
3,561 Views
7 Replies
07-16-2020, 10:20 PM
ChicagoPhil
    Thread: Controllers does not show when i use them in URL
Post: RE: Controllers does not show when i use them in U...

Try https://localhost/www/igniterTest/public/index.php/helloworld
3,561 Views
7 Replies
07-16-2020, 12:02 PM
ChicagoPhil
    Thread: Codeigniter 3.1.10 Trim Rule
Post: RE: Codeigniter 3.1.10 Trim Rule

daveĀ friend Wrote: (09-06-2019, 03:56 AM) -- The error is logged in validation->run() and is quite literal. It cannot find any associated rules in any of the places it expects to find them. How ar...
3,980 Views
4 Replies
09-06-2019, 08:31 PM
ChicagoPhil
    Thread: Codeigniter 3.1.10 Trim Rule
Post: RE: Codeigniter 3.1.10 Trim Rule

Ok, I just wanted to make sure I wasn't writing in trim all over the place and have it doing nothing. I'll have to dig into the log files more to see what's throwing that error.
3,980 Views
4 Replies
09-06-2019, 02:54 AM
ChicagoPhil

Theme © iAndrew 2016 - Forum software by © MyBB