Part of the EllisLab Network
   
24 of 24
24
Modular Separation (deprecated by Matchbox)
Posted: 22 November 2007 09:18 PM   [ Ignore ]   [ # 231 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  797
Joined  08-06-2006

this seems like it might be solving a problem that doesn’t exist yet. why not just make a general helper that can check all “registered” modules for function overlaps? and then just call it on “install” and print or log an error. instead of making a whole process for people to adapt and release modules, just make it easy by letting some code do a simple check for namespace collisions.

when/if it becomes a bigger problem, build a bigger solution.

Profile
 
 
Posted: 23 November 2007 01:08 PM   [ Ignore ]   [ # 232 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  492
Joined  06-16-2006

Yus, it’ll probably just annoy the socks off everyone. Name overlapping haven’t been an issue yet after all. So yeah, I think you’re right smile

 Signature 

Best regards, Zacharias.
Matchbox - Modular Separation | Wick - Controller Loader

Profile
 
 
Posted: 25 November 2007 01:25 PM   [ Ignore ]   [ # 233 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  492
Joined  06-16-2006

Modular Separation has been deprecated by Matchbox. However, Matchbox is backwards compatible with its predecessor so you can switch over without problems.

 Signature 

Best regards, Zacharias.
Matchbox - Modular Separation | Wick - Controller Loader

Profile
 
 
Posted: 24 February 2008 04:29 PM   [ Ignore ]   [ # 234 ]  
Summer Student
Total Posts:  1
Joined  02-24-2008

i am a newbie in CI

i install Modular Separation from link http://codeigniter.com/wiki/Modular_Separation/

1. i copy MY_Config.php, MY_Language.php, MY_Loader.php and MY_Router.php
    in /application/libraries/

2. i create the directory /modules/ in /application/

3. i create folder controllers, models, views in /modules/

4. i create news.php in /controllers

  here is my code in news.php

class News extends Controller {

  function __construct() {
     
      parent::Controller();

  }
  function index()
  {
      echo “test”;
  }
}

5. when i goto url http://localhost/index.php/news it does not work
  and show error message 404 Page Not Found

why?

thank in advance

Profile
 
 
Posted: 24 February 2008 04:56 PM   [ Ignore ]   [ # 235 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  492
Joined  06-16-2006

Welcome to the forums killworld smile First of all, I would kindly ask you to read the big, bold, red letters that form my previous post.

Now, regarding your problem, you shouldn’t create controllers/views/models folders directly inside your /modules/ folder. Instead, you should create folders named for instance /news/ for a news module, or /users/ for a users module, and then create controllers/views/models folders within those.

If you look at the newest version, there’s also a more throughout documentation. I’m just going to repost my previous message. Please don’t post an answer in this topic, but in the Matchbox topic instead.

Modular Separation has been deprecated by Matchbox. However, Matchbox is backwards compatible with its predecessor so you can switch over without problems.

 Signature 

Best regards, Zacharias.
Matchbox - Modular Separation | Wick - Controller Loader

Profile
 
 
Posted: 11 December 2008 08:14 PM   [ Ignore ]   [ # 236 ]  
Summer Student
Total Posts:  1
Joined  12-11-2008

nvm

Profile
 
 
   
24 of 24
24
 
     YATS -- The Layout Library ››
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 66431 Total Logged-in Users: 27
Total Topics: 84795 Total Anonymous Users: 1
Total Replies: 455083 Total Guests: 234
Total Posts: 539878    
Members ( View Memberlist )
Newest Members:  GlennJDylan1978X_franbaguasllogocsaturkeyPeter BryanttherendStudioGeorgiaJZeer