Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: $this->load->library
Post: $this->load->library

public function initController(\CodeIgniter\HTTP\RequestInterface $request, \CodeIgniter\HTTP\ResponseInterface $response, \Psr\Log\LoggerInterface $logger)     {         parent::initController($req...
567 Views
1 Replies
01-23-2024, 05:54 AM
Knutsford
    Thread: __construct in Modules
Post: RE: __construct in Modules

Am I right in thinking that isn't needed for version 4? or isit just the line $this->load->database(); that isn't needed
589 Views
2 Replies
01-17-2024, 04:30 AM
Knutsford
    Thread: __construct in Modules
Post: __construct in Modules

public function __construct() {           $this->load->database(); } The modules have that for the Database at the beginning What should that be for version 4? I can't find an example. ...
589 Views
2 Replies
01-17-2024, 02:24 AM
Knutsford
    Thread: Undefined constant "Config\APP_NAMESPACE
Post: Undefined constant "Config\APP_NAMESPACE

I am getting Fatal error: Uncaught Error: Undefined constant "Config\APP_NAMESPACE" in D:\xamp\htdocs\test\system\bootstrap.php:105 Stack trace: #0 D:\xamp\htdocs\test\public\index.php(40): require() ...
317 Views
0 Replies
01-17-2024, 01:18 AM
Knutsford
    Thread: public function __construct()
Post: RE: public function __construct()

Thanks the last one was what I was looking for
1,056 Views
4 Replies
01-17-2024, 01:12 AM
Knutsford
    Thread: config.php
Post: config.php

I have downloaded version 4 and there isn't a config.php file under app/config. I am updating a site from version 3 so do I just copy the old one over? Thanks
352 Views
1 Replies
01-16-2024, 12:04 PM
Knutsford
    Thread: public function __construct()
Post: public function __construct()

PHP Code: -- public function __construct() {      parent::__construct();      $this->load->model('youth_user_model');      $this->load->helper('url');      $this->load->helper('html'); } ...
1,056 Views
4 Replies
01-16-2024, 10:34 AM
Knutsford
    Thread: From and Reply_to in emails
Post: RE: From and Reply_to in emails

I thought the man at the Host had alresdy changed the config but he hadn't. Bit of confusion somewhere. I realised on Saturday that it might be that and got it working. Thanks
678 Views
3 Replies
05-22-2023, 12:48 AM
Knutsford
    Thread: From and Reply_to in emails
Post: From and Reply_to in emails

I am trying to change the emails for a website but soemthing a bit odd is going on Foir the email to the customer I have $this->email->from('[email protected]', 'ccc'); $this->email-...
678 Views
3 Replies
05-20-2023, 12:34 AM
Knutsford
    Thread: Adding new validation
Post: RE: Adding new validation

Hmm some version upgrades are easy peasy but I don't remember going from 2 to 3 that easy when I have done it depending on how the site it has been written. Anyway I have got it working by being naug...
3,275 Views
8 Replies
10-14-2021, 01:12 AM
Knutsford
    Thread: Still can't get form validation to work
Post: RE: Still can't get form validation to work

As I sadi 'rules' => 'trim|required|callback_name_check' didn't work either. That was the thing I tried but I have just spotted that $this->CI->form_validation->set_message('name_...
985 Views
1 Replies
10-13-2021, 02:18 AM
Knutsford
    Thread: Adding new validation
Post: RE: Adding new validation

Yep you are right I have always had a problem with & and && for some reason. I tried doing the validation using callback last night but couldn't get it to work
3,275 Views
8 Replies
10-13-2021, 01:31 AM
Knutsford
    Thread: Still can't get form validation to work
Post: Still can't get form validation to work

I am getting Unable to access an error message corresponding to your field name First name.(name_check) This is my code Code: -- public function name_check($str)         {  if (...
985 Views
1 Replies
10-12-2021, 01:33 PM
Knutsford
    Thread: Adding new validation
Post: RE: Adding new validation

Upgrading to 4 is on the cards sometime What I posted is what I tried and I was getting a JavaScript error - something to do with the order id which didn't make sense at all as it isn't part of the fo...
3,275 Views
8 Replies
10-12-2021, 01:51 AM
Knutsford
    Thread: Adding new validation
Post: RE: Adding new validation

Knutsford Wrote: (10-11-2021, 11:05 AM) -- How do I add a new form validation? I have PHP Code: --
3,275 Views
8 Replies
10-12-2021, 12:49 AM
Knutsford
    Thread: Adding new validation
Post: Adding new validation

How do I add a new form validation? I have PHP Code: --
3,275 Views
8 Replies
10-11-2021, 11:05 AM
Knutsford
    Thread: Multi cart
Post: Multi cart

Is there a multi cart plug in? I have found https://github.com/uno-de-piera/multi_cart_ci But it is old so I am not sure if it is still usable for version 4 Thanks
787 Views
0 Replies
04-03-2021, 06:40 AM
Knutsford
    Thread: anchor tab
Post: anchor tab

I have a page with a bootstrap toggle Sold If I call it from another page how do I get it to open the user_sold div please At the moment it goes back to the page theny you...
863 Views
0 Replies
03-30-2021, 07:23 AM
Knutsford
    Thread: $this->session->set_flashdata
Post: $this->session->set_flashdata

A previous developer has written something like $this->session->set_flashdata('promote', "BlaaBlaa"); I am confused 1) It is giving a popup on only on the desktop version which is what ...
776 Views
0 Replies
03-16-2021, 03:19 AM
Knutsford
    Thread: Or in a select statement
Post: RE: Or in a select statement

something like  select * from table where ( a = 'aa' and b = 'bb')  or (c = 'aa' and b = 'bb')
1,898 Views
3 Replies
03-11-2021, 10:27 AM
Knutsford

Theme © iAndrew 2016 - Forum software by © MyBB