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

[eluser]wiredesignz[/eluser]
No. Don't autoload anything, except debug_helper.php if you want to use it.

[eluser]freshface[/eluser]
Thx, now it works.
Stupid mistake.

Thx for the fast replies!

[eluser]wiredesignz[/eluser]
You're welcome. Wink

[eluser]freshface[/eluser]
Is it still recomended to do the DB stuff in a model or direct in your controller?
And do you use
Code:
echo modules::run('news', $data, 'fetch');
in controllers or in views?

[eluser]wiredesignz[/eluser]
modules::run is a helper call, so its more suited to views, you can use it in a controller or better still use $this->load->module('news'); in a controller and then $this->news->fetch($data);

I recommend Models but it's entirely up to the developer.

[eluser]freshface[/eluser]
Allright, thx for the enlightening.
I will browse the 57 pages for info and best practices

[eluser]wiredesignz[/eluser]
Well its only 56 pages, you took up this one. :lol:

Don't forget the wiki too.

Special Note:
Ignore everything written by Yingyes in this thread. That will save you reading about 15 pages Wink

[eluser]Weblizard[/eluser]
First of all ,Thanks for hard work and amazing lib.
Problem:
I can't load view files from nested view folders under module.
think of something like this:
Code:
..
  modules
     test
       controllers
         foo_controller.php
       views
         subfolder
              bar.php
              another_bar.php
         another_subfolder
              another_bar.php
         root_view.php
simply running this
Code:
$this->load->view('subfolder/bar');
under foo_controller.php won't work for me
would you please re-check modules_find function [ME ver. 4.2.6]
Thanks again

[eluser]wiredesignz[/eluser]
ME does allow subfolders, but not by using folder/view, this format is used to cross load resources from other modules.

The subfolder name needs to match the controller name.

ie: `news/controllers/something.php` controller loads views from either `new/views` or `news/views/something/`

[eluser]Weblizard[/eluser]
Thank you for very fast answer
It would be better if you add it to Wiki :-P




Theme © iAndrew 2016 - Forum software by © MyBB