Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: The getRandomName() function return wrong file Extension
Post: RE: The getRandomName() function return wrong file...

What do you get when you var_dump($imageFile) ?
265 Views
4 Replies
09-23-2023, 07:38 AM
sammyskills
    Thread: v4.4.1 hot fix released!
Post: RE: v4.4.1 hot fix released!

donpwinston Wrote: (09-21-2023, 06:06 AM) -- Someone forgot to update the Installation section in the CodeIgniter manual with the 4.4.1 release. -- Thank you for reporting. I sent a PR https://githu...
1,057 Views
6 Replies
09-21-2023, 02:32 PM
sammyskills
    Thread: Problem with filters
Post: RE: Problem with filters

Check the filters using your terminal: Code: -- php spark filter:check get / -- See https://codeigniter4.github.io/CodeIgniter4/incoming/filters.html#confirming-filters
136 Views
1 Replies
09-14-2023, 11:16 PM
sammyskills
    Thread: restrict query in callback
Post: RE: restrict query in callback

You can try Conditional Statements (https://codeigniter4.github.io/CodeIgniter4/database/query_builder.html#conditional-statements).
143 Views
3 Replies
09-12-2023, 06:53 AM
sammyskills
    Thread: can you explain why have to add ""array" in loop array session codeigniter 4.4.1 ?
Post: RE: can you explain why have to add ""array" in lo...

From the code in your controller, there is no "product" key in the session, so it won't work. If you want to access the values in the session, you will need to use the $product variable in your view, ...
257 Views
5 Replies
09-11-2023, 02:45 AM
sammyskills
    Thread: set_value() is working but set_select() not working
Post: RE: set_value() is working but set_select() not wo...

Put this in your controller, and echo it in your view: PHP Code: -- $oldSelect = $this->request->getOldInput('doc_type_id'); --
466 Views
13 Replies
09-08-2023, 12:34 AM
sammyskills
    Thread: set_value() is working but set_select() not working
Post: RE: set_value() is working but set_select() not wo...

sknair143 Wrote: (09-08-2023, 12:07 AM) -- If i use fill() method, how i can process the uploaded doc file ? -- Oh, I didn't notice that you used the getFile() method. Which brings me to wonder how...
466 Views
13 Replies
09-08-2023, 12:16 AM
sammyskills
    Thread: set_value() is working but set_select() not working
Post: RE: set_value() is working but set_select() not wo...

If the value is null, then that means that it is not being sent in the first place. Try adding this in your controller, before the checks, to see what your form sends: PHP Code: -- dd($this->req...
466 Views
13 Replies
09-08-2023, 12:13 AM
sammyskills
    Thread: set_value() is working but set_select() not working
Post: RE: set_value() is working but set_select() not wo...

Can you confirm by adding the code below, somewhere in your code, and run the validation again? PHP Code: -- -- Just to confirm that the value is returned to the form if validation fails. [...
466 Views
13 Replies
09-07-2023, 11:56 PM
sammyskills
    Thread: filter except not working
Post: RE: filter except not working

hinditutorpoint Wrote: (09-07-2023, 09:21 AM) -- +--------+------------------------------------------+------------------------------------------------+-------------------------------------+ | Method...
242 Views
5 Replies
09-07-2023, 01:09 PM
sammyskills
    Thread: filter except not working
Post: RE: filter except not working

Type this in your terminal and paste the result here: Code: -- php spark filter:check post administrator/school/registration/remove --
242 Views
5 Replies
09-07-2023, 09:14 AM
sammyskills
    Thread: set_value() is working but set_select() not working
Post: RE: set_value() is working but set_select() not wo...

What exactly are you trying to achieve? And why not show your controller code also?
466 Views
13 Replies
09-07-2023, 08:11 AM
sammyskills
    Thread: filter except not working
Post: RE: filter except not working

What exactly is the issue you are facing? Maybe you need to take a look at the docs (https://codeigniter4.github.io/CodeIgniter4/incoming/filters.html#except-for-a-few-uris) again.
242 Views
5 Replies
09-07-2023, 08:08 AM
sammyskills
    Thread: Handling Multiple input with same field name as array. and show valdiation error
Post: RE: Handling Multiple input with same field name a...

See Setting Rules for Array Data (https://codeigniter4.github.io/CodeIgniter4/libraries/validation.html#setting-rules-for-array-data).
250 Views
7 Replies
09-06-2023, 06:44 AM
sammyskills
    Thread: Handling Multiple input with same field name as array. and show valdiation error
Post: RE: Handling Multiple input with same field name a...

1. Are you validating in both the model and controller? 2. Within your controller, you do not need to load the validation library again. It is already available in controllers using $this->validate...
250 Views
7 Replies
09-06-2023, 05:46 AM
sammyskills
    Thread: Handling Multiple input with same field name as array. and show valdiation error
Post: RE: Handling Multiple input with same field name a...

With the code you have, if you print_r or var_dump the errors session variable, you should able to get the "index" associated with the error message. So, your error message display should look somethi...
250 Views
7 Replies
09-06-2023, 05:38 AM
sammyskills
    Thread: How to set old() to the dropdown menu ?
Post: RE: How to set old() to the dropdown menu ?

You need to add the value to check for after the field name, like so: PHP Code: --
232 Views
4 Replies
09-05-2023, 12:23 AM
sammyskills
    Thread: How to set old() to the dropdown menu ?
Post: RE: How to set old() to the dropdown menu ?

You will need to use the set_select() form helper. See docs (https://codeigniter4.github.io/CodeIgniter4/helpers/form_helper.html#set_select) PS: If you are using any of the form_open() helpers (form...
232 Views
4 Replies
09-04-2023, 11:27 PM
sammyskills
    Thread: mysqli multi_query
Post: RE: mysqli multi_query

You can use Custom Function Calls. See docs (https://codeigniter4.github.io/CodeIgniter4/database/call_function.html).
170 Views
2 Replies
08-29-2023, 02:02 AM
sammyskills
    Thread: Hey Now it is a time for CI Team to prepare and write a CI 4+ Tutorial Book
Post: RE: Hey Now it is a time for CI Team to prepare an...

kilishan Wrote: (08-25-2023, 09:12 PM) -- That's very similar to a personal project I had started in the past. No official forums, all of the organization happened via tags.That does require other th...
3,254 Views
22 Replies
08-25-2023, 11:05 PM
sammyskills

Theme © iAndrew 2016 - Forum software by © MyBB