Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Correct way to re-direct in controller back to "index"
Post: RE: Correct way to re-direct in controller back to...

Well, I'm not actually deleting anything on GET. That will simply display a confirmation prompt, which will do a POST, which will delete.
172 Views
2 Replies
02-04-2024, 11:36 PM
joho
  Question Thread: Correct way to re-direct in controller back to "index"
Post: Correct way to re-direct in controller back to "in...

What is the correct way to re-direct the user back to "index"? In my routes, I'm using $routes->match() to match URIs according to CRUD, so for "delete", there's: Code: -- $routes->match( ['get',...
172 Views
2 Replies
02-02-2024, 08:24 AM
joho
    Thread: is_unique for multiple values
Post: RE: is_unique for multiple values

kenjis Wrote: (02-01-2024, 07:37 PM) -- No , you can't. Create your own rule. https://codeigniter.com/user_guide/libraries/validation.html#id39 -- Thanks for responding. I ended up doing just tha...
144 Views
2 Replies
02-02-2024, 08:09 AM
joho
  Question Thread: is_unique for multiple values
Post: is_unique for multiple values

I have a unique (and primary) key, call it "record_id". It's an arbitrary string. Along that column, I have "owner", "name", and "URL", all of these are varchar fields. "owner" has an index. I...
144 Views
2 Replies
02-01-2024, 08:14 AM
joho
    Thread: DataException: There is no data to update after using save()
Post: RE: DataException: There is no data to update afte...

Possibly also add some more details for the DataException exception? I can only find a brief comment about this in the documentation. I actually landed on this thread because I was catching a Datab...
2,090 Views
10 Replies
01-30-2024, 08:15 AM
joho
    Thread: Smarter forms in regards to ENTER key
Post: RE: Smarter forms in regards to ENTER key

Sure, whatever floats your boat :-) I was merely trying to explain what I meant.
508 Views
4 Replies
09-20-2023, 06:00 AM
joho
    Thread: Smarter forms in regards to ENTER key
Post: RE: Smarter forms in regards to ENTER key

JustJohnQ Wrote: (09-20-2023, 02:09 AM) -- Check this out: https://stackoverflow.com/questions/895171/prevent-users-from-submitting-a-form-by-hitting-enter -- Thanks. It's an interesting thread, b...
508 Views
4 Replies
09-20-2023, 02:44 AM
joho
  Lightbulb Thread: Smarter forms in regards to ENTER key
Post: Smarter forms in regards to ENTER key

It'd be lovely if a "smarter forms" handling in regards to the ENTER key could be added, with or without the form builder, and purely optional (of course). By "smarter forms" I mean that ENTER in a...
508 Views
4 Replies
09-20-2023, 01:07 AM
joho
    Thread: CodeIgniter on Mastodon and/or Matrix
Post: RE: CodeIgniter on Mastodon and/or Matrix

InsiteFX Wrote: (09-13-2023, 10:29 PM) -- I heard they where all leaving X for Tribal. -- Right. Why didn't I think of that :cool:
323 Views
2 Replies
09-14-2023, 12:17 AM
joho
    Thread: $routes->match() behavior in 4.4.1
Post: RE: $routes->match() behavior in 4.4.1

kenjis Wrote: (09-13-2023, 03:42 AM) -- Check the routing table. $ php spark routes -- Yeah, I did that, thanks, and it looked good; until I realized that /zadmin shouldn't be a part of the route....
338 Views
2 Replies
09-13-2023, 06:39 AM
joho
  Lightbulb Thread: $routes->match() behavior in 4.4.1
Post: $routes->match() behavior in 4.4.1

Does $routes->match() behave differently in 4.4.x? I have this, and it works for 4.3.x, but seemingly not for 4.4.1: Code: -- use CodeIgniter\Router\RouteCollection; use App\Controllers\zAdmin...
338 Views
2 Replies
09-13-2023, 02:31 AM
joho
    Thread: Nginx configuration with and without subdirectory
Post: RE: Nginx configuration with and without subdirect...

kenjis Wrote: (09-13-2023, 01:05 AM) -- See https://codeigniter4.github.io/CodeIgniter4/installation/running.html#hosting-with-nginx -- Thank you. I have something similar. But for sub-directories,...
319 Views
2 Replies
09-13-2023, 01:32 AM
joho
  Question Thread: Nginx configuration with and without subdirectory
Post: Nginx configuration with and without subdirectory

Is there an nginx configuration equivalent of the supplied .htaccess file for CI4? i.e. one that shows how to serve a CI4 application from a "root" URL and from a sub-directory URL.
319 Views
2 Replies
09-13-2023, 12:36 AM
joho
    Thread: What's Your Preferred Text Editor?
Post: RE: What's Your Preferred Text Editor?

tarcisiodev1 Wrote: (09-12-2023, 11:21 PM) -- [quote pid="412604" dateline="1694585065"] If you need a bare text editor that is extremely powerful, but "somewhat" complex to understand, there's also...
2,327 Views
11 Replies
09-12-2023, 11:28 PM
joho
  Thumbs Up Thread: Getting the CodeIgniter version
Post: RE: Getting the CodeIgniter version

datamweb Wrote: (09-12-2023, 11:08 PM) -- PHP Code: -- -- -- Excellent, thank you :cool:
298 Views
2 Replies
09-12-2023, 11:23 PM
joho
    Thread: What's Your Preferred Text Editor?
Post: RE: What's Your Preferred Text Editor?

Eclipse PDT https://eclipse.dev/pdt/ or Komodo IDE Komodo has, unfortunately, halted development of any future versions, but it still works nicely both under Linux and Windows. If you need a ...
2,327 Views
11 Replies
09-12-2023, 11:04 PM
joho
  Question Thread: Getting the CodeIgniter version
Post: Getting the CodeIgniter version

Is there a function that'll return the current CodeIgniter version? I'd like to display that somewhere in my "System information" screen, obviously with a link to the CodeIgniter website :)
298 Views
2 Replies
09-12-2023, 11:00 PM
joho
    Thread: Sessions problems on CI4
Post: RE: Sessions problems on CI4

gbwebapps Wrote: (02-01-2023, 05:29 AM) -- Hi, I have on my localhost with xampp on windows 11 several ci4 installations. They worked fine until two days ago, because suddenly I could not open them ...
1,752 Views
8 Replies
09-12-2023, 10:57 PM
joho
  Question Thread: CodeIgniter on Mastodon and/or Matrix
Post: CodeIgniter on Mastodon and/or Matrix

Any chance of seeing CodeIgniter on Mastodon and/or Matrix, for us that don't want to do things on Twitter and/or Slack?
323 Views
2 Replies
09-12-2023, 10:53 PM
joho
    Thread: Correct way to re-generate CSRF for sequential AJAX calls
Post: RE: Correct way to re-generate CSRF for sequential...

InsiteFX Wrote: (08-24-2023, 11:04 PM) -- How to Send AJAX request with CSRF token in CodeIgniter 4 (https://makitweb.com/how-to-send-ajax-request-with-csrf-token-in-codeigniter-4/#google_vignette) -...
780 Views
5 Replies
08-25-2023, 01:04 AM
joho

Theme © iAndrew 2016 - Forum software by © MyBB