Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: ci-phpunit-test for CodeIgniter 3.0
Post: RE: ci-phpunit-test for CodeIgniter 3.0

I've released ci-phpunit-test v1.0.1, v2.0.1 and v3.0.1. https://github.com/kenjis/ci-phpunit-test/releases They are minor bug fixes.
127,652 Views
101 Replies
07-13-2021, 11:16 PM
kenjis
    Thread: Your advices on CI3 upgrade
Post: RE: Your advices on CI3 upgrade

ci3-to-4-upgrade-helper might help you. https://forum.codeigniter.com/thread-78565.html
717 Views
4 Replies
06-30-2021, 07:00 PM
kenjis
    Thread: why is the $this->db not available in a certain module?
Post: RE: why is the $this->db not available in a certai...

I recommend you learn about PHP and OOP. $this->load->database() creates a database object of CI3 and set it to the property $db ($this->db) in the controller. Within CodeIgniter's Models, you can...
943 Views
8 Replies
04-23-2021, 06:14 PM
kenjis
    Thread: $baseURL ci 4 and ci3
Post: RE: $baseURL ci 4 and ci3

I don't know why but it seems it is a specification of CI4's base_url().
529 Views
3 Replies
04-23-2021, 06:05 PM
kenjis
    Thread: $baseURL ci 4 and ci3
Post: RE: $baseURL ci 4 and ci3

underware Wrote: (04-21-2021, 11:21 AM) -- on ci3, $baseURL i setup as http://localhost/ci3/ , it worked correctly with end slash but on ci4, $baseURL = 'http://localhost/ci4/' on .env and Config/Ap...
529 Views
3 Replies
04-22-2021, 10:45 PM
kenjis
    Thread: CI4 Generate Empty String On Query Binding Value On "FALSE" value
Post: RE: CI4 Generate Empty String On Query Binding Val...

You have running code. Why don't you investigate where converts false to ''?
1,492 Views
10 Replies
04-13-2021, 03:03 AM
kenjis
    Thread: Query Builder need help
Post: RE: Query Builder need help

I recommend you read the User Guide: https://codeigniter4.github.io/CodeIgniter4/tutorial/news_section.html#setting-up-your-model
902 Views
5 Replies
04-13-2021, 02:52 AM
kenjis
    Thread: Query Builder need help
Post: RE: Query Builder need help

It is not a Query Builder example. It is an example of CodeIgniter\Model. But it is very confusing because CodeIgniter\Model could use Query Builder's methods.
902 Views
5 Replies
04-12-2021, 10:34 PM
kenjis
    Thread: $this->$request->getMethod() NOT WORKING Anymore?
Post: RE: $this->$request->getMethod() NOT WORKING Anymo...

Which code? Not `$this->$request` but `$this->request`.
525 Views
1 Replies
03-24-2021, 07:27 PM
kenjis
    Thread: Blank screen after transfer to a different server
Post: RE: Blank screen after transfer to a different ser...

https://visituganda.com/admin/login There is no CI session cookie `ci_session`.
461 Views
2 Replies
03-24-2021, 12:56 AM
kenjis
    Thread: How to implements hmvc
Post: RE: How to implements hmvc

How about this? CodeIgniter 4 HMVC Programming Tutorial - Online Web Tutor https://onlinewebtutorblog.com/codeigniter-4-hmvc-programming-tutorial/
948 Views
2 Replies
03-23-2021, 08:04 PM
kenjis
    Thread: How to amend a View using a Module?
Post: RE: How to amend a View using a Module?

See https://codeigniter4.github.io/CodeIgniter4/general/modules.html#views
355 Views
1 Replies
03-23-2021, 07:54 PM
kenjis
    Thread: Multiple filters in route codeigniter 4
Post: RE: Multiple filters in route codeigniter 4

See https://codeigniter4.github.io/CodeIgniter4/incoming/filters.html#aliases
599 Views
2 Replies
03-23-2021, 07:52 PM
kenjis
    Thread: Documentation could be more newbie-friendly
Post: RE: Documentation could be more newbie-friendly

bastian Wrote: (03-22-2021, 10:11 PM) -- Please also check the description of **countAll()** and **countAllResults()**. Usage of both are documented as identical, which I think isn't the case: htt...
1,282 Views
7 Replies
03-22-2021, 10:47 PM
kenjis
    Thread: Why does $userModel->find(null) return all rows like $userModel->findAll()
Post: RE: Why does $userModel->find(null) return all row...

sba Wrote: (03-20-2021, 06:45 AM) -- But what's the idea behind this? Why does it return all records when I say find(null)? this is semantically nonsense... search for nothing should return nothing...
955 Views
3 Replies
03-20-2021, 06:06 PM
kenjis
    Thread: Modules not loading config files
Post: RE: Modules not loading config files

> Why is it so hard to add constants in a specific module? Probably because there is no way to autoload constants in PHP. I personally recommend not to use global constants at all.
1,935 Views
10 Replies
03-20-2021, 05:55 PM
kenjis
    Thread: Why does $userModel->find(null) return all rows like $userModel->findAll()
Post: RE: Why does $userModel->find(null) return all row...

find(null) means no where clause. So you get all records.
955 Views
3 Replies
03-20-2021, 06:16 AM
kenjis
    Thread: Modules not loading config files
Post: RE: Modules not loading config files

ZoeF Wrote: (03-19-2021, 12:42 PM) -- And I have the constants added to the Modules.php $aliases array in the main app config folder.  Yet the constants are not beeing found. -- There is no alia...
1,935 Views
10 Replies
03-19-2021, 06:44 PM
kenjis
    Thread: PHPUnit and extended class
Post: RE: PHPUnit and extended class

I think the setUp() and tearDown() are no problems. But you can remove them, because you don't add any code to the methods. Code: -- Test 'App\Libraries\FooTest::testFooNotBar' started Test 'Ap...
970 Views
8 Replies
03-19-2021, 03:17 AM
kenjis
    Thread: PHPUnit and extended class
Post: RE: PHPUnit and extended class

Code: --                     ./tests             ./system/Test/FeatureTestCase.php         -- PHPUnit looks for test case files in "./tests". Your phpunit.xml.dist seems to be okay. I don'...
970 Views
8 Replies
03-19-2021, 02:20 AM
kenjis

Theme © iAndrew 2016 - Forum software by © MyBB