Welcome Guest, Not a member yet? Register   Sign In
Aspects In Codeigniter
#7

[eluser]robert.fulcher[/eluser]
I have this code:

Code:
<?php

if (!defined('BASEPATH')) exit('No direct script access allowed');

class log

{
    const todo_add = '/todo/todo_add_c/submit';
    const todo_edit = '/todo/todo_edit_c/submit';

    function checkURI()
    {
        $CI =& get_instance();
        $uri = $CI->uri->uri_string();
        switch ($uri) {
            case log::todo_add:
                log_message('error', 'test todo add');
                break;
            case log::todo_edit:
                log_message('error', 'test todo edit');
                break;
        }
    }

}

?>

This code will not log a message. Is the issue that it is not matching to the submit? The hook works fine as long as I do not redirect in the submit controller.

Thanks


Messages In This Thread
Aspects In Codeigniter - by El Forum - 12-21-2009, 12:04 AM
Aspects In Codeigniter - by El Forum - 12-21-2009, 01:15 AM
Aspects In Codeigniter - by El Forum - 12-21-2009, 03:20 AM
Aspects In Codeigniter - by El Forum - 12-22-2009, 07:25 AM
Aspects In Codeigniter - by El Forum - 12-22-2009, 02:00 PM
Aspects In Codeigniter - by El Forum - 12-22-2009, 06:33 PM
Aspects In Codeigniter - by El Forum - 12-22-2009, 10:09 PM
Aspects In Codeigniter - by El Forum - 12-30-2009, 12:25 PM
Aspects In Codeigniter - by El Forum - 01-07-2010, 10:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB