0

I have a Cakephp 2.1 app.

My function is declared:

public function ajaxOfferingDelete($descipline_name = -1, $field_id = -1)
{
    $this->layout = 'empty';

    //output code
    echo 'hello';
}

Enter this into the URL works fine:

localhost/lessonshark/teachers/ajaxOfferingDelete/

The above outputs hello but the bottom gives me nothing:

 localhost/lessonshark/teachers/ajaxOfferingDelete/1/137

Why is this happening? It was working before.

4

1 に答える 1

1

「空の」レイアウトを作成しましたか? もしそうなら、あなたはそれを持っている必要があります:

<?php echo $this->fetch('content'); ?>
于 2012-07-24T10:27:39.077 に答える