Welcome Guest, Not a member yet? Register   Sign In
Search Results
    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...
158 Views
10 Replies
Today, 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: --      ...
158 Views
10 Replies
Today, 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...
158 Views
10 Replies
Today, 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
158 Views
10 Replies
Yesterday, 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...
147 Views
5 Replies
Yesterday, 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
533 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...
237 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)
533 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
533 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 ...
237 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. ...
237 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
147 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.
105 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...
533 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...
533 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
533 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()     {    ...
190 Views
5 Replies
05-08-2024, 11:44 PM
ozornick
    Thread: CI NEEDS A PROPER DOCUMENTATION
Post: RE: CI NEEDS A PROPER DOCUMENTATION

What can be added to the documentation? It is described quite well.  Everything else depends on the developer.   It's like a knife for a cook  :)
363 Views
9 Replies
05-08-2024, 11:27 PM
ozornick
    Thread: CI NEEDS A PROPER DOCUMENTATION
Post: RE: CI NEEDS A PROPER DOCUMENTATION

Very interesting, but not at all clear ;)
363 Views
9 Replies
05-08-2024, 12:59 AM
ozornick
    Thread: Gateway time out CI 4.4.1
Post: RE: Gateway time out CI 4.4.1

After a clean installation, does the default page work?  How do you run the server? spark serve or via apache2?
190 Views
5 Replies
05-08-2024, 12:53 AM
ozornick

Theme © iAndrew 2016 - Forum software by © MyBB