Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: CI4 Generate Empty String On Query Binding Value On "FALSE" value
Post: RE: CI4 Generate Empty String On Query Binding Val...

craig Wrote: (04-12-2021, 07:33 AM) -- 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 all...
5,655 Views
10 Replies
04-12-2021, 07:56 PM
simonickalexs
    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.
5,655 Views
10 Replies
04-12-2021, 03:18 AM
simonickalexs
    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/Conf...
3,891 Views
4 Replies
04-01-2021, 03:20 AM
simonickalexs
    Thread: Custom CLI Return "Cannot declare class name in use"
Post: RE: Custom CLI Return "Cannot declare class name i...

[email protected] Wrote: (03-31-2021, 02:54 PM) -- Assuming your app/config/Autoload.php contains this entry: 'Someone\plugins' => ROOTPATH . 'someone/plugins' Then the namespace in your ...
3,891 Views
4 Replies
03-31-2021, 06:51 PM
simonickalexs
    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...
3,891 Views
4 Replies
03-31-2021, 08:28 AM
simonickalexs
    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...

IvanBell Wrote: (03-06-2021, 08:53 AM) -- Shouldn't it be $routes instead of $rotues? -- Ah I have typo inserted in the post, but in my code is $routes  Thank you [hr] iRedds Wrote: (03-06-2021, 08...
2,010 Views
4 Replies
03-07-2021, 06:28 PM
simonickalexs
    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->post('/', 'Home::new', ['filt...
2,010 Views
4 Replies
03-06-2021, 03:34 AM
simonickalexs
    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 { listen 127.0...
906 Views
0 Replies
02-27-2021, 07:23 AM
simonickalexs
    Thread: CI4 Generate Empty String On Query Binding Value On "FALSE" value
Post: RE: CI4 Generate Empty String On Query Binding Val...

kenjis Wrote: (02-03-2021, 04:54 PM) -- 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 vi...
5,655 Views
10 Replies
02-03-2021, 08:05 PM
simonickalexs
    Thread: CI4 Generate Empty String On Query Binding Value On "FALSE" value
Post: RE: CI4 Generate Empty String On Query Binding Val...

kenjis Wrote: (02-02-2021, 04:39 PM) -- 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....
5,655 Views
10 Replies
02-03-2021, 10:27 AM
simonickalexs
    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' => false]); -- But ...
5,655 Views
10 Replies
02-02-2021, 04:14 AM
simonickalexs
    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,...
1,749 Views
1 Replies
01-07-2021, 01:43 AM
simonickalexs
    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.
6,164 Views
6 Replies
06-03-2020, 11:35 AM
simonickalexs
    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: --
4,154 Views
4 Replies
12-01-2019, 09:16 PM
simonickalexs
    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 there's...
4,154 Views
4 Replies
12-01-2019, 10:20 AM
simonickalexs

Theme © iAndrew 2016 - Forum software by © MyBB