Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: RESTful API Support
Post: RE: RESTful API Support

Sure, I'd like to help. And yeah, I can share. That's the whole point. I had something more elaborate (e.g. color coded) in mind, but had to make do with that. So it might need some polishing. I've...
2,481 Views
10 Replies
05-25-2021, 12:49 PM
akinuri
    Thread: SMTP fails on localhost
Post: RE: SMTP fails on localhost

Guys, I appreciate the answers, but it appears none of you really examined the issue (the things I've posted). No, the problem is not about an antivirus software. As I said, the email class in CI3 ...
1,374 Views
9 Replies
05-25-2021, 11:34 AM
akinuri
    Thread: SMTP fails on localhost
Post: RE: SMTP fails on localhost

I monitored the network while trying to send mails in case it gives clues about the problem, and I think I figured it out. Here's a successful mail send from CI3: Code: -- No  Time        Sou...
1,374 Views
9 Replies
05-23-2021, 07:56 AM
akinuri
    Thread: SMTP fails on localhost
Post: SMTP fails on localhost

I'm on Windows 10 Pro x64 and using XAMPP 7.4.4 & CI 4.1.1 on a local machine. I'm not able to send an email. The code and the output: PHP Code: -- $email = \Config\Services::email(); $config ...
1,374 Views
9 Replies
05-23-2021, 05:28 AM
akinuri
    Thread: RESTful API Support
Post: RE: RESTful API Support

@mgatner I wouldn't go that far and call myself an expert on the subject, but I like analyzing, abstracting, structuring things, so I tend to get concerned with this kind of issues, and can't overlook...
2,481 Views
10 Replies
05-22-2021, 07:20 AM
akinuri
    Thread: RESTful API Support
Post: RE: RESTful API Support

InsiteFX Wrote: (05-21-2021, 11:59 AM) -- Here is a Tutorial that will show you how it is done. If you look in the system folder you will see a RETFUL folder. Make sure you download the code at th...
2,481 Views
10 Replies
05-21-2021, 01:37 PM
akinuri
    Thread: RESTful API Support
Post: RESTful API Support

I've been using CI3 for a while, and experimenting on CI4 now. I'm planing to use CI4 for an API server. So no front-end. With that in mind, I keep hitting walls. I want to support HTTP verbs (POST, P...
2,481 Views
10 Replies
05-21-2021, 09:42 AM
akinuri
    Thread: Query Builder "Where" with Array
Post: RE: Query Builder "Where" with Array

If you have multiple values to compare, why are you not using whereIn()? Since you have multiple fields (brand and country), you'll have to add them to the query seperately. While where() concatenates...
3,943 Views
7 Replies
05-19-2020, 09:20 AM
akinuri
    Thread: Prevent arbitrary URL parameters
Post: RE: Prevent arbitrary URL parameters

Oh, so in other words, the smart thing to do is to get accustomed to manual routing.
4,846 Views
12 Replies
05-12-2020, 03:16 AM
akinuri
    Thread: Prevent arbitrary URL parameters
Post: RE: Prevent arbitrary URL parameters

I thought I should expand on this issue/topic by providing some examples just the make the case clear. Here are some live URLs that works as expected: Code: -- URL                                  ...
4,846 Views
12 Replies
05-11-2020, 07:10 AM
akinuri
    Thread: Prevent arbitrary URL parameters
Post: RE: Prevent arbitrary URL parameters

A side query, does that mean that every published app on the net that uses CI 3 suffers from this issue? That I can just go to some CI app and visit site/login/blabla and still view the site/login pag...
4,846 Views
12 Replies
05-09-2020, 10:19 AM
akinuri
    Thread: Prevent arbitrary URL parameters
Post: RE: Prevent arbitrary URL parameters

Okay, so I downloaded CI 4.0.3 and tested it. setAutoRoute() is set to true by default. This is the (imo, problematic) result: Code: -- http://localhost/ci/public/                 200 http://loca...
4,846 Views
12 Replies
05-09-2020, 09:04 AM
akinuri
    Thread: Prevent arbitrary URL parameters
Post: RE: Prevent arbitrary URL parameters

jreklund Wrote: (05-09-2020, 07:22 AM) -- There are no setting to turn off the CI3 Routing. You can however comment out this line 423 in system\core\Router.php PHP Code: -- //$this->_set_request(...
4,846 Views
12 Replies
05-09-2020, 08:07 AM
akinuri
    Thread: Prevent arbitrary URL parameters
Post: Prevent arbitrary URL parameters

I know that there's a one-to-one relationship between the URL and the controller class/method as said in URI Routing (https://codeigniter.com/userguide3/general/routing.html#uri-routing). Also that an...
4,846 Views
12 Replies
05-09-2020, 05:24 AM
akinuri

Theme © iAndrew 2016 - Forum software by © MyBB