I installed ME and always get an 404.
I autoload the library and the 2 helpers.
This is my folder structure.
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
March 03, 2008 6:10pm
Subscribe [48]#556 / Jul 21, 2008 9:11am
I installed ME and always get an 404.
I autoload the library and the 2 helpers.
This is my folder structure.
#557 / Jul 21, 2008 9:26am
From the look of your screenshot you are using an old version of ME.
Download version 4.2 from the wiki.
Controller.php and MY_Router.php should be installed to application/libraries.
modules_helper.php should be in application/helpers.
debug_helper.php is optional.
CI loads the Controller and it loads everything else automatically, except debug_helper.
#558 / Jul 21, 2008 9:31am
Okay, I works!
I used 4.0 bescause it said final.
Thx 😉
#559 / Jul 21, 2008 9:32am
Ok thanks. final = no longer being developed. Sorry for any confusion.
NOTE:
Download link for version 4.0 is removed from wiki to avoid future confusion.
#560 / Jul 21, 2008 9:33am
Sorry, it still doesn’t work.
I had welcome.php and its view still in controllers and views
So I only need to autoload the controller?
$autoload['libraries'] = array('Controller');#561 / Jul 21, 2008 9:36am
No. Don’t autoload anything, except debug_helper.php if you want to use it.
#562 / Jul 21, 2008 9:37am
Thx, now it works.
Stupid mistake.
Thx for the fast replies!
#563 / Jul 21, 2008 9:38am
You’re welcome. 😉
#564 / Jul 21, 2008 9:50am
Is it still recomended to do the DB stuff in a model or direct in your controller?
And do you use
echo modules::run('news', $data, 'fetch');in controllers or in views?
#565 / Jul 21, 2008 10:06am
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.
#566 / Jul 21, 2008 10:12am
Allright, thx for the enlightening.
I will browse the 57 pages for info and best practices
#567 / Jul 21, 2008 10:15am
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 😉
#568 / Jul 21, 2008 10:37am
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:
..
modules
test
controllers
foo_controller.php
views
subfolder
bar.php
another_bar.php
another_subfolder
another_bar.php
root_view.phpsimply running this
$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
#569 / Jul 21, 2008 10:45am
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/`
#570 / Jul 21, 2008 11:27am
Thank you for very fast answer
It would be better if you add it to Wiki 😛