Welcome Guest, Not a member yet? Register   Sign In
Modular refactoring possible?
#12

[eluser]Phil Sturgeon[/eluser]
Post is left in the $_POST variable and $_GET can be enabled via the instructions in this post.

$_SESSION can be accessed via OB_Session but you can still just use $_SESSION as normal if you have a session_start() somewhere in your application fairly early on.

As for models, you will want to make your own Model class that does absolutely nothing. That way when you include a model file it will not be trying to extend a non-existent class.

Not sure what you would have in your modules as things like Active Record and all other models/libraries would not be accessible via the model's $this.


My best suggestion for model/library access as you port over is a clever __autoload() which checks the model and library folders.

Instead of

Code:
$this->some_library->get();

do...

Code:
$some_library = new Some_library();
$some_library->get();

That way you dont need to worry about including the files and this is perfectly compatible with CI.

Basically you are avoiding some of CI's features just to get the app working in that environment, then you can modify and merge it in as you go.

This is possible, it is just going to be tricky.


Messages In This Thread
Modular refactoring possible? - by El Forum - 05-05-2009, 09:04 AM
Modular refactoring possible? - by El Forum - 05-05-2009, 09:10 AM
Modular refactoring possible? - by El Forum - 05-05-2009, 09:18 AM
Modular refactoring possible? - by El Forum - 05-05-2009, 11:20 AM
Modular refactoring possible? - by El Forum - 05-05-2009, 11:23 AM
Modular refactoring possible? - by El Forum - 05-05-2009, 11:33 AM
Modular refactoring possible? - by El Forum - 05-05-2009, 11:40 AM
Modular refactoring possible? - by El Forum - 05-05-2009, 11:47 AM
Modular refactoring possible? - by El Forum - 05-05-2009, 12:16 PM
Modular refactoring possible? - by El Forum - 05-05-2009, 03:02 PM
Modular refactoring possible? - by El Forum - 05-06-2009, 01:42 AM
Modular refactoring possible? - by El Forum - 05-06-2009, 01:57 AM
Modular refactoring possible? - by El Forum - 05-06-2009, 02:09 AM
Modular refactoring possible? - by El Forum - 05-06-2009, 03:34 AM
Modular refactoring possible? - by El Forum - 05-06-2009, 03:35 AM
Modular refactoring possible? - by El Forum - 05-06-2009, 04:59 AM
Modular refactoring possible? - by El Forum - 05-06-2009, 05:16 AM
Modular refactoring possible? - by El Forum - 05-06-2009, 09:31 AM
Modular refactoring possible? - by El Forum - 05-06-2009, 09:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB