Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: PHPUnit - disable foreign keys check
Post: PHPUnit - disable foreign keys check

Hello, Where I can disable foreign keys check in testing environment? Which is best place? Thanks for help.
937 Views
0 Replies
03-14-2019, 03:22 AM
Przem4S
    Thread: Localization in Routes
Post: RE: Localization in Routes

Why u wan't push locale into url's? Better solution is store locale in session/cookie and allow user change-language select. In own project I make routes based on locale but like this: PHP Cod...
5,178 Views
4 Replies
11-06-2018, 02:01 AM
Przem4S
    Thread: How proper unit test
Post: RE: How proper unit test

I have another question about unit tests, on my computer many test fails: Directory example, problem with path: https://i.imgur.com/eAUxe8K.png Word-wrapping example: https://i.imgur.com/P...
4,453 Views
6 Replies
10-16-2018, 03:51 AM
Przem4S
    Thread: How proper unit test
Post: RE: How proper unit test

@unodepiera Your're running OS X, I'm Windows user - ln is not windows command, /vendor/bin/phpunit is not executable for windows. But you navigate me to phpunit.bat and this resolve problem - tha...
4,453 Views
6 Replies
10-09-2018, 01:00 AM
Przem4S
    Thread: How proper unit test
Post: RE: How proper unit test

Next try: https://i.imgur.com/GzdOhLt.png PHPUnit for Windows installed.
4,453 Views
6 Replies
10-08-2018, 01:36 AM
Przem4S
    Thread: How proper unit test
Post: How proper unit test

Hello :) So, I have problem with testing. Firstly - yes I read Testing Section in CI4 Docs (https://bcit-ci.github.io/CodeIgniter4/testing/overview.html) When I run simply "phpunit" in CI4 di...
4,453 Views
6 Replies
10-03-2018, 01:46 AM
Przem4S
    Thread: Best practice for AJAX quieries
Post: RE: Best practice for AJAX quieries

About CSRF cookie, propably it's secure with flag HTTP Only, and JS cannot display me this cookie?
5,455 Views
8 Replies
09-04-2018, 04:14 AM
Przem4S
    Thread: Best practice for AJAX quieries
Post: RE: Best practice for AJAX quieries

InsiteFX Wrote: (09-03-2018, 09:11 AM) -- As long as you check in your controllers for an Ajax request you should be ok. PHP Code: -- // Check for AJAX request. if ($request->isAJAX()) {     ...
5,455 Views
8 Replies
09-04-2018, 12:57 AM
Przem4S
  Lightbulb Thread: Best practice for AJAX quieries
Post: Best practice for AJAX quieries

Hello! I have question, your best practice to service ajax request in CI4? Other namespace in routes? Other Controller? Maybe other solution? I have application with many modules and many connect...
5,455 Views
8 Replies
09-03-2018, 06:01 AM
Przem4S
    Thread: Multiple application with CI4
Post: RE: Multiple application with CI4

Yeah that is good idea, now I switch by get parameter, but saving this to session is much pretty solution. I think about 'old' solution: segment in url like /admin but with latest CI4 that's not work ...
4,720 Views
4 Replies
08-06-2018, 05:42 AM
Przem4S
    Thread: Multiple application with CI4
Post: Multiple application with CI4

Hi, How to create multiple application with CI4? Example, other application for admin's and clients. How to resolve this? How to execute first and second? Thanks for help.
4,720 Views
4 Replies
08-06-2018, 05:14 AM
Przem4S
    Thread: CodeIgniter4 - xhr/ajax request refreshing session expire time
Post: RE: CodeIgniter4 - xhr/ajax request refreshing ses...

Yes, I think it is, it should be checking current session expire time and set it or not changing session cookie, other cookie functionality work fine, but expire time refreshing. EDIT: Report on gith...
4,019 Views
4 Replies
06-15-2018, 11:56 AM
Przem4S
    Thread: CodeIgniter4 - xhr/ajax request refreshing session expire time
Post: RE: CodeIgniter4 - xhr/ajax request refreshing ses...

Hi, Yes, isAjax() returns true. In steps: 1. I create session in BaseController. 2. Display some view with jQuery. 3. This view sends Ajax in 10 secs interval. 4. Effect = every interval r...
4,019 Views
4 Replies
06-15-2018, 04:29 AM
Przem4S
    Thread: CodeIgniter4 - xhr/ajax request refreshing session expire time
Post: CodeIgniter4 - xhr/ajax request refreshing session...

Hello, I have problem with session expire parameter, when sending Ajax to server expire time is refreshed - so session never expire. Like screen (look at 'expires' parameter of cookie): https:/...
4,019 Views
4 Replies
06-14-2018, 11:24 PM
Przem4S
    Thread: Custom library available like CI3
Post: RE: Custom library available like CI3

That very helpful - thank you. I created by your idea simple library User - in this library I check by session if user is logged. But I have second problem, when User is not logged then I try redirect...
5,201 Views
6 Replies
05-24-2018, 02:24 PM
Przem4S
    Thread: Custom library available like CI3
Post: Custom library available like CI3

Hello, How to initialize custom Library? I have some class in Library, in namespace App\Libraries and get it by namespaces is pretty and works fine, but how to get/assign it to base controller. So...
5,201 Views
6 Replies
05-23-2018, 12:46 AM
Przem4S
  Brick Thread: APC Cache max TTL?
Post: APC Cache max TTL?

Hello, I used APC cache and set $ttl to 0 (zero), and my cache was refreshed about 8-12 hours - why? (no machine restart, no manualy remove command in code). Any sugestion? My target is max life ti...
1,081 Views
0 Replies
03-22-2018, 03:40 AM
Przem4S

Theme © iAndrew 2016 - Forum software by © MyBB