Welcome Guest, Not a member yet? Register   Sign In
WireDesignz HMVC questions?
#1

[eluser]whygod[/eluser]
Questions regarding HMVC

What is the purpose of this in the application/config.php?
Code:
$config['modules_locations'] = array(
  APPPATH.'modules/' => '../modules/',
);

Is defining these codes in the application/config/route.php necessary?
Code:
$route['module_name'] = 'controller_name';

What is the difference versus this codes below in the applicaton/config/route.php,
Code:
$route['default_controller'] = "tasks";

I also noticed the form_validation class it need to be tweak too,
Can someone show me a sample demonstration on how to use this properly.
Code:
class Xyz extends MX_Controller
{
  function __construct()
  {
   parent::__construct();

   $this->load->library('form_validation');
   $this->form_validation->CI =& $this;
  }
}

Can someone please help me understand the above questions, please...


#2

[eluser]whygod[/eluser]
The HMVC document also tell this below,
----------------------------------------------------------------------
To call a module controller from within a controller you can use $this->load->module() or Modules::load() and PHP5 method chaining is available for any object loaded by MX. ie: $this->load->library(‘validation’)->run().
----------------------------------------------------------------------

Can someone give example for this?
Thanks in advance.
#3

[eluser]whygod[/eluser]
Why no body answer my questions?
Can someone please answer my question.




Theme © iAndrew 2016 - Forum software by © MyBB