Welcome Guest, Not a member yet? Register   Sign In
Modular Extensions - HMVC version 5.2

[eluser]Tony Nash[/eluser]
Well. I'm interesting to now these differences. Any place I can read on? this forum has 15 page :-(

[eluser]wiredesignz[/eluser]
@tony, It's all explained in the cover email, don't be too lazy to read that will you. Tongue

[eluser]Tony Nash[/eluser]
Thanks wiredesignz.

I got it. In fact, code was well documented.. Very very useful..

Wow this is great!

BTW, where was people talk about (Re.) CI 1.7 features in this forum?

[eluser]Sam Dark[/eluser]
Tony Nash
All features are described in SVN trunk's CI 1.7 manual.

[eluser]wiredesignz[/eluser]
Modular Extensions 5.1.32 has been sent to the mailing list.

Updates include:
Models and libraries can be loaded from thier respective application subdirectories.
Fixed modules::run segment check, now allows any combination of 1, 2 or 3 segments.

[eluser]Gnative[/eluser]
I often have the need to return data from a module if the module exists.. so I've added these to functions




public static function exists($module){

return method_exists($module, 'index');
}




/**
* Run a module controller method
* Output from module returned.
**/
public static function data($location)
{
$method = 'index';

if(substr_count($location, '/') == 2 AND $pos = strrpos($location, '/'))
{
$method = substr($location, $pos + 1);

$location = substr($location, 0, $pos);
}

if($class = self::load($location))
{
if ( ! method_exists($class, $method))

show_error("Unable to run the module: {$location}/{$method}");

$args = func_get_args();

return call_user_func_array(array($class, $method), array_slice($args, 1));
}
}

[eluser]wiredesignz[/eluser]
@Gnative, You can simply use:
Code:
$data = $this->load->module('some_module')->some_method();

//or

$data = modules::load('some_module')->some_method();
Thanks anyway. Tongue

[eluser]Gnative[/eluser]
he he. ok i'm still learning the in ands outs.. cheers for the tip.
Smile

[eluser]phpwebdev[/eluser]
Hi @wiredesignz
I use both of u modules
HMVC and View Object PHP5

I have 2 problem
1) HMVC (v 5.1.33)

I set this module fine at virtual domain (host.tld)
But not work with folder - host.tld/somefolder/

2) i continue test at virtual host and integrate "View Object PHP5" (download from WIKI)
I set "VO" -
and try to render master template

$this->load->library('view');
after that i set the master template
$this->view->layout = 'themes/default/templete';

located (system/application/views/themes/default/template.php)

and try to render it

$this->view->render()

bit u get error message
"Unable to locate the file : .php in :welcome "

I there some wrong ?

[eluser]wiredesignz[/eluser]
Hi phpwebdev, I looked at the example application you provided and the first thing I noticed is that the system/application/controllers directory is missing.

Please re-create the controllers directory (it is absolutely required by both CI and ME) and try again. Thanks Tongue




Theme © iAndrew 2016 - Forum software by © MyBB