Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Helpers not working after moving from Xampp to Linux server
Post: RE: Helpers not working after moving from Xampp to...

kenjis Wrote: (12-27-2022, 10:45 PM) -- Check the filename. Is all characters are lowercase like array_helper.php ? -- Looks like that was the issue - thanks!  It's weird - some of the examples I s...
856 Views
3 Replies
12-27-2022, 10:59 PM
bassmandc
    Thread: Helpers not working after moving from Xampp to Linux server
Post: Helpers not working after moving from Xampp to Lin...

I've moved my first CI4 project from Xampp to my Linux server tonight.  I followed the directory structure from the configuration documentation (where everything except the contents of the "/public" f...
856 Views
3 Replies
12-27-2022, 10:38 PM
bassmandc
    Thread: Call to model returning boolean instead of array
Post: RE: Call to model returning boolean instead of arr...

Thanks a bunch for the solution.  I'm a dummy - I just realized the difference between where I was getting the boolean was that I assigned it to a variable in this one, where I simply ran the function...
514 Views
2 Replies
12-19-2022, 08:19 PM
bassmandc
    Thread: Call to model returning boolean instead of array
Post: Call to model returning boolean instead of array

I have four tables that each have a virtually identical model.  Three of them work perfectly, but one returns boolean instead of an array of results.  I'm racking my brain trying to figure this out.  ...
514 Views
2 Replies
12-19-2022, 04:28 PM
bassmandc
    Thread: Trying to make recursive function : no data return
Post: RE: Trying to make recursive function : no data re...

Go ahead and restore the "array()" definition in your call then.  Here's my next suggestion: In your Controller, change the line: Code: -- $testsMdl = model('testsModel'); -- to either:  ...
2,576 Views
9 Replies
12-19-2022, 08:42 AM
bassmandc
    Thread: Different error messages for multiple "required_with" fields?
Post: RE: Different error messages for multiple "require...

I went ahead and just created custom validation rules (and error messages) instead of using the built-in "required_with" rule to achieve this.
559 Views
1 Replies
12-11-2022, 10:27 PM
bassmandc
    Thread: Trying to make recursive function : no data return
Post: RE: Trying to make recursive function : no data re...

If you're able to verify that $data is populated with the right data before it hits the return function, then I don't think it's the return function that isn't working.  I think the problem lies with ...
2,576 Views
9 Replies
12-10-2022, 08:47 PM
bassmandc
    Thread: Different error messages for multiple "required_with" fields?
Post: Different error messages for multiple "required_wi...

I'm using "required_with" validation on a project with multiple fields.  As per documentation, it's implemented like this: required_with[field1,field2] Is it possible to have a different error m...
559 Views
1 Replies
12-10-2022, 11:42 AM
bassmandc
    Thread: Binary option for array_sort_by_multiple_keys?
Post: RE: Binary option for array_sort_by_multiple_keys?

Yes Kenjis - I meant array_sort_by_multiple_keys - bad copy and paste on my part.  I've corrected it.  Thanks for the reply - I'll try it out!
901 Views
2 Replies
11-27-2022, 11:21 PM
bassmandc
    Thread: Binary option for array_sort_by_multiple_keys?
Post: Binary option for array_sort_by_multiple_keys?

I'm using the array_sort_by_multiple_keys function and finding that capital letters take order precedence over lowercase letters.  For example, "AZ Systems" comes before "Abracadabra," despite "Z" bei...
901 Views
2 Replies
11-27-2022, 07:49 PM
bassmandc
    Thread: A different approach to "trim," and a question about project templates
Post: A different approach to "trim," and a question abo...

Hi all.  This is my first post, and I'm assuming that in Lounge it's okay to touch on two related topics in one post.  If I'm wrong, kindly correct me and I'll kindly modify as needed. I've seen a lo...
489 Views
0 Replies
11-21-2022, 09:06 PM
bassmandc

Theme © iAndrew 2016 - Forum software by © MyBB