Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: forceHTTPS and session()
Post: RE: forceHTTPS and session()

Thanks for suggestion. I'm using shared hosting. Many times it go down. They say server has high load, and my website data has to be moved on other server in their company.
2,572 Views
6 Replies
04-07-2020, 07:31 AM
anthos1984
    Thread: forceHTTPS and session()
Post: RE: forceHTTPS and session()

I have it. I just want to use some pages to be https. But 2 or 3 redirection and missing session var is still mystery for me
2,572 Views
6 Replies
03-29-2020, 10:04 AM
anthos1984
    Thread: Using Subdomains for multiple apps
Post: RE: Using Subdomains for multiple apps

I have done this and it work: 1. The server should use 1 folder which have 1 subfolder for each subdomain. I apply shared hosting which support this. 2. Here the structure: -site1 --app --pub...
878 Views
2 Replies
03-28-2020, 03:58 PM
anthos1984
    Thread: ABout CSRF feature: what is it for?
Post: ABout CSRF feature: what is it for?

I want to know about CSRF feature. What it for? Maybe I misunderstand if that feature blocks someone for submitting data if he doesn't load the forms. I mean stray user just POST data to server. I...
716 Views
1 Replies
03-28-2020, 03:44 PM
anthos1984
    Thread: forceHTTPS and session()
Post: RE: forceHTTPS and session()

I'm sorry guys, looks like I'm wrong about this. The other time I starting session early doesn't remove session variable. Also when see forceHTTPS source, it also consider when session is started...
2,572 Views
6 Replies
03-28-2020, 02:58 PM
anthos1984
    Thread: forceHTTPS and session()
Post: forceHTTPS and session()

I'm not sure where to talk about this. but '$this->forceHTTPS' must be called before '$session = session();' or else your session variable might be loss. This warning should be made into user ...
2,572 Views
6 Replies
03-26-2020, 12:13 AM
anthos1984
    Thread: Testing: class 'SQLite3' not found
Post: RE: Testing: class 'SQLite3' not found

jreklund Wrote: (03-19-2020, 01:18 PM) -- You may need to write  use \SQLite3; above your class, to load the global class instead of bundled one. -- Doesn't work. Where do i place it? On controlle...
3,573 Views
5 Replies
03-19-2020, 09:23 PM
anthos1984
    Thread: Testing: class 'SQLite3' not found
Post: RE: Testing: class 'SQLite3' not found

I didn't use CI4's database Library, I don't need it for now. I just use plain \SQLite3 which comes from PHP extension to minimize overhead calls. Even i'm not using PDO SQLite. Unfortunately Feat...
3,573 Views
5 Replies
03-18-2020, 04:09 PM
anthos1984
  Question Thread: Testing: class 'SQLite3' not found
Post: Testing: class 'SQLite3' not found

I'm using CI 4.0 (latest). I try testing using PHPUnit. installed offline, not using composer. Using Code: -- ControllerTester -- work for simple pages. But error (HTTP Exception) for page whic...
3,573 Views
5 Replies
03-17-2020, 03:13 PM
anthos1984
  Smile Thread: third locale detection
Post: third locale detection

CI4 has 2 way of locale detection: 1. By url Most modern websites use locale setting on some url part. But on complex url routing, this may not works (misinterpreted as segment or parameter instea...
1,260 Views
1 Replies
11-28-2018, 03:20 PM
anthos1984
    Thread: Need help with Test
Post: RE: Need help with Test

So no one knows how to repair the missing path then? I can always include absolute path, but it needs to be included on every file. not good solution
4,151 Views
9 Replies
09-04-2018, 10:56 PM
anthos1984
    Thread: Need help with Test
Post: RE: Need help with Test

puschie Wrote: (08-29-2018, 12:14 AM) -- have an similar problem when i dont set the correct working directory ( which has to be the project directory ). But dont know how to set it via cli, sry. -- ...
4,151 Views
9 Replies
08-29-2018, 04:23 AM
anthos1984
    Thread: Need help with Test
Post: RE: Need help with Test

These the output: Code: -- H:\wamp306_x64\www\CodeIgniter4-develop>php phpunit-7.3.0.phar -c phpunit.xml UnitTest tests\system\CommonFunctionsTest.php Fatal error: Class 'CodeIgniter\Test\CIU...
4,151 Views
9 Replies
08-28-2018, 07:54 PM
anthos1984
    Thread: Need help with Test
Post: RE: Need help with Test

ciadmin Wrote: (08-27-2018, 06:33 AM) -- Have you checked https://github.com/bcit-ci/CodeIgniter4/tree/develop/tests -- Yes, I have. I have already installed PHPUnit globally. It works on simple pr...
4,151 Views
9 Replies
08-27-2018, 10:22 PM
anthos1984
    Thread: Need help with Test
Post: RE: Need help with Test

Any people can answer this? The problem is broken path. Where to fix this? I suppose the test is run from project root folder
4,151 Views
9 Replies
08-27-2018, 01:30 AM
anthos1984
    Thread: Need help with Test
Post: Need help with Test

Hello, I just learn PHPUnit (i am newbie for test suite). I try setting PHPUnit on netbeans project. I try following user guide. But no success. First, Fatal error: Class 'Test\CIUnitTestCas...
4,151 Views
9 Replies
08-11-2018, 09:07 AM
anthos1984
    Thread: CSP nonce
Post: RE: CSP nonce

kilishan Wrote: (08-09-2018, 06:19 AM) -- Already in there: https://bcit-ci.github.io/CodeIgniter4/libraries/response.html#inline-content (https://bcit-ci.github.io/CodeIgniter4/libraries/response.ht...
2,256 Views
2 Replies
08-09-2018, 05:45 PM
anthos1984
    Thread: CSP nonce
Post: CSP nonce

Ask about nonce in security feature. Also CSP with nonce support. Just like CSRF token that can be included in views (manually). And handled automatically when visitor submit request to server. Som...
2,256 Views
2 Replies
08-08-2018, 11:53 PM
anthos1984
    Thread: need help with CSP config
Post: RE: need help with CSP config

Great!!, thanks... Now I can properly set CSP setting.
1,857 Views
2 Replies
08-08-2018, 11:43 PM
anthos1984
    Thread: need help with CSP config
Post: need help with CSP config

I activate csp setting to 'true' at Config\App. But web browser console show error something like : 'csp setting blocked content at 'self'' I don't know how to set Config\CSPsetting properly so my p...
1,857 Views
2 Replies
08-08-2018, 08:40 AM
anthos1984

Theme © iAndrew 2016 - Forum software by © MyBB