Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Custom form validation
Post: RE: Custom form validation

Thanks Kenjis, I went with the below code on the view if someone else run in to this issue. Code: -- echo session('validation') ? session('validation')->getError('email') : ''; -- you can also...
354 Views
2 Replies
01-24-2023, 04:16 AM
chakycool
    Thread: Custom form validation
Post: Custom form validation

Hi All, I has a custom form validation created just like the one on this tutorial (https://makitweb.com/create-custom-validation-rule-in-codeigniter-4/) and was working fine on 4.2.1. I just updated...
354 Views
2 Replies
01-24-2023, 03:15 AM
chakycool
  Thumbs Up Thread: CORS policy on single URL
Post: RE: CORS policy on single URL

encodedigital Wrote: (12-07-2022, 08:03 AM) -- hi @"chakycool" , You can create a filter and in  the "before" function of the filter. You can add below code: $response = Services::response(); $r...
644 Views
3 Replies
12-08-2022, 02:10 AM
chakycool
    Thread: CORS policy on single URL
Post: CORS policy on single URL

Hi All, I got a rest API setup using CI4 but when I try to hit the API using Ajax out side of the domain I get a CORS policy error. Is there a way to allow cross domain access just to one API/URL. Ev...
644 Views
3 Replies
12-07-2022, 04:53 AM
chakycool
    Thread: Welcoming New Maintainer
Post: RE: Welcoming New Maintainer

Amazing news. Congrats and thank you for all the support @"kenjis"
8,214 Views
15 Replies
10-20-2022, 05:47 AM
chakycool
    Thread: Ci4 site offline
Post: RE: Ci4 site offline

Thank you Kenjis, I will give it a go. [hr] Out of the box the code is outdated and giving some errors :) Looks like I need to put some effort to fix this.
443 Views
2 Replies
09-05-2022, 11:15 PM
chakycool
    Thread: Ci4 site offline
Post: Ci4 site offline

Hi, I need to upgrade my RDS and my Ci4 instance got couple of web pages that do different things. What is the best way to put the site offline while the DB is offline. Easiest method I could think ...
443 Views
2 Replies
09-04-2022, 07:42 AM
chakycool
    Thread: Manage Session folder
Post: RE: Manage Session folder

Thanks Ozornick. Your solution worked perfect.
658 Views
7 Replies
08-09-2022, 02:04 AM
chakycool
    Thread: Manage Session folder
Post: RE: Manage Session folder

Hi All, Yes I'm on Linux (ubuntu). I thought Ci was capable to clean the sessions it self. I got about 4 separate sites running via virtual servers so I'm not quite sure how I can clean all 4 ses...
658 Views
7 Replies
08-08-2022, 11:08 PM
chakycool
    Thread: Manage Session folder
Post: RE: Manage Session folder

Thanks for the reference. Below is my setting but it's not deleting the files. $sessionRegenerateDestroy = false;
658 Views
7 Replies
08-08-2022, 03:55 AM
chakycool
    Thread: Manage Session folder
Post: Manage Session folder

Hi, I have noticed that my 'writable/session' folder on the server is getting massive. Is there a way to flush/delete these files automatically.  Thanks.
658 Views
7 Replies
08-08-2022, 01:39 AM
chakycool
    Thread: whoops page
Post: RE: whoops page

Whoops page will come only on production mode which stops displaying unwonted backend info. I would recommend switching the environment to development and read the error to sort out the problem.
706 Views
3 Replies
07-26-2022, 04:55 AM
chakycool
    Thread: Update CI 4.1.9 to Ci 4.2.1 via composer
Post: RE: Update CI 4.1.9 to Ci 4.2.1 via composer

kenjis thanks for confirming what Mgatner pointed out about vendoring. Just buy updating the gitignore file it did not work. I had to delete git cache for it start ignoring the vendor folder. After th...
1,002 Views
7 Replies
07-15-2022, 03:11 AM
chakycool
    Thread: Update CI 4.1.9 to Ci 4.2.1 via composer
Post: RE: Update CI 4.1.9 to Ci 4.2.1 via composer

Hi MGatner, I have shared all info you requested on GitHub. I did include the vendor folder but I tried excluding it as well but ended with the same error MSG. Did install CI4 via composer and work...
1,002 Views
7 Replies
07-15-2022, 12:36 AM
chakycool
    Thread: Update CI 4.1.9 to Ci 4.2.1 via composer
Post: RE: Update CI 4.1.9 to Ci 4.2.1 via composer

The problem I see is on the second step it changes the branch. 1. Updating files: 100% (8002/8002), done. 2. Switched to a new branch 'tatter/scratch' 3. cp: cannot stat 'vendor/codeigniter4/fra...
1,002 Views
7 Replies
07-14-2022, 03:11 AM
chakycool
    Thread: Update CI 4.1.9 to Ci 4.2.1 via composer
Post: RE: Update CI 4.1.9 to Ci 4.2.1 via composer

thank for help kenjis but I hit another roadblock. I went with the CLI solution. Script stopped with the below ************************************ * STAGING * **********...
1,002 Views
7 Replies
07-12-2022, 05:02 AM
chakycool
    Thread: Controller or its method is not found: \App\Controllers\Tasks::index
Post: RE: Controller or its method is not found: \App\Co...

change the base url to below and you should be able to run the app via spark "php spark serve" app.baseURL = 'http://task.localhost/' If you want to use "Xampp" don't use the default location "h...
1,405 Views
11 Replies
07-12-2022, 02:03 AM
chakycool
    Thread: Update CI 4.1.9 to Ci 4.2.1 via composer
Post: Update CI 4.1.9 to Ci 4.2.1 via composer

Hi, As usual I update CI via composer from 4.1.9 -> 4.2.1 but this time I noticed that a lot file in "/vendor/codeigniter4/framework/app/config" got updated but my project file in "/app/config" did...
1,002 Views
7 Replies
07-12-2022, 01:49 AM
chakycool
    Thread: Real-time Dashboard
Post: RE: Real-time Dashboard

thank you insitefx. Will give it a try
1,851 Views
2 Replies
01-14-2022, 12:50 AM
chakycool
    Thread: API Route not wokring
Post: RE: API Route not wokring

Note sure if this would work but why don't you create a sperate routes for each using 'resources' and switch off Autoroutes $routes->resource('register',['only' => ['index', 'show','create']]); ...
3,372 Views
10 Replies
01-13-2022, 02:20 AM
chakycool

Theme © iAndrew 2016 - Forum software by © MyBB