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

[eluser]Unknown[/eluser]
hi, i have question for the hmvc~

There is a not found error from log, when i created a public_controller.php in core folder.
Then, I used it extends MY_controller.

example:
./core
-->MY_Controller.php
-->Public_Controller.php

./modules
-./example
--./controllers
---./example.php
Code:
class example extends Public_Controller{
...
}

Then, the 404 not found error would be logged.
when i remove the public_controller.php
then, the controller extends "MY_controller"
The 404 not found error would be gone away.~

plz help~~
thx!!!

[eluser]inc[/eluser]
[quote author="wiredesignz" date="1333607669"]You obviously do not understand that while you may be able to destroy objects, you cannot (yet) unload classes.[/quote]

"execute it (some random temp name)". you can assign any name you want right? i mean you're already doing it. i cannot see anything bad with it. correct me if i'm wrong.

module: organizations.
controller: organizations.
subdir: admin

Modules::run('organizations/admin/get'); -> will produce class name Admin.

[eluser]wiredesignz[/eluser]
@inc, Class names can not be customized at run time.

You appear to be confusing assignable object names with class names.


[eluser]inc[/eluser]
[quote author="wiredesignz" date="1333615932"]@inc, Class names can not be customized at run time.

You appear to be confusing assignable object names with class names.

[/quote]

yep, this was my problem and i was confused by that. feeling like a newbie right now Smile sorry about that.

but i have a new question:

i wanted to load a rest library with different object name. i did it like this:
$this->load->library('rest', FALSE, 'rest1');
$this->load->library('rest', FALSE, 'rest2');

but it doesn't create an rest2 object.

i think the problem is in Loader.php file LINE 139.

[eluser]Unknown[/eluser]
When installing HMVC, is the provided MY_Loader.php supposed to completely replace the existing MY_Loader.php in application/core?

[eluser]Unknown[/eluser]
Please add 4 line in config.php then try

Code:
$config['modules_locations'] = array(
        APPPATH.'_backend/'  => '../backend/',
        APPPATH.'_frontend/' => '../frontend/',
    );

[eluser]Sven Delle[/eluser]
@wiredesignz

May I suggest you put a link on the very first post (erh, maybe on the word 'bitbucket') in this thread, that links to HMVC on bitbucket, instead of having us hunt for it?

Now, that would be nice. And when I think about it - user friendly.

[eluser]wiredesignz[/eluser]
@Sven Delle, The link is in my signature below, it is visible on more than 3000 posts all around these forums.

[eluser]Sven Delle[/eluser]
You're absolute right. This just proves to me that vital information (as in related to the post content) shouldn't go in the signature.

Do you honestly read all peoples signature when speeding through posts to get information?

Well, maybe you do. But I sure don't (and I'd guess, others too).

And as it is the nature of html to use links, a user often 'expect' a link if it's relevant. And in this case I think it is.

But in case I owe you an apology - I do apologize : ).

[eluser]Unknown[/eluser]
Hi,
I tried to load a language file in another module in this mode $this->load->language('module_name/file_name'); but it doesn't work. Is there a mode in order to load a language file in another module?

Thanks

EDIT: Solved, it's work




Theme © iAndrew 2016 - Forum software by © MyBB