Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: CI4 Generate Empty String On Query Binding Value On "FALSE" value
Post: RE: CI4 Generate Empty String On Query Binding Val...

(Yesterday, 07:33 AM)craig Wrote: If your datatype is an integer, you need to use an integer in your code. Not true, not false, not null. I also have a varchar (and other things), which allow NULL o...
simonickalexs CodeIgniter 4 Support 10 646 Yesterday, 07:56 PM
    Thread: CI4 Generate Empty String On Query Binding Value On "FALSE" value
Post: RE: CI4 Generate Empty String On Query Binding Val...

Now it's not just on false, but with `NULL` value. Idk how to handle this I'm so frustrated.
simonickalexs CodeIgniter 4 Support 10 646 Yesterday, 03:18 AM
    Thread: Custom CLI Return "Cannot declare class name in use"
Post: RE: Custom CLI Return "Cannot declare class name i...

I found the problem, previously I add the someone\plugins namespace on composer.json manually, look like this .... "autoload": { "psr-4": { "App\\": "app", "Config\\": "app/Config", ...
simonickalexs CodeIgniter 4 Support 4 331 04-01-2021, 03:20 AM
    Thread: Custom CLI Return "Cannot declare class name in use"
Post: RE: Custom CLI Return "Cannot declare class name i...

(03-31-2021, 02:54 PM)[email protected] Wrote: Assuming your app/config/Autoload.php contains this entry: 'Someone\plugins' => ROOTPATH . 'someone/plugins' Then the namespace in your ...
simonickalexs CodeIgniter 4 Support 4 331 03-31-2021, 06:51 PM
    Thread: Custom CLI Return "Cannot declare class name in use"
Post: Custom CLI Return "Cannot declare class name in us...

I'm trying to test to make my own CLI command on my own library but it throw error cannot declare `someone\plugin\Commands` because the class name is already in use. Here's the source code. PHP Code:...
simonickalexs CodeIgniter 4 Support 4 331 03-31-2021, 08:28 AM
    Thread: How To Add Filter On Specified HTTP Method and Controller in Routes.php?
Post: RE: How To Add Filter On Specified HTTP Method and...

(03-06-2021, 08:53 AM)IvanBell Wrote: Shouldn't it be $routes instead of $rotues? Ah I have typo inserted in the post, but in my code is $routes  Thank you (03-06-2021, 08:35 AM)iRedds...
simonickalexs CodeIgniter 4 Support 4 406 03-07-2021, 06:28 PM
    Thread: How To Add Filter On Specified HTTP Method and Controller in Routes.php?
Post: How To Add Filter On Specified HTTP Method and Con...

What I've tried to achieve is add filter on specified http method and controller. Like: PHP Code:$rotues->get('/', 'Home::index', ['filter' => 'user']);$rotues->p...
simonickalexs CodeIgniter 4 Support 4 406 03-06-2021, 03:34 AM
    Thread: How to make both Nuxtjs and CI4 works with NGINX under the same domain?
Post: How to make both Nuxtjs and CI4 works with NGINX u...

So, what I need is like: - example.test #this is the nuxt app - example.test/api #this is the ci4 app This is my current configuration (I'm using wamp.net on windows) Code:server {    ...
simonickalexs CodeIgniter 4 Support 0 160 02-27-2021, 07:23 AM
    Thread: CI4 Generate Empty String On Query Binding Value On "FALSE" value
Post: RE: CI4 Generate Empty String On Query Binding Val...

(02-03-2021, 04:54 PM)kenjis Wrote: What value was inserted in 4.0.4? true --> 1? false --> 0? Find out where converts bool to int in 4.0.4. And investigate what's changed in 4.1. In that vid...
simonickalexs CodeIgniter 4 Support 10 646 02-03-2021, 08:05 PM
    Thread: CI4 Generate Empty String On Query Binding Value On "FALSE" value
Post: RE: CI4 Generate Empty String On Query Binding Val...

(02-02-2021, 04:39 PM)kenjis Wrote: It seems the column `ispartial` type is integer. So you can't set false to it. It's TINYINT which mysql usually used for boolean type. But, in version 4.0.4 below...
simonickalexs CodeIgniter 4 Support 10 646 02-03-2021, 10:27 AM
    Thread: CI4 Generate Empty String On Query Binding Value On "FALSE" value
Post: CI4 Generate Empty String On Query Binding Value O...

So, I was updating the version from 4.0.4 to 4.1.0 (and after it to 4.1.1 to see the same bug). But, I have this code: PHP Code:$this->model->update(intval($id), ['ispartial' =...
simonickalexs CodeIgniter 4 Support 10 646 02-02-2021, 04:14 AM
    Thread: How To Generate Pagination Links With REST API?
Post: How To Generate Pagination Links With REST API?

Any idea how to make that happen? Like: Code:[ "data": "..........", "first": "link-of-first-result", "previous": "link-of-previous-result", "next": "link-of-next-result", "total": 20, "last": "...
simonickalexs CodeIgniter 4 Support 1 354 01-07-2021, 01:43 AM
    Thread: (:any) Route Placeholder Not Working?
Post: RE: (:any) Route Placeholder Not Working?

Doesn't work on me. It always return "Can't find a route for". I still can't figure it out.
simonickalexs CodeIgniter 4 Support 6 2,129 06-03-2020, 11:35 AM
    Thread: Alternative $this->config>set_item($item, $value)
Post: RE: Alternative $this->config>set_item($item, $val...

Thanks for the reply. It seems that it didn't work to push array to my public $item = [...];. Here's my code: app\config\Packages PHP Code:<?php namespace Config;use CodeIgniter...
simonickalexs CodeIgniter 4 Support 4 1,583 12-01-2019, 09:16 PM
    Thread: Alternative $this->config>set_item($item, $value)
Post: Alternative $this->config>set_item($item, $value)

I notice that this function is not in CI4. But, I need this function to dynamically inject (temporary) array string to public $item = [] from \Config\App.php. Is there any alternative or maybe the...
simonickalexs CodeIgniter 4 Support 4 1,583 12-01-2019, 10:20 AM

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.