Welcome, Guest
You have to register before you can post on our site.



Search Forums

(Advanced Search)

Forum Statistics
» Members: 15,587
» Latest member: fabricio
» Forum threads: 70,607
» Forum posts: 363,090

Full Statistics

Latest Threads
XSS Clean in CI4?
Forum: CodeIgniter 4 Support
34 minutes ago
» Replies: 3   » Views: 58
not_in_list form validati...
Forum: CodeIgniter 4 Support
53 minutes ago
» Replies: 1   » Views: 33
How encrypt with vector
Forum: General Help
1 hour ago
» Replies: 0   » Views: 9
Entity fields not saving ...
Forum: CodeIgniter 4 Support
1 hour ago
» Replies: 7   » Views: 264
generating student inform...
Forum: Installation & Setup
1 hour ago
» Replies: 1   » Views: 11
oci_execute(): ORA-01799:...
Forum: General Help
1 hour ago
» Replies: 1   » Views: 12
drop_column() support for...
Forum: CodeIgniter 3.x
3 hours ago
» Replies: 1   » Views: 64
Unit testing issue
Forum: CodeIgniter 4 Support
3 hours ago
» Replies: 2   » Views: 61
Important News about Jim ...
Forum: News & Discussion
3 hours ago
» Replies: 77   » Views: 19,349
url problem
Forum: Installation & Setup
3 hours ago
» Replies: 2   » Views: 22

  Help with RIGHT JOIN conversion?
Posted by: nfoboy - 01-21-2020, 08:40 PM - Forum: General Help - Replies (8)

MySQL query is as follows:

SELECT RossResearchDB.property.id, RossResearchDB.property.lat, RossResearchDB.property.long, RossResearchDB.property.property_name, RossResearchDB.liked_property.FK_Renter FROM RossResearchDB.liked_property right join RossResearchDB.property
on RossResearchDB.liked_property.FK_Property = RossResearchDB.property.id
and FK_Renter = 2;

I am lost on how to set this up using the CI syntax.

Any help on the way ahead is appreciated!


  [solved] CI4 request missing POST and FILES data
Posted by: jameslittle - 01-21-2020, 05:59 PM - Forum: CodeIgniter 4 Discussion - Replies (2)

I've been hitting my head against my keyboard all afternoon trying to figure this out.

I've got a page that has an image uploader. When I post from the page to a plain PHP page, the file uploads as expected. But when I post to my controller function, the POST and FILES data are empty.

I think it might have something to do with where the IncomingRequest is being instantiated, but I can't figure it out. Essentially I have this route for do_upload, like:

