Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Using Preloaded Model Via BaseController in Other Controllers
Post: RE: Using Preloaded Model Via BaseController in Ot...

@"InsiteFX", @"includebeer" Thank you for your replies and help.  I think I will split the difference in what I will implement. In my BaseController, I will obtain the current url as an object i...
8,335 Views
7 Replies
10-13-2021, 12:58 AM
Mr Lister
    Thread: Using Preloaded Model Via BaseController in Other Controllers
Post: RE: Using Preloaded Model Via BaseController in Ot...

@"includebeer" My idea is to have a shared model, (the 'base layout markup'), which will set up the layout view and the renderSection() content is obtained via the specific controller. When using t...
8,335 Views
7 Replies
10-11-2021, 03:09 PM
Mr Lister
    Thread: Using Preloaded Model Via BaseController in Other Controllers
Post: RE: Using Preloaded Model Via BaseController in Ot...

Hi, more code. The intent is to have a model for each controller if really need specific data for that page. The base layout view will be driven by the 'base layout markup' model, where the 'con...
8,335 Views
7 Replies
10-10-2021, 11:43 PM
Mr Lister
    Thread: Using Preloaded Model Via BaseController in Other Controllers
Post: Using Preloaded Model Via BaseController in Other ...

Hi Everyone, I am trying to use and/or extend a model which is loaded in the BaseController's initController() function which uses the RequestInterface. I was using the below to set a variable i...
8,335 Views
7 Replies
10-09-2021, 11:31 PM
Mr Lister
    Thread: Location and Name of CI v4 .env File
Post: RE: Location and Name of CI v4 .env File

Thanks for your replies.  I am on Windows. @captain-sensible - I like the set-up for your localhost dev.  Moving that same directory structure, (e.g., what is inside the 'basic' directory), to a (p...
4,192 Views
4 Replies
11-12-2020, 03:54 AM
Mr Lister
    Thread: Location and Name of CI v4 .env File
Post: Location and Name of CI v4 .env File

Hi Everyone, I am diving into CI v4 after using CI v3 and v2.  Learning and liking it the more I use it.  Keep up the great work CI dev team. I am using XAMPP with virtual hosts for local develo...
4,192 Views
4 Replies
11-10-2020, 09:33 PM
Mr Lister
    Thread: Cookies Misusing the Recommended “sameSite“ Attribute
Post: RE: Cookies Misusing the Recommended “sameSite“ At...

Thanks for the replies and link. @InsiteFX I had a read of the link and set the flags in Chrome, (v 81), and the site is functioning correctly. Additionally, I updated the config to send the cook...
12,714 Views
3 Replies
05-15-2020, 05:43 PM
Mr Lister
    Thread: Cookies Misusing the Recommended “sameSite“ Attribute
Post: Cookies Misusing the Recommended “sameSite“ Attrib...

Hi Everyone, I am looking after a site, (sadly based upon), CI v2.1.0.   :( I have just noticed in Firefox's console the following: "Some cookies are misusing the recommended “sameSite“ attribut...
12,714 Views
3 Replies
05-14-2020, 05:44 PM
Mr Lister
    Thread: Special characters issue
Post: RE: Special characters issue

How are you passing the form data? Once upon a time, for simple database queries based on only one value, I would append the variable to an Ajax $_GET URL. Thus /controller/method/$variable would ...
3,395 Views
4 Replies
11-27-2019, 02:42 PM
Mr Lister
    Thread: Email Not Received Outside of Website Domain
Post: RE: Email Not Received Outside of Website Domain

Hi Guys, I have tried with and without SSL, and the ports recommended by the host.  Still nothing received outside the server. @InsiteFX: I extended the email library class with the code change...
4,282 Views
3 Replies
09-28-2019, 05:15 AM
Mr Lister
    Thread: Email Not Received Outside of Website Domain
Post: Email Not Received Outside of Website Domain

Hi Everyone, A website which is in production and on the host's server is able to send and receive emails within its own domain via CI's Email Library, however, the email is not received outside th...
4,282 Views
3 Replies
09-26-2019, 07:40 PM
Mr Lister
    Thread: How to remove html String in XSS filtering?
Post: RE: How to remove html String in XSS filtering?

Hello, That is not the intent of the xss_clean() method.  It is more geared for Java Script. As the Codeigniter Security Class (https://www.codeigniter.com/user_guide/libraries/security.html) ment...
6,561 Views
2 Replies
05-13-2019, 03:29 PM
Mr Lister
    Thread: Form Validation CI v3.1.10
Post: Form Validation CI v3.1.10

Hi Everyone, I am tinkering on a long term project, and have updated from CI v3.1.9 to v3.1.10. With v3.1.9, the Form Validation with a callback set in an array returned any processed data set a...
1,565 Views
0 Replies
03-12-2019, 02:40 AM
Mr Lister
    Thread: CSRF Token AJAX
Post: RE: CSRF Token AJAX

Hi, yes, that would be the correct outcome if you have $config['csrf_regenerate'] = TRUE, which looks like you do. The CI guide: "Tokens may be either regenerated on every submission (default) or k...
10,435 Views
7 Replies
03-22-2018, 08:29 PM
Mr Lister
    Thread: Getting day, month and year apart from Db
Post: RE: Getting day, month and year apart from Db

If you are obtaining your date from a database query, why not split your date with the query.  MySQL has date functions for this case. Start here https://www.w3resource.com/mysql/date-and-time-functi...
12,012 Views
6 Replies
03-18-2018, 02:19 AM
Mr Lister
    Thread: a form validation issue
Post: RE: a form validation issue

Hi Guys, I give thanks to Narf too. I had the same issue - https://forum.codeigniter.com/thread-67280.html Mr Lister.
20,513 Views
16 Replies
04-08-2017, 05:41 AM
Mr Lister
    Thread: Form Validation Callback Executing First
Post: RE: Form Validation Callback Executing First

Hi, Yes, I have the 'MY_Form_validation' file created in the application's library folder. PHP Code: -- function run( $module = '', $group = '' )  {    ( is_object( $module ) ) AND $this->CI ...
5,789 Views
3 Replies
02-04-2017, 03:53 AM
Mr Lister
    Thread: Form Validation Callback Executing First
Post: Form Validation Callback Executing First

Hello, I have been using both CI v2.x.x and v3.x.x with wiredesignz HMVC plug-in with very few issues that could not have its own work around. There is one strange one, which I have yet to figure ...
5,789 Views
3 Replies
02-04-2017, 12:32 AM
Mr Lister

Theme © iAndrew 2016 - Forum software by © MyBB