• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Modular Extensions - HMVC version 5.3

#31
[eluser]Ener1[/eluser]
Hi Wire,

I´ve tryed but I was asking for something a litle more developed, I have to teach this to people starting their fist steps, If I can find something suitable could be great.

Thanks a lot for your response and for you great work!!!!

#32
[eluser]Developer13[/eluser]
Why do people keep trying to cred phil here? :question:

Confusion abound, apparently...

#33
[eluser]Ener1[/eluser]
sorry my mistake, I know wire is the one, but I know phill has help too

anyway this is a hell of a job!!!!!

#34
[eluser]Peccavio[/eluser]
[quote author="Developer13" date="1284287428"]
Why do people keep trying to cred phil here? :question:
[/quote]
[quote author="Peccavio" date="1284063876"]
Thanks wiredesignz & Phil Smile
CI 2.0 with HMVC has me excited,
The two of you made it easy to get started.
[/quote]

I know who's who, wiredesignz authored this HMVC
and Phil wrote the article that brought me back.
Their dialog here has helped me get started.

#35
[eluser]wiredesignz[/eluser]
@D13 and @Peccavio and @Ener1 thanks to you guys and all who support the HMVC design pattern. It is awesome to work with.

#36
[eluser]Peccavio[/eluser]
I thought
Code:
modules::run('login/is_logged_in');
was working in my code before. With Modular Extensions version 5.3.4 it no longer works.

I see in the wiki...
Quote:modules::run() is now dedicated to returning view partials only

But this does works...
Code:
$this->load->module('login');  
$this->login->is_logged_in();

My kingdom for a "Request Factory"

Will at least have P_Controller extends MX_Controller
Code:
$this->request($controller, $action);

#37
[eluser]Ener1[/eluser]
No wire once again thanks to you this is a great job and I think that is good for the comunity
I hope I can help as much as you have.

Is there any chance to add to the wiki a minimun (complete) example using the hmvc pattern?

Thanks in advance

#38
[eluser]wiredesignz[/eluser]
@Peccavio, an example base controller using $autoload for modules and also modules::run()
Code:
class Core_controller extends MX_Controller
{
    public $data;
    public $autoload = array(
        'modules' => array('search'),
    );
    
    function __construct() {

        parent::__construct();
        
        $this->lang->load('application');
        $this->load->plugins(array('widget', 'parser'));
                
        //$this->output->enable_profiler();
    }
    
    function _remap($action) {
        $this->load->vars($this->config->item('settings'));
        
        if (method_exists($this, $action)) {
            call_user_func_array(array($this, $action), array_slice($this->uri->segments, 2));
        } else {    
            modules::run('error/error404', trim($this->uri->uri_string, '/'));
        }
        
        $this->output->final_output = parser::parse($this->layout());
    }
    
    function __call($method, $params) {
        return $this->load->_ci_cached_vars[$method];
    }
}
/* End of file MY_Controller.php */
/* Location: ./application/libraries/MY_Controller.php */

@Ener1, I'm not sure how a HMVC tutorial would help you. Basically learning to code using the MVC pattern with CodeIgniter applies to HMVC also.

#39
[eluser]Peccavio[/eluser]
[quote author="wiredesignz" date="1284343026"]
an example base controller using $autoload for modules and also modules::run()
[/quote]

Couldn't ask for much more of a start ... thanks Smile

Edit: Might I ask, what is your parser plugin ?

#40
[eluser]InsiteFX[/eluser]
Parser is the forums code tags!

InsiteFX


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.