PHP Code:
public function do_upload(){

Even though I seem to be posting to the page correctly, I get
PHP Code:
Array ( ) Array ( ) Array ( ) 

Meanwhile, $this->request has tons of info... but just nothing I can find about POST or FILES.

Any ideas?

Using CI 4.0.0 rc3

One thing I forgot to mention, I'm using some variable routing here, so I wonder if that is short-circuiting the POST. In my routes, I've got an entry like this:

$routes->add('editor/do_upload/(:any)', 'Editor::do_upload');

The 3rd parameter is an ID that ties the upload back to a database record.

  Library useTimestamps and useSoftDeletes from codeigniter 4 to 3
Posted by: MatheusCastro - 01-21-2020, 05:28 PM - Forum: Addins - No Replies

Hello everyone.

This is a first implementation of a library that resembles Codeigniter 4's useTimestamps and useSoftDeletes.

The branch link its here.

Discussion on whether or not to use this functionality is open. I, in particular, found the functionality useful in Codeigniter 4 and wanted to bring it in "parts" to Ci3.

Lightbulb CI4 need to fix
Posted by: nc03061981 - 01-21-2020, 05:00 PM - Forum: CodeIgniter 4 Discussion - Replies (4)

Dear CI Teams,
When start every page, it stop a moment and then load page, this not in CI3.

  .htaccess solution
Posted by: stlake2011 - 01-21-2020, 01:58 PM - Forum: CodeIgniter 4 Support - No Replies

Hi all,

I have been using CI 3.1.x for a while so now that CI4 is in its final stages before full release I decided to download and get familiar with it. 

Anyway I wanted my urls to look like this (before using routing rules):
but had to do it this way:

To make a long story short. The .htaccess was not loading and after a couple of hours of digging online and trying various "solutions" found here and in other forums, I found a solution that actually worked (for me anyway, for you all you can do is try it yourself):

<Directory /path/to/your/working/directory>
AllowOverride ALL

Not sure its entirely safe (security wise) but wanted to put this out there for those having similar issues with getting the .htaccess load properly.

Oh one more thing as I am testing in a test virtual host, I placed the directory above in that vhosts configuration. But imagine it would work as well in the httpd.conf file if needed.

Hope this helps.

Bug session error while running feature tests
Posted by: hatsat32 - 01-21-2020, 01:29 PM - Forum: CodeIgniter 4 Discussion - No Replies

hello everyone

I have simple controller and index function

PHP Code:
<?php namespace App\Controllers;

Home extends BaseController
    public function 
index() {


and this feature test
PHP Code:
<?php namespace App;

HomeTest extends FeatureTestCase
    public function 
setUp(): void {

    public function 
tearDown(): void {
    public function 
$response $this->get('/');


pretty simple right?
when i run unit tests i got this error

$ ./vendor/bin/phpunit
PHPUnit 7.5.20 by Sebastian Bergmann and contributors.

Error:         No code coverage driver is available

E                                                                   1 / 1 (100%)

Time: 108 ms, Memory: 6.00 MB

There was 1 error:

1) App\HomeTest::testHomeGet
ErrorException: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time


Tests: 1, Assertions: 0, Errors: 1.

i got every time this error.
1) App\HomeTest::testHomeGet
ErrorException: ini_set(): Headers already sent. You cannot change the session module's ini settings at this time

But when i remove session(); line in my controller and run tests again, it completes tests without any error. Like this

$ ./vendor/bin/phpunit
PHPUnit 7.5.20 by Sebastian Bergmann and contributors.

Error:         No code coverage driver is available

.                                                                   1 / 1 (100%)

Time: 128 ms, Memory: 6.00 MB

OK (1 test, 1 assertion)

i cant figure out why or what am i missing. or what causes this error?

If somebody help me about it, i will be very happy. thank you Smile

  CI forum moderators needed - Any volunteers?
Posted by: PaulD - 01-21-2020, 11:50 AM - Forum: News & Discussion - Replies (14)

Hi Everyone,

We are looking for 3 to 5 forum moderators. All you will have to do is check the moderation queue whenever you log in (or have time) to see which posts need approving or deleting. This is usually first time posters and you recall what it was like when your first post was invisible until moderated, can be an infuriating wait especially if you are stuck on an installation issue. Sometimes we need to edit a post if it has 'dubious' content or insults or just goes to far. I am sure you know what I mean although our community is not a toxic one so this is a rare occurrence.

We would ask that anyone volunteering should have been a member for a while with a good reputation. (The exact definition of these things is not well defined, but again I am sure you know what I mean.)

If you visit the forum quite often and would like to help out with this we would appreciate it very much. The more eyes we have the better really as this task can easily be missed.

If you would like to volunteer please post a reply to this thread and I will get back to you very soon.

Places are limited so if you don't get selected please do not take it personally. We may expand the moderator team again later in the year. Later on we may invite moderators to be promoted to full admins, but for now it is just about dealing with the moderation queue usually for new members' first posts.

Thank you in advance,


  Insert html/js in db and edit
Posted by: pippuccio76 - 01-21-2020, 10:41 AM - Forum: General Help - Replies (2)

HI , sorry for english , hi want to save in my db a code like this :

PHP Code:
var uri 'https://pippo.com' + new String (Math.random()).substring (211);
document.write('<a href="pippo.com" target="_BLANK"><img src="'+uri+'" border=0></a>'); 

This is a js script , hi want treat it like simple text , booth insertion and edit .

To try , i insert directly this code in db but if i echo the code i see a clickable image .

How can i save it as simple text and show as simple text ?

Lightbulb [Solved] User Guide Internationalization
Posted by: littlej - 01-21-2020, 10:00 AM - Forum: CodeIgniter 4 Feature Requests - Replies (1)


I spoke with the French community in the regional forum, and several people are interested in a translation of the user guide: https://forum.codeigniter.com/thread-120...#pid370990

It was an idea I had in mind, and I was suggested to make an official "pull request" so that the whole community could easily participate in updating it.

I started working on it, except that I have absolutely no idea what would be best to integrate this officially. In the "user_guide_src" folder I created "Localized/fr-FR" subfolders which include a copy of the original guide (that I am translating). But I am not sure at all that this is the best way to do it.

Can anyone help me figure out what is best ? Thank you.

Question Issue with RegEx contains pipe (|)
Posted by: webdevron - 01-21-2020, 07:40 AM - Forum: CodeIgniter 4 Support - Replies (2)

I am using some regex in my validation. Others are working well but this:


Error is:
preg_match(): No ending delimiter '/' found

After searching about this issue just found that, there was an issue about it (1122) though it was solved.

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.