Part of the EllisLab Network
   
24 of 24
24
Modular Separation (deprecated by Matchbox)
Posted: 22 November 2007 09:18 PM   [ Ignore ]   [ # 231 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1158
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.

 Signature 

imap_pop get email | site_migrate port sites | OOCalendar | PhotoBox2 gallery | CI/EE 2 word_limiter, yep, wrote it

Profile
 
 
Posted: 23 November 2007 01:08 PM   [ Ignore ]   [ # 232 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  529
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:  529
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:  529
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
 
 
Posted: 26 August 2009 03:52 AM   [ Ignore ]   [ # 237 ]  
Summer Student
Total Posts:  7
Joined  03-31-2009

Hi all,
  i need some help, how can I add an external “routes.php” config file using Matchbox?. I’ve try by myself but I can’t make CodeIgniter load “routes.php” located in my module’s config folder.

For example i need this structure

...
   +
modules
         
+ user
               
+ config
                       config
.php
                       routes
.php
               
+ controllers
               
+ language
               
+ views

         
+ news
               
+ config
                       config
.php
                       routes
.php
               
+ controllers
               
+ language
               
+ views

Thanks

Profile
 
 
Posted: 26 August 2009 04:22 AM   [ Ignore ]   [ # 238 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  2514
Joined  06-11-2007

If you want that to work now you can use my solution.

This will however be a feature in the new version of Matchbox. I was looking at a preview of the new code this morning and it looks much more clean and optimized.

 Signature 

Blog | Twitter | GitHub
————————-
CodeIgniter 2: Everything you need to know
————————
PyroCMS - open source modular CMS built with CodeIgniter
CleverAndy - get money for un-used concept designs
————————
Libraries: Asset, Dwoo, Cache, cURL, CLI, REST, Template

Profile
 
 
Posted: 26 August 2009 04:40 AM   [ Ignore ]   [ # 239 ]  
Summer Student
Total Posts:  7
Joined  03-31-2009

That rocks! Thanks so much!

....really thanks!

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 819, on March 11, 2010 11:15 AM
Total Registered Members: 120144 Total Logged-in Users: 40
Total Topics: 126286 Total Anonymous Users: 0
Total Replies: 664164 Total Guests: 322
Total Posts: 790450    
Members ( View Memberlist )