Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: problems passing base64_encoded value
Post: RE: problems passing base64_encoded value

craig Wrote: (03-25-2021, 02:50 AM) -- I would use the Text helper for this purpose to avoid URL issues with Base64; it uses bin2hex() on the result of random_bytes() instead of base64_encode(). ...
589 Views
2 Replies
03-26-2021, 03:24 PM
sneakyimp
    Thread: problems passing base64_encoded value
Post: problems passing base64_encoded value

I'm trying to pass a password reset token as part of a CI4 url --it's 32 random bytes encoded using base64_encode. Suppose the token was generated this way: PHP Code: -- // returns LGziiALPuVrzIru...
589 Views
2 Replies
03-24-2021, 09:10 PM
sneakyimp
    Thread: source code says Request::getMethod() is deprecated, what to use?
Post: RE: source code says Request::getMethod() is depre...

mlurie Wrote: (02-25-2021, 06:01 PM) -- The method is not deprecated, the optional [$upper] parameter is deprecated.  -- Perhaps someone needs to change the comments and remove that @deprecated bit t...
1,699 Views
10 Replies
02-25-2021, 06:06 PM
sneakyimp
    Thread: source code says Request::getMethod() is deprecated, what to use?
Post: source code says Request::getMethod() is deprecate...

The source code (https://github.com/codeigniter4/CodeIgniter4/blob/403be20d013199babf6fe439c305437b5b229b4f/system/HTTP/Request.php#L85) says Request::getMethod() is deprecated. What should we use ins...
1,699 Views
10 Replies
02-25-2021, 05:42 PM
sneakyimp
    Thread: what does fourth parameter ($escape) actually do for $builder->like?
Post: what does fourth parameter ($escape) actually do f...

I was expecting that the fourth parameter for the Builder::like function would cause special characters in the $match parameter to be escaped. I was quite surprised to see that supplying FALSE for thi...
371 Views
1 Replies
02-24-2021, 05:31 PM
sneakyimp
    Thread: CI4 doesn't support hyphens/dashes in controller subdirectories
Post: RE: CI4 doesn't support hyphens/dashes in controll...

I have submitted pull request #4307 (https://github.com/codeigniter4/CodeIgniter4/pull/4307) to fix this issue.
1,496 Views
8 Replies
02-18-2021, 11:05 PM
sneakyimp
    Thread: CI4 doesn't support hyphens/dashes in controller subdirectories
Post: RE: CI4 doesn't support hyphens/dashes in controll...

kenjis Wrote: (02-17-2021, 04:43 PM) -- Okay, I understand the current implementation does not accept `Sub_dir`. I think `Sub_dir` and uri dash translation should accept `https://www.example.com/s...
1,496 Views
8 Replies
02-17-2021, 06:03 PM
sneakyimp
    Thread: CI4 doesn't support hyphens/dashes in controller subdirectories
Post: RE: CI4 doesn't support hyphens/dashes in controll...

kenjis Wrote: (02-17-2021, 04:20 AM) -- Why app/Controllers/Sub-dir/Home.php ? Should it be app/Controllers/Sub_dir/Home.php in PSR-4? -- Because, as I've described, I need *hyphens* in my url for S...
1,496 Views
8 Replies
02-17-2021, 06:38 AM
sneakyimp
    Thread: Codeigniter 4 doesn't detect Home controller in subdirectory
Post: Codeigniter 4 doesn't detect Home controller in su...

I have an earlier post relating to this (https://forum.codeigniter.com/thread-78215.html) where I am trying to support URLs with dashes in them. Long story short, I must use dashes in my controller su...
396 Views
0 Replies
02-16-2021, 03:34 PM
sneakyimp
    Thread: $routes->addRedirect with regex?
Post: RE: $routes->addRedirect with regex?

I have added this function to my BaseController class. It's simpler than the CI3 function in a few ways, but works for apache 2.4.41. PHP Code: -- /** * CI4 lacks a redirect() function, and i...
1,105 Views
5 Replies
02-15-2021, 01:46 PM
sneakyimp
    Thread: $routes->addRedirect with regex?
Post: RE: $routes->addRedirect with regex?

iRedds Wrote: (02-11-2021, 11:36 PM) -- The simplest, and probably better in this case, is to make a redirect at the web server level -- OK I think I will make a redirect method in my BaseController...
1,105 Views
5 Replies
02-15-2021, 11:51 AM
sneakyimp
    Thread: apache mod_rewrite problem: all css/js/images 404
Post: RE: apache mod_rewrite problem: all css/js/images ...

InsiteFX Wrote: (02-12-2021, 09:59 PM) -- What does it tell you when you use the we browsers developer tools F12 ? It could be a CORS problem. -- the domain requests are all consistent. Every asse...
589 Views
4 Replies
02-13-2021, 09:40 AM
sneakyimp
    Thread: apache mod_rewrite problem: all css/js/images 404
Post: RE: apache mod_rewrite problem: all css/js/images ...

kenjis Wrote: (02-12-2021, 07:02 PM) -- Debug mod_rewrite. https://stackoverflow.com/questions/9632852/how-to-debug-apache-mod-rewrite -- Sadly, the debug information (https://paste.ubuntu.com/p/JvP...
589 Views
4 Replies
02-12-2021, 07:14 PM
sneakyimp
    Thread: apache mod_rewrite problem: all css/js/images 404
Post: apache mod_rewrite problem: all css/js/images 404

Rather than using  an .htaccess file, I'm trying to get the basic CodeIgniter mod_rewrite files working in my apache conf file. I'm doing this because apache says .htaccess files cause a performance h...
589 Views
4 Replies
02-12-2021, 12:51 PM
sneakyimp
    Thread: $routes->addRedirect with regex?
Post: RE: $routes->addRedirect with regex?

iRedds Wrote: (02-11-2021, 03:37 AM) -- The addRedirect() method does not support replacement. -- Thanks for the clarification. Thanks also for the code. That hack is not pretty.
1,105 Views
5 Replies
02-11-2021, 11:23 AM
sneakyimp
    Thread: $routes->addRedirect with regex?
Post: $routes->addRedirect with regex?

I'm trying to deprecate the use of .html suffixes for my urls. I'm trying to redirect old urls like this: Code: -- https://www.example.com/subdir/some-item-title/page-specifier-15-1132.00.html -...
1,105 Views
5 Replies
02-10-2021, 05:31 PM
sneakyimp
    Thread: AdminController - how to redirect in __construct or initController function?
Post: RE: AdminController - how to redirect in __constru...

iRedds Wrote: (01-21-2021, 08:13 PM) -- Even if there is a return operator in the class constructor, it will not return anything. No return is expected when the initController method is called. I...
1,271 Views
3 Replies
01-29-2021, 05:57 PM
sneakyimp
    Thread: AdminController - how to redirect in __construct or initController function?
Post: AdminController - how to redirect in __construct o...

I'm migrating an extensive site to CI4. I organize my controllers thusly: * public ones that just extend BaseController * ones for that require authenticated users which extend UserController * adm...
1,271 Views
3 Replies
01-21-2021, 06:00 PM
sneakyimp
    Thread: Migrating CI3 to CI4, need query->numRows function
Post: RE: Migrating CI3 to CI4, need query->numRows func...

tgix Wrote: (01-01-2021, 03:14 AM) -- adnzaki Wrote: (01-01-2021, 01:00 AM) -- Is it not enough for you? -- I can only answer for myself. My take away is that getResult() loops the result set and ...
1,750 Views
11 Replies
01-02-2021, 12:10 PM
sneakyimp
    Thread: Migrating CI3 to CI4, need query->numRows function
Post: RE: Migrating CI3 to CI4, need query->numRows func...

kenjis Wrote: (12-30-2020, 05:38 PM) -- It seems there is no way to extend the database result class. -- This is very disappointing. seunex Wrote: (12-30-2020, 10:51 PM) -- It is known as $query-...
1,750 Views
11 Replies
12-31-2020, 12:44 PM
sneakyimp

Theme © iAndrew 2016 - Forum software by © MyBB