Welcome Guest, Not a member yet? Register   Sign In
weird problem while loading a model
#1

[eluser]vas13[/eluser]
Hi to all,

I was deploying my web blog using ci and everything worked fine till I updated my system installing the newest version of Apache web server (2.2.16) along with the PHP 5.3.

I just copied my web blog (all the installation of CI that I had previously) and now when I type:
http://127.0.0.1/index.php/welcome_con/main

The method call of the class (controller) Welcome_con is called but nothing happened after I am loading a module. More specifically:

class Welcome_con
{
function main()
{ echo "before... <br />;
$this->load->model('blog_mod', 'bm');
echo "after... <br />";
}
}

Whatever comes after loading the module it isn't executed. Nor does the CI appear any error message.
it seems like it stucks there and it exits of the script. The only thing I can see is the first echo statement coming before the loading of the module.

I really don't have a clue of what went wrong during the setup of my new environment.

Last I am running all the software on windows 7.

Any hint, help would be very valuable to me.


Thanks in advance


V.F
#2

[eluser]vas13[/eluser]
Finally I managed to find the solution to my problem,

The error was that Inside the Module Blog_mod I was connecting to a Data Base but Since I have a newly installation of PHP I haven't included the dynamic library for MySQL (php_mysql.dll) so the CI couldn't do anything and it was stuck.




Theme © iAndrew 2016 - Forum software by © MyBB