Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Help needed for CI v3
Post: RE: Help needed for CI v3

Was the CI3 user guide removed from codeigniter.com? Curious as to the meeting of the minds that took place over that decision. ?
51,956 Views
26 Replies
03-17-2021, 11:51 PM
SomeGuy
    Thread: Codeigniter blog application: replace post id with slug in the singe post url only
Post: RE: Codeigniter blog application: replace post id ...

Rewrite whatever routine looks for an id to also look for a slug. If is_numeric = id...
5,162 Views
1 Replies
04-17-2019, 02:54 PM
SomeGuy
    Thread: Permissions validation in model? (object belongs to user)
Post: RE: Permissions validation in model? (object belon...

IMO... Model should only validate data when needed. Meaning, create, edit, delete, restore. Controller should validate, in a basic way, data the *view form* needs. Seems like a small difference, bu...
3,819 Views
2 Replies
03-29-2019, 11:31 PM
SomeGuy
    Thread: login prompt bypassed
Post: RE: login prompt bypassed

1. Create a Base controller, MY_Controller, that extends CI_Controller; 2. Create Admin_controller that extends MY_Controller; 3. Create the method Admin_controller::isLoggedIn() and add appropriate...
3,981 Views
2 Replies
03-29-2019, 10:43 PM
SomeGuy
    Thread: getting file not found
Post: RE: getting file not found

Hopefully you've solved this already, but just for reference... https://stackoverflow.com/questions/23956325/is-it-required-to-include-the-namespace-file Simply using a namespace does not includ...
2,667 Views
3 Replies
09-24-2018, 09:41 AM
SomeGuy
    Thread: calling a stored procedure with sqlsrv vs mssql driver needs "EXEC " prefix
Post: RE: calling a stored procedure with sqlsrv vs mssq...

Seems like it would be better practice to extend the db driver to standardize the calling of stored procs. Reference: https://forum.codeigniter.com/thread-68512-post-345512.html#pid345512 (https://fo...
3,722 Views
1 Replies
06-09-2018, 02:00 PM
SomeGuy
    Thread: parser loop problem
Post: RE: parser loop problem

Hoping you figured it out... but, without ever having used this templating engine, you're attempting to output blog_heading while you're looping over blog_entries... Code: -- {blog_heading} {bl...
3,944 Views
4 Replies
04-06-2018, 12:34 AM
SomeGuy
    Thread: What is better when return false
Post: RE: What is better when return false

Hope you decided to return NULL. Returning an empty array when there are no results is not the same as returning an array with known keys. You'll have to validate the array before you can actually us...
8,273 Views
6 Replies
04-06-2018, 12:29 AM
SomeGuy
    Thread: Number Sorting
Post: RE: Number Sorting

Sounds like the appropriate solution is to: 1. Write a method for each sort (so it can be called on PHP page build AND via JS XHR [code duplication = bad]); 2. Build the form as you have to refresh ...
4,126 Views
3 Replies
04-06-2018, 12:08 AM
SomeGuy
    Thread: [split] Routes naming request
Post: RE: [split] Routes naming request

DuoS Wrote: (09-25-2017, 09:19 PM) -- Could you please introduce routes naming feature for Codeigniter? If we have that feature we dont have to go through all the view files and change routes names...
7,193 Views
6 Replies
12-01-2017, 11:33 AM
SomeGuy
    Thread: PHP 7.2 released
Post: RE: PHP 7.2 released

Upgraded my XAMPP install to use 7.2 last night. No issues with CI3.1.6 so far.
85,295 Views
36 Replies
12-01-2017, 11:15 AM
SomeGuy
    Thread: Avoid conflict between column names ?
Post: RE: Avoid conflict between column names ?

PaulD Wrote: (11-08-2017, 11:43 AM) -- That actually is a really interesting idea. I will have a closer look at it on the next build I do, thankyou. Paul -- Made the example a little more robust...
18,827 Views
10 Replies
11-09-2017, 10:14 AM
SomeGuy
    Thread: Avoid conflict between column names ?
Post: RE: Avoid conflict between column names ?

Coool6 Wrote: (11-07-2017, 02:00 AM) -- I just saw in the documentation that CI has dbprefix() https://www.codeigniter.com/user_guide/database/queries.html#working-with-database-prefixes-manually ...
18,827 Views
10 Replies
11-08-2017, 08:49 AM
SomeGuy
    Thread: Avoid conflict between column names ?
Post: RE: Avoid conflict between column names ?

PaulD Wrote: (11-07-2017, 02:59 PM) -- In my tables I have for example a recipes table: recipe_id, recipe_name and in an ingredients table: ingredient_id, ingredient_name. Just be careful not to use ...
18,827 Views
10 Replies
11-07-2017, 08:16 PM
SomeGuy
    Thread: Broken html email?
Post: RE: Broken html email?

I've never used mailtrap. The solution, at least in my case, was simple once diagnosed. It's seemingly an issue with PHP's (v5.6 I think) implementation of quoted_printable_encode(), assuming that my ...
6,573 Views
5 Replies
11-05-2017, 02:32 PM
SomeGuy
    Thread: Broken html email?
Post: RE: Broken html email?

I appreciate the "It works for me" suggestions - however, it's not all that helpful when it clearly doesn't work for me when specifying \r\n in the config file. Thanks though?
6,573 Views
5 Replies
11-05-2017, 10:04 AM
SomeGuy
    Thread: Broken html email?
Post: RE: Broken html email?

Figured out why it's breaking, not the fix. /application/config/email.php PHP Code: --
6,573 Views
5 Replies
11-05-2017, 07:50 AM
SomeGuy
    Thread: Broken html email?
Post: Broken html email?

Not sure when it broke... but i haven't been able to send an html email in some time. The email comes through as blank. Subject line reads ok. Text only email works fine. HTML fails. Thoughts? Than...
6,573 Views
5 Replies
11-04-2017, 05:10 PM
SomeGuy
    Thread: [split] Error handling ( CodeIgniter 3.1.1 Released)
Post: RE: [split] Error handling ( CodeIgniter 3.1.1 Rel...

As I'm sure you'll hear... you're 100% welcome to implement any/all of these suggestions yourself. If you do, be sure to share.
2,664 Views
1 Replies
10-27-2016, 11:14 AM
SomeGuy
    Thread: CI 3.1.1 Session not kept
Post: RE: CI 3.1.1 Session not kept

Ah ok, good to know. Now I'm just wasting space in my db ;)
7,871 Views
5 Replies
10-27-2016, 11:12 AM
SomeGuy

Theme © iAndrew 2016 - Forum software by © MyBB