Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Set a $_GET value
Post: RE: Set a $_GET value

Why change the GET parameter in the process? It is better to manipulate the variable $foo = $_GET[foo] That's right, Request knows nothing about the new Get, Post data because the object is created o...
22 Views
1 Replies
1 hour ago
ozornick
    Thread: Call multiple function in callback Models
Post: RE: Call multiple function in callback Models

What did you do in the first event? If you have completed the request, most likely the data will be reset
155 Views
6 Replies
10 hours ago
ozornick
    Thread: Call multiple function in callback Models
Post: RE: Call multiple function in callback Models

What happens if you try it? Also, the type is specified as an array
155 Views
6 Replies
11 hours ago
ozornick
    Thread: how to use set_select on a form to show the old value?
Post: RE: how to use set_select on a form to show the ol...

You have values as "pending option confirmed"  Where is the "request" from? The code is working, the error is somewhere in your data Quote: -- No, html output has not changed, the default value...
303 Views
13 Replies
Yesterday, 01:00 AM
ozornick
    Thread: how to use set_select on a form to show the old value?
Post: RE: how to use set_select on a form to show the ol...

HTML before output: Code: --                                     One                     Two                     Three                                 Send -- HTML after output: Code: --      ...
303 Views
13 Replies
Yesterday, 12:31 AM
ozornick
    Thread: how to use set_select on a form to show the old value?
Post: RE: how to use set_select on a form to show the ol...

No. You're looking at the wrong place. I pointed to "form_dropdown" so you don't need to write the yourself Inside, he will choose the current "selected" himself. Second, no, you don't need to write...
303 Views
13 Replies
Yesterday, 12:24 AM
ozornick
    Thread: how to use set_select on a form to show the old value?
Post: RE: how to use set_select on a form to show the ol...

https://codeigniter.com/user_guide/helpers/form_helper.html#form_dropdown option must contain "selected=selected". Learn HTML syntax
303 Views
13 Replies
05-13-2024, 03:50 PM
ozornick
    Thread: Validation error messages keep being loaded from system
Post: RE: Validation error messages keep being loaded fr...

I don't understand what the reason is. All right. In such difficult cases, I perform the debug of the system files. Let's say you need to track where the language is being reset. Try dd(...) variabl...
154 Views
5 Replies
05-13-2024, 07:18 AM
ozornick
    Thread: Insert in joint table before inserting in another one
Post: RE: Insert in joint table before inserting in anot...

This thread https://forum.codeigniter.com/showthread.php?tid=88593
550 Views
13 Replies
05-12-2024, 10:29 PM
ozornick
    Thread: Converting a CI3 Project to CI4.5.1
Post: RE: Converting a CI3 Project to CI4.5.1

Sorry, are you too lazy for documentation? :)  There are instructions for updating. I can't guarantee that everything is described, it's a big step. https://codeigniter4.github.io/userguide/installati...
240 Views
7 Replies
05-12-2024, 10:19 PM
ozornick
    Thread: Insert in joint table before inserting in another one
Post: RE: Insert in joint table before inserting in anot...

Return type in service for "create" must ?Client. Entity, not ?Clients (service)
550 Views
13 Replies
05-11-2024, 09:57 AM
ozornick
    Thread: Insert in joint table before inserting in another one
Post: RE: Insert in joint table before inserting in anot...

See example https://github.com/neznaika0/codeigniter-expenses/blob/main/app/Services/Expenses.php Inside you can add additional logic
550 Views
13 Replies
05-10-2024, 10:47 PM
ozornick
    Thread: Converting a CI3 Project to CI4.5.1
Post: RE: Converting a CI3 Project to CI4.5.1

Basically, the framework is not linked to new directories. Everything you want to know is described in the documentation.  But by default, everything is configured for folders that have already been ...
240 Views
7 Replies
05-10-2024, 10:38 PM
ozornick
    Thread: Converting a CI3 Project to CI4.5.1
Post: RE: Coverting a CI3 Project to CI4.5.1

1. You can create any directory for new files. The main thing is to initialize them correctly in the code. 2. 3. Add general parameters to the BaseController or create your own extension based on it. ...
240 Views
7 Replies
05-10-2024, 08:54 PM
ozornick
    Thread: Validation error messages keep being loaded from system
Post: RE: Validation error messages keep being loaded fr...

Check locale in Request? dd(request()); in Controller. You may be overwriting the locale in the filter
154 Views
5 Replies
05-10-2024, 09:13 AM
ozornick
    Thread: CodeIgniter4 - How i can add extra 3 fields to a created table using Migration ?
Post: RE: CodeIgniter4 - How i can add extra 3 fields to...

You can update the migration and delete the old table and record in "migration" table. Or php spark migrate:refresh  Add SQL to ALTER TABLE and execute it.
108 Views
2 Replies
05-10-2024, 09:10 AM
ozornick
    Thread: Insert in joint table before inserting in another one
Post: RE: Insert in joint table before inserting in anot...

heh. You're not listening to me. You can try any method. But you ask again how to do it. So that's what you want - create an event, no problem. The only difference is who performs the action - the mo...
550 Views
13 Replies
05-10-2024, 12:11 AM
ozornick
    Thread: Insert in joint table before inserting in another one
Post: RE: Insert in joint table before inserting in anot...

No. You need to create a separate layer - BookingManager. You can already create a client in it and return boolean or data. PHP Code: -- $service = new BookingManager(); $result = $service->creat...
550 Views
13 Replies
05-09-2024, 09:28 AM
ozornick
    Thread: Insert in joint table before inserting in another one
Post: RE: Insert in joint table before inserting in anot...

You do as you wish. First you need to create a client, but what data will you fill in? Out of shape? The main thing is not to forget to delete the client if the record could not be created
550 Views
13 Replies
05-09-2024, 06:48 AM
ozornick
    Thread: Gateway time out CI 4.4.1
Post: RE: Gateway time out CI 4.4.1

Start with a simple one.  Comment out the routes except for one + SQL call code and show an empty template. Then uncomment the requests. PHP Code: --     public function admin_rutinas()     {    ...
191 Views
5 Replies
05-08-2024, 11:44 PM
ozornick

Theme © iAndrew 2016 - Forum software by © MyBB