Modular Extensions - Version 4.3 |
[eluser]Developer13[/eluser]
[quote author="wiredesignz" date="1205229410"]If you asked for a tutorial, here we go, I grabbed Developer13's Inktype blog application and ported it over to use modules. Thanks D13 [/quote] Nothing is sexier than people using my stuff... even in alpha... :cheese:
[eluser]wiredesignz[/eluser]
Version 4.0.20 is available on the wiki Changes to the module loader. Improvements to library loader and changes to allow for CI using include instead of include_once :grrr:
[eluser]shar_[/eluser]
Hello, why i can't load my library from "application/libraries" directory? My library: class Test { function Test() { } } calling from module: $this->load->library('Test'); And i have error: Class 'Test' not found in D:\www\project_name\system\application\libraries\modular_extensions.php on line 251
[eluser]wiredesignz[/eluser]
Version 4.0.21 is available on the wiki Fixed a problem with loading application libraries. Thanks shar_
[eluser]a&w[/eluser]
I can see that the first segment of the url to get the controller is handled via the htaccess. CI handles the other segments automatically something like: base/seg1_controller/seg2_method/seg3_var1/seg4_var2... I see where calling the method below from the constructor will manually handle getting the 2nd segment. Does this mean that all of the other segments, if passed, must be handled manually, or can CI still do that? Code: function init() I noted from this post: http://ellislab.com/forums/viewreply/366296/ That you created something like this: application/modules/blog/methods/home.php Which appears to be utilizing segment3. I didn't quite get the organization on that. Where it's located seems more susceptible for naming collisions from another controller within that module. Are you suggesting to use this organization, or keep the method within modules/someModule/controllers/myController1.php Reading the wiki I was under the impression to do something like: Code: app/
[eluser]wiredesignz[/eluser]
Yes, Each module and or method needs to check the appropriate URI segment for data. Methods is a sub-directory of the module.
[eluser]Edemilson Lima[/eluser]
@a&w;: You can use the _remap() function in your default controller to manage your segments and pass them as parameters to your module method. It could be something like this: Code: class Default_controller extends Controller {
[eluser]Daeli[/eluser]
Is there to chance to call a controller wich is in a folder that isn't named like the controller with Edemilson Lima's "default_controller"? e.g.: URL: http://localhost/public/welcome/function Folder Structure /modules /public welcome register **EDIT** Also i just can't get my core class extensions to work with placing MY_Validation in libraries folder - it's just not working. **EDIT 2** This should fix the problem with extending core libraries Code: function library($library, $params = NULL)
[eluser]wiredesignz[/eluser]
load_class() will load any core subclasses (MY_) automatically, it is not required twice, What it does not do is update the loaded classes registry which can cause you issues elsewhere. The library loader has since been altered. Try version 4.0.21, Thanks
[eluser]Daeli[/eluser]
Erm problem with $this->CI->validation->set_error_message(). CI cannot find the corresponding error message, when i set the message in a library. |
Welcome Guest, Not a member yet? Register Sign In |