Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: What is my current working dir?
Post: RE: What is my current working dir?

@richb201 - congrats on the new addition to the family! As far as your question goes, I'm not sure about the Bitnami stuff - I based mine off the official PHP docker image, but I'm not sure you need t...
7,079 Views
11 Replies
05-07-2020, 04:15 AM
maxxd
    Thread: What is my current working dir?
Post: RE: What is my current working dir?

I'm using a homespun Docker image and not having issues with directory binding. What's the server root in your configuration (I'm assuming Apache because that's what I know - don't know what it's call...
7,079 Views
11 Replies
05-04-2020, 02:55 PM
maxxd
    Thread: Onchange function using ajax in View
Post: RE: Onchange function using ajax in View

It looks like you're on CI 3.x? If so, try changing this line: Code: -- return $result->totalbalance; -- to Code: -- return $this->db->get(); --
9,245 Views
8 Replies
05-01-2020, 06:34 AM
maxxd
    Thread: Onchange function using ajax in View
Post: RE: Onchange function using ajax in View

jordi_1h Wrote: (04-26-2020, 07:05 PM) -- Thanks for your suggestion. It is displaying {totalbalance: null} totalbalance: null -- That would explain why it's not showing anything. Perhaps check th...
9,245 Views
8 Replies
04-26-2020, 09:13 PM
maxxd
    Thread: Onchange function using ajax in View
Post: RE: Onchange function using ajax in View

What response are getting from the server? Check the network tab of your developers tools - any server side error should show up there.
9,245 Views
8 Replies
04-25-2020, 09:45 AM
maxxd
    Thread: Blank page on the web server
Post: RE: Blank page on the web server

Check the `Config/App.php` file - $sessionSavePath is right around line 187 - make sure the defined path actually exists on your server.
26,062 Views
24 Replies
04-17-2020, 03:31 PM
maxxd
    Thread: Unit testing problem
Post: Unit testing problem

Hi all. I'm working on some very simple unit testing with CI4 and am running into an issue. I'm trying to use the call() method as described in the 'Requesting a Page' section here: https://codeign...
871 Views
0 Replies
04-17-2020, 12:55 PM
maxxd
    Thread: Builder query question From table AS table01, table AS table02
Post: RE: Builder query question From table AS table01, ...

Just code the where clause directly, like so: Code: -- $builder->where('node.LFT BETWEEN parent.LFT AND parent.RGT'); -- There's no variable interpolation or substitution so it should be fin...
2,372 Views
3 Replies
04-12-2020, 01:21 PM
maxxd
    Thread: Several questions concerning CI4 controller
Post: RE: Several questions concerning CI4 controller

I believe this is the file you're looking for: https://github.com/codeigniter4/CodeIgniter4/blob/develop/system/Email/Email.php
9,380 Views
10 Replies
04-02-2020, 03:31 PM
maxxd
    Thread: Can not declare session check in contractor in ci4
Post: RE: Can not declare session check in contractor in...

Sounds like you're looking for a before filter - https://codeigniter4.github.io/userguide/incoming/filters.html
1,971 Views
2 Replies
03-31-2020, 04:25 AM
maxxd
    Thread: Time::now() in every controller
Post: RE: Time::now() in every controller

Put it in BaseController, then assign an instance to a class property in the constructor, like so: PHP Code: --
2,331 Views
3 Replies
03-29-2020, 07:28 AM
maxxd
    Thread: Error connecting to SQLServer
Post: RE: Error connecting to SQLServer

I don't believe CI4 supports SQLServer yet - so far there's only MySQLi, Postgre, and SQLite3 from what I see in the code.
1,730 Views
1 Replies
03-25-2020, 04:32 AM
maxxd
    Thread: Not Being Very Honest
Post: RE: Not Being Very Honest

Seriously - https://github.com/codeigniter4/CodeIgniter4/graphs/contributors. There are a ton of people contributing to the project. Also, I've not been using CI long but MGatner certainly seems a sta...
5,617 Views
4 Replies
03-08-2020, 12:21 PM
maxxd
    Thread: Logic OR using ==
Post: RE: Logic OR using ==

You want PHP Code: -- if($this->session->userdata('level') == "superadmin" || $this->session->userdata('level') == "admin") --
1,846 Views
2 Replies
03-04-2020, 05:19 AM
maxxd
    Thread: Error after update
Post: RE: Error after update

Version 3.x to 4 is less an upgrade than a migration - you'll have to rewrite the code for the site. See https://codeigniter4.github.io/userguide/installation/upgrade_4xx.html for details.
2,674 Views
3 Replies
03-04-2020, 05:14 AM
maxxd
    Thread: CodeIgniter 4.0.0-rc.4
Post: RE: CodeIgniter 4.0.0-rc.4

kilishan Wrote: (02-09-2020, 09:00 PM) -- Actually - divpusher in another thread had a suggestion I hadn't thought of. So I created a new release on CodeIgniter4/framework and it looks to be up to da...
43,834 Views
28 Replies
02-10-2020, 05:27 AM
maxxd
    Thread: CodeIgniter 4.0.0-rc.4
Post: RE: CodeIgniter 4.0.0-rc.4

Any eta on getting the composer version updated? composer update is telling me everything's up to date with 4.0.0-rc.3.
43,834 Views
28 Replies
02-09-2020, 03:29 PM
maxxd
    Thread: Unit testing issue
Post: RE: Unit testing issue

MGatner Wrote: (01-29-2020, 06:02 PM) -- If you haven’t already I highly recommend checking out codeigniter4projects/ProjectTests and ModuleTests for unit testing with the framework. -- Thanks for th...
4,879 Views
6 Replies
02-09-2020, 10:19 AM
maxxd
    Thread: Unit testing issue
Post: RE: Unit testing issue

MGatner Wrote: (01-29-2020, 06:02 PM) -- What version of the framework are both of you using? Are you running just the test in question, or a suite that includes this one? How are you bootstrapping y...
4,879 Views
6 Replies
01-29-2020, 07:51 PM
maxxd
    Thread: Unit testing issue
Post: RE: Unit testing issue

The actual code I'm running, if it helps: PHP Code: -- namespace App\Models; use CodeIgniter\Test\CIDatabaseTestCase; use CodeIgniter\Test\ControllerTester; class GroupClassesTest extends C...
4,879 Views
6 Replies
01-28-2020, 08:27 AM
maxxd

Theme © iAndrew 2016 - Forum software by © MyBB