Welcome Guest, Not a member yet? Register   Sign In
use wick with matchbox
#1

[eluser]brain_74[/eluser]
Hi all..

I would like to load via Wick library a controller inside a modules created with matchbox.

this is the structure of the folder modules:

(1) - module folder
(2) - folder
(3) - controller
(4) - model
(5) - view

- admin (1)
- controllers (2)
- c_admin.php (3)
- models (2)
- m_admin.php (4)
- view (2)
- v_admin.php (5)

- login (1)
- controllers (2)
- c_login.php (3)
- models (2)
- m_login.php (4)
- view (2)
- v_login.php (5)


I try to call /login/c_login/ from admin/c_admin using wick library

in this way: $this->wick->light("/login/c_login/);

but... i have error 404... :-(

I think because wick library search inside application/controllers/etc...

Any idea?
#2

[eluser]xwero[/eluser]
wick was made to have a smaller library than matchbox so there must be a method in matchbox that makes wick obsolete?
#3

[eluser]brain_74[/eluser]
Hi,

so you say that wick with matchbox does not work?

:-(
#4

[eluser]xwero[/eluser]
i don't know if they are incompatible but if you use the bigger modular library, matchbox, why would you need load wick which only function is to treat controllers as views.
#5

[eluser]brain_74[/eluser]
you are right.

I need to load a controller from another controller.. using the system of matchbox.

If you see the example above, I need to call /login/c_login/ from admin/c_admin

I need to call a controller indeside a module from another controller inside another module.

Any Idea Xwero? :-)




Theme © iAndrew 2016 - Forum software by © MyBB