Welcome Guest, Not a member yet? Register   Sign In
CI 3 & HMVC Issue
#5

So in doing more research this turns out to be just an issue with case.  I am not sure if as I changed it back and forth if there was some Apache caching that was causing issue or what.  Also I don't think it is correct the way the call is being made but I am not an expert.

Module Setup
- Modules
--- payment
------ controllers
---------Payment.php

Code in the controller is

PHP Code:
<?php
class Payment extends MX_Controller
{
 
   public function process_payment()
 
   {
 
       .....
 
   }



So now I load the Module
PHP Code:
$this->load->module('payment'); 

Then I call the module
PHP Code:
$this->Payment->process_payment(); 

Now the above call does not work even though it matches the case and signature of the class.  And I have other classes setup the exact same way and they are working perfectly fine.  The call to this class will not work as an upper case call "Payment".

So I change that line to this
PHP Code:
$this->payment->process_payment(); 
And it is working fine.

This seems wrong to me, can anyone else explain why I would have one class that can be called either way upper or lower and one class that does not work at all that way?

It should either work or not work, and maybe it does but I have something screwed up somewhere.

Anyway I can keep going and hit my due date but this cost me several hours and really don't have an explanation. 
Reply


Messages In This Thread
CI 3 & HMVC Issue - by rfulcher - 04-13-2015, 04:59 PM
RE: CI 3 & HMVC Issue - by rfulcher - 04-13-2015, 06:25 PM
RE: CI 3 & HMVC Issue - by rfulcher - 04-13-2015, 06:29 PM
RE: CI 3 & HMVC Issue - by rfulcher - 04-13-2015, 06:45 PM
RE: CI 3 & HMVC Issue - by rfulcher - 04-14-2015, 08:49 AM
RE: CI 3 & HMVC Issue - by rfulcher - 04-16-2015, 05:50 AM
RE: CI 3 & HMVC Issue - by mwhitney - 04-17-2015, 02:03 PM
RE: CI 3 & HMVC Issue - by CroNiX - 04-18-2015, 03:16 PM
RE: CI 3 & HMVC Issue - by celiomap - 08-15-2016, 05:19 PM



Theme © iAndrew 2016 - Forum software by © MyBB