Welcome Guest, Not a member yet? Register   Sign In
Modular Extensions - Version 4.3

[eluser]Avatar[/eluser]
I'm for the changelog idea as well. It's a good means of tracking between versions. I hope it's not too much work to keep this info current for each package wiredesignz. Thanks.

[eluser]badgeek[/eluser]
hmm i cant load a view here i got

Unable to locate the requested file: modules/views/default.php

code

return $this->load->view('default', $data);

on bundles module..

why i cant place my view in app\modules\bundles_module\views ?

thanks

[eluser]wiredesignz[/eluser]
Where is bundles_module controller located? Should be like so for a HMVC module:
Code:
modules/
  + bundles_module/
        + controllers/
            - bundles_module.php
        + views/
            - default.php

Many other variations of file locations are supported too.

[eluser]badgeek[/eluser]
i already place it that way hmmm this is weird

when i move the view folder to
Code:
modules/
  + views/
            - default.php
  + bundles_module/
        + controllers/
            - bundles_module.php

it works

[eluser]wiredesignz[/eluser]
default is also a reserved word in php, try changing it to default_layout or default_view

[eluser]badgeek[/eluser]
trying another name:
Code:
Unable to locate the requested file: modules/views/test_view.php

hmm maybe theres something wrong with my ci installation, im trying fresh install now...

[eluser]marios[/eluser]
I have the same problem after upgrading from 4.0.9 to 4.0.15.
I get
Code:
Unable to locate the requested file: /www/views/head_view.php
I figure out the problem is on line 45 of modules_helper.php:
Code:
$ci->_me[$_module] = ($me = explode('/', $path)) ? $me[2] : '';

I am not sure what is the purpose of that line since it always look for the second folder in the path.

In order to get it to work I changed it to:

Code:
$ci->_me[$_module] = $_module;


My folder structure hasn't changed which is

Code:
modules
  head
    controllers
       head.php
    views
       head_view.php

and modules folder is /var/www/mysite/system/application/modules
so the
Code:
($me = explode('/', $path)) ? $me[2] : '';
returns www.

[eluser]wiredesignz[/eluser]
Yes I need to look into this, The $path I have is `application/modules/module_name` so it should return the module_name segment. This is not always the same for everyone. I will have a solution in 4.0.16. Thanks marios

[eluser]wiredesignz[/eluser]
Version 4.0.16 is available on the wiki
Fixed modules home directory problem Thanks marios Wink
Introduced methods as sub-modules
Added .htm or .html as acceptable view file extension

I am also putting together a changelog for those interested. Stay tuned.

[eluser]Avatar[/eluser]
Thank you I will check into this version




Theme © iAndrew 2016 - Forum software by © MyBB