Welcome Guest, Not a member yet? Register   Sign In
CI develope + HMVC
#1

[eluser]Unknown[/eluser]
Hi,

for a project i am using the CI develope version from github and wiredesignz's modular extensions hmvc from bitbucket.

All is working fine, expect one thing: When i am using a method in a controller with parameters, i get a "Page not found" error.

The controller looks like that:
Code:
<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

class Upload extends CI_Controller{

function __construct(){
  parent::__construct();
  
}

public function index($type)
{
  $this->load->view('header');
  $this->load->view('upload', array('type' => $type));
  $this->load->view('footer');
}
}

/* End of file upload.php */
/* Location: ./application/modules/db/controllers/upload.php */

When i now pass http://localhost/ci/db/upload/image i get the error.

With http://localhost/ci/db/upload and
Code:
<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

class Upload extends CI_Controller{

function __construct(){
  parent::__construct();
  
}

public function index()
{
  $this->load->view('header');
  $this->load->view('upload');
  $this->load->view('footer');
}
}

/* End of file upload.php */
/* Location: ./application/modules/db/controllers/upload.php */

all works fine as well when calling a method in a controller which has no parameters.

Has someone the same problem? Or already fixed it?
I know maybe i shouldnt use the develope branch of CI ... but perhaps someone has already a solution or can help me? :red:




Theme © iAndrew 2016 - Forum software by © MyBB