Modular Extensions - Version 4.3 |
[eluser]edwin87[/eluser]
Thanks, that would be great! Keep up the good work!
[eluser]wiredesignz[/eluser]
Modular Extensions 4.3 is available on the wiki Version 4.3 has been updated and now should work with CI 1.7.1 Please provide feedback if you find otherwise.
[eluser]edwin87[/eluser]
When i work with multiple databases the application breaks. It worked before. What could be the problem?
[eluser]wiredesignz[/eluser]
edwin, Can you provide a bit more detail please. Where does the application fail, errors, line numbers etc It's difficult to find bugs without relevant information.
[eluser]edwin87[/eluser]
That's true! I've created a base_controller. This handles basic functions. Like choose language and that sort of stuff. For example: Code: <?php On every module i include my base_controller and extend it like : news extends base_controller So this time i don't have to load everytime my database. Code: $WEBDB = $this->load->database('website', TRUE); With the defined vars in the base controller i only needed to do this: Code: $this->wdb->get('news'); So the vars in my base_controller are broken now. Is there a way to fix this? In 4.2 it did worked.
[eluser]edwin87[/eluser]
I hope i made myself clear. I also found out that the function database with $parameter didn't get a array like 4.2 Maybe this is a problem?
[eluser]wiredesignz[/eluser]
Modular Extensions 4.3.03 is available on the wiki Updated to fix database loading and compared functionality against CI 1.7.1 on its own.
[eluser]edwin87[/eluser]
Thanks for your update! But do you maybe have a solution for a base_controller? So that i don't have to do things multiple? Like language selection like ChickenEggs in this thread? http://ellislab.com/forums/viewthread/73177/P520/ It's strange because it worked in 4.2 So i can't set vars anymore. I hope you can help me with this Edit: I found out that it breaks in a model. In controllers it works. But i want to load as example : $this->wdb->get('pages'); in a model function. But he gives a "Call to a member function on a non-object ". So he can't find the wdb var.
[eluser]wiredesignz[/eluser]
Try moving the database connections into the models that require them rather than loading them in the controller.
[eluser]edwin87[/eluser]
Hello, Thanks, that worked But i liked it more like i did it before. I never had to load it again. However it works now But I found another bug. I've got a photo module. Here i load 3 models. - fotoalbum_album_model - fotoalbum_pics_model - fotoalbum_category_model I've got a function in the fotoalbum_category_model for example: Code: function get_FriendlyCatTitle($id) I try to call that function in my fotoalbum_album_model. Example: Code: function get_Photo_Item($id) Then it gives me a error like: Quote:Call to a member function on a non-object It seems that it doesn't load the model so i tried to load the model again inside the model But then it returns that the model already is loaded. My debug Quote:DEBUG - 2009-03-18 09:32:08 --> Config Class Initialized Shows me that it is loaded. So what could be the problem here? |
Welcome Guest, Not a member yet? Register Sign In |