Welcome Guest, Not a member yet? Register   Sign In
Trying to show a single blog post
#20

[eluser]cahva[/eluser]
Only thing I see here that could cause problems(but I doubt) is the BlogModel's constructor:
Code:
function Blogmodel() {
    parent::Model();
}
The class itself is CamelCase.. You might just want to use php constructors(you "halfly" use it already in your controller).

You can set the constructor with __construct() in every controller and model:
Code:
function __construct()
{
    parent::__construct();
}
That way you will always dodge spellingerrors.

But as I said, I doubt this causes the error. The error is in uri right now as you dont seem to get any vars passed to your method and is not actually related to the model itself. Do you use any kind of routes(you forgot to say that)?

You said earlier that its not an htaccess issue. You sure? Smile What does profiler say without it(remember to set the index.php as index page in the config while testing)?

If this problem wont solve, you better do an clean CI install and make a test controller to see that uri works as it should.


Messages In This Thread
Trying to show a single blog post - by El Forum - 05-20-2010, 06:53 AM
Trying to show a single blog post - by El Forum - 05-20-2010, 06:56 AM
Trying to show a single blog post - by El Forum - 05-20-2010, 07:26 AM
Trying to show a single blog post - by El Forum - 05-20-2010, 09:53 AM
Trying to show a single blog post - by El Forum - 05-20-2010, 10:00 AM
Trying to show a single blog post - by El Forum - 05-20-2010, 10:01 AM
Trying to show a single blog post - by El Forum - 05-20-2010, 10:01 AM
Trying to show a single blog post - by El Forum - 05-20-2010, 11:23 AM
Trying to show a single blog post - by El Forum - 05-20-2010, 11:32 AM
Trying to show a single blog post - by El Forum - 05-20-2010, 11:49 AM
Trying to show a single blog post - by El Forum - 05-20-2010, 11:58 AM
Trying to show a single blog post - by El Forum - 05-20-2010, 12:10 PM
Trying to show a single blog post - by El Forum - 05-20-2010, 12:24 PM
Trying to show a single blog post - by El Forum - 05-20-2010, 12:53 PM
Trying to show a single blog post - by El Forum - 05-20-2010, 12:58 PM
Trying to show a single blog post - by El Forum - 05-20-2010, 01:10 PM
Trying to show a single blog post - by El Forum - 05-20-2010, 01:15 PM
Trying to show a single blog post - by El Forum - 05-20-2010, 01:23 PM
Trying to show a single blog post - by El Forum - 05-20-2010, 01:29 PM
Trying to show a single blog post - by El Forum - 05-20-2010, 03:15 PM
Trying to show a single blog post - by El Forum - 05-20-2010, 05:17 PM
Trying to show a single blog post - by El Forum - 05-20-2010, 05:33 PM
Trying to show a single blog post - by El Forum - 05-20-2010, 05:46 PM
Trying to show a single blog post - by El Forum - 05-20-2010, 05:57 PM
Trying to show a single blog post - by El Forum - 05-21-2010, 12:51 AM
Trying to show a single blog post - by El Forum - 05-21-2010, 01:34 AM
Trying to show a single blog post - by El Forum - 05-21-2010, 07:44 AM
Trying to show a single blog post - by El Forum - 05-22-2010, 06:02 AM
Trying to show a single blog post - by El Forum - 05-24-2010, 09:04 AM
Trying to show a single blog post - by El Forum - 05-24-2010, 10:10 AM
Trying to show a single blog post - by El Forum - 05-24-2010, 12:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB