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

[eluser]iloveci[/eluser]
Hi guys,

I'm having trouble using modules::run() with phil's template library. My setup consists of:
Public_Controller (sets theme, layout, etc)
Two modules
Welcome (copy of default CI welcome setup but as a module)
Users (ion_auth setup as a module)

On their own they load fine & work properly but the moment I try to use modules::run to include users/auth/login within the welcome page I get
Code:
Undefined property: Auth::$template
Fatal error: Call to a member function set_theme() on a non-object in E:\xampp\htdocs\project\system\app\libraries\Public_Controller.php on line 21

I've tried loading a regular view instead of built->template within users/auth/login however then I get similar errors but with other libraries such as session/form_validation which shouldn't occur because they are being auto-loaded.

Anyone have ideas of whats going on here?

[eluser]KarlBallard[/eluser]
Try extending the MX_Controller instead of Controller/CI_Controller

[eluser]iloveci[/eluser]
MX_Controller has already been loaded.

[eluser]devyfriend[/eluser]
hi wiredesignz ..

nice update on the library

but i have a little bit of problem here

somehow my config is unable to load when stored in a new folder inside config folder
u see .. i have several dynamic config based on filename, here’s the error msg
when i run $this->load->config(‘folder_name/config_name’);

———————————————————————
An Error Was Encountered

The configuration file config_name.php does not exist.
———————————————————————

but when i moved the file back to config folder ... it works fine

is this a bug ?

btw .. this issue is working fine when im using your old hmvc and ci 172
but now im converting my apps to ci 2 and your latest libraries
also .. this in application/config folder not in some modules/xxx/config

thxs

[eluser]Juan manuel[/eluser]
hello,

I have problems with HMVC+CI 2.0, in ./application/config/routes.php

$route['default_controller'] = "welcome";

the controller does not work, the error msg is:
-----------
404 Page Not Found

The page you requested was not found.
-----------

[eluser]Basketcasesoftware[/eluser]
[quote author="Juan manuel" date="1297302557"]hello,

I have problems with HMVC+CI 2.0, in ./application/config/routes.php

$route['default_controller'] = "welcome";

the controller does not work, the error msg is:
-----------
404 Page Not Found

The page you requested was not found.
-----------[/quote]

I believe the correct path is "modules/welcome"

I think I recall reading that somewhere else in these forums.

Edit: Correction.
The correct entry is:
$route['default_controller'] = 'module_name/controller_name';

[eluser]Juan manuel[/eluser]
[quote author="Basketcasesoftware" date="1297303777"][quote author="Juan manuel" date="1297302557"]hello,

I have problems with HMVC+CI 2.0, in ./application/config/routes.php

$route['default_controller'] = "welcome";

the controller does not work, the error msg is:
-----------
404 Page Not Found

The page you requested was not found.
-----------[/quote]

I believe the correct path is "modules/welcome"

I think I recall reading that somewhere else in these forums.

Edit: Correction.
The correct entry is:
$route['default_controller'] = 'module_name/controller_name';[/quote]

The entry $route['default_controller'] = 'welcome/welcome';
dos not work

[eluser]wiredesignz[/eluser]
It does work. Make sure you have Modular Extensions - HMVC correctly installed.

If the module and controller names are the same then something like $route['default_controller'] = 'welcome'; is sufficient.

[eluser]Juan manuel[/eluser]
[quote author="wiredesignz" date="1297348564"]It does work. Make sure you have Modular Extensions - HMVC correctly installed.

If the module and controller names are the same then something like $route['default_controller'] = 'welcome'; is sufficient.[/quote]

Yes, ci2.0+HMVC is correctly installed

[eluser]pedma[/eluser]
Hi Wiredesignz,

Great scripts, thanks. I want to move my old application (multilevel users, session/cache, smarty templating, modular application, etc) in CI. At my old PHP application, if user 'acc' login, he just can see a 'accounting' button & access the 'accounting module'. If user 'sales' login, he just can see 'sales' button and access 'sales module'. But if user 'mgr' login, he can see button 'accounting' + 'sales' & access to both modules. This can be done with smarty at my old application.
At CI, I can use Zend ACL + HVMC to create the authenticatin + module part. How to use Smarty together with HMVC ? Is it possible ? Or is there another solution without using Smarty ?

Any information is very helpful.

Thank you in advance.
- pedma -




Theme © iAndrew 2016 - Forum software by © MyBB