Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Notification counter
Post: RE: Notification counter

IMO, it would be better if you did it in the filter before or after. You can also add exceptions for certain controllers there.
194 Views
4 Replies
07-10-2024, 04:33 AM
warcooft
    Thread: Codeigniter - Indonesia Community
Post: RE: Codeigniter - Indonesia Community

pastikan return type pada function tersebut sesuai dengan return valuenya, jika fungsi tersebut hanya mengembalikan RedirectResponse maka return type-nya seperti ini public function foo(): RedirectR...
339,732 Views
163 Replies
06-27-2024, 08:42 AM
warcooft
    Thread: Codeigiter 4 Shield : Customize Registration Controller
Post: RE: Codeigiter 4 Shield : Customize Registration C...

Could you please post it here https://github.com/codeigniter4/shield/discussions So, that your code can be read more comfortably.
180 Views
2 Replies
06-26-2024, 12:47 AM
warcooft
    Thread: CodeIgniter very long loading times under Xampp and Wamp server
Post: RE: CodeIgniter very long loading times under Xamp...

> Do you have any recommendations, perhaps outside of Vite, on how to ideally reduce JS and CSS size? This question should be on stackoverflow. or you can try the following package https://githu...
301 Views
9 Replies
06-22-2024, 05:10 AM
warcooft
    Thread: CodeIgniter very long loading times under Xampp and Wamp server
Post: RE: CodeIgniter very long loading times under Xamp...

You can try turning on development mode, then on the toolbar make sure Hot Reload is not active. I once experienced something similar and it turned out that was the cause.
301 Views
9 Replies
06-22-2024, 02:38 AM
warcooft
    Thread: form_open / $request->getMethod
Post: RE: form_open / $request->getMethod

Usually I skip the notes section. but now I'm a little more aware. Thank you @"kenjis", always learning something new from you.
260 Views
6 Replies
06-20-2024, 05:46 AM
warcooft
    Thread: form_open / $request->getMethod
Post: RE: form_open / $request->getMethod

Why don't you use $this->request->getVar() or $this->request->getPost() instead of $_REQUEST. See https://codeigniter.com/user_guide/incoming/incomingrequest.html#retrieving-input
260 Views
6 Replies
06-20-2024, 05:29 AM
warcooft
    Thread: Call to undefined method Config\Autoload::__set_state()
Post: RE: Call to undefined method Config\Autoload::__se...

Thank you @"kenjis" !
200 Views
2 Replies
06-12-2024, 09:40 PM
warcooft
    Thread: Call to undefined method Config\Autoload::__set_state()
Post: Call to undefined method Config\Autoload::__set_st...

https://snipboard.io/18P5uZ.jpg https://snipboard.io/MpzJnC.jpg Where this file comes from? this causes the app break. This happens on all pages, when i try clear cache using php spark cache:clear ...
200 Views
2 Replies
06-12-2024, 02:53 AM
warcooft
    Thread: localize databases with working searching and ordering?
Post: RE: localize databases with working searching and ...

You have to specify what colors can be queried into the table, then the results in view must be translated according to user preferences.
574 Views
12 Replies
06-10-2024, 05:40 AM
warcooft
    Thread: Should relationships be set in the DB or rely on code?
Post: RE: Should relationships be set in the DB or rely ...

It is recommended to add relationships to each related table so that when deleting data or updating data it will automatically trigger the child table. If without this relationship it is very troubles...
265 Views
3 Replies
06-10-2024, 05:23 AM
warcooft
    Thread: v4.5.2 bug fix
Post: RE: v4.5.2 bug fix

Many thanks! to all development team for your great work.
1,224 Views
5 Replies
06-10-2024, 05:05 AM
warcooft
    Thread: Login issue on huge traffic
Post: RE: Login issue on huge traffic

I have experienced something similar, the problem is usually the system cannot write the session file causing the user to always be redirected to the login page even though the credentials are valid
678 Views
5 Replies
06-06-2024, 08:57 PM
warcooft
    Thread: How to create forgot password API using shiled with codeIgnitor 4
Post: RE: How to create forgot password API using shiled...

So far, Shield does not provide a password reset feature, but you can use Magic Link as an alternative with a similar function, then users can change the password after logging in. See https://shield...
274 Views
2 Replies
06-06-2024, 02:32 AM
warcooft
    Thread: array_column does not work with Entity
Post: RE: array_column does not work with Entity

Thanks @"kenjis"
728 Views
11 Replies
06-05-2024, 02:53 AM
warcooft
    Thread: array_column does not work with Entity
Post: RE: array_column does not work with Entity

Try with this migration, this only happens if the primary key is not an id as in general, then create 1 dummy data and run query builder method llike model(NotificationSettingModel::class)->find([1,2]...
728 Views
11 Replies
06-05-2024, 12:22 AM
warcooft
    Thread: array_column does not work with Entity
Post: RE: array_column does not work with Entity

Looks like this is a bug: Different behavior between models with primary key ID and not ID or something else when using find() method. https://snipboard.io/PvtOaA.jpg https://snipboard.io/pPVEBu....
728 Views
11 Replies
06-04-2024, 10:24 PM
warcooft
    Thread: array_column does not work with Entity
Post: RE: array_column does not work with Entity

kenjis Wrote: (06-04-2024, 07:39 PM) -- > in aboove repository it was also clear that the NotificationSettingModel model returned an Entity class then used with array_column() function. No, no. It r...
728 Views
11 Replies
06-04-2024, 08:29 PM
warcooft
    Thread: array_column does not work with Entity
Post: RE: array_column does not work with Entity

kenjis Wrote: (06-04-2024, 05:48 PM) -- warcooft Wrote: (06-03-2024, 10:36 PM) -- after running it, i got an error like this:   Code: -- array_column(): Argument #1 ($array) must be of type array, ...
728 Views
11 Replies
06-04-2024, 07:27 PM
warcooft
    Thread: array_column does not work with Entity
Post: RE: array_column does not work with Entity

ozornick Wrote: (06-04-2024, 07:22 AM) -- In top file strict_types=1 ? -- I didn't do that
728 Views
11 Replies
06-04-2024, 12:28 PM
warcooft

Theme © iAndrew 2016 - Forum software by © MyBB