Chapter 9 (Helpers) problem

1 message Options
Embed this post
Permalink
npm

Chapter 9 (Helpers) problem

Reply Threaded More More options
Print post
Permalink
The examples have you put '<li>down</li>' as the text part to the Ajax->link function doesn't work correctly.   It ends up making the <li>up</li> and it didn't work in my browser at all (Firefox 3.05).  I had to put the <li> tags outside that Ajax->link business.  So on pages 165, 170 have code that won't work (for me).  Then the tag also doesn't work on 172.  The final example (9-11) I had to rewrite as:
        return "<li>" . $this->output($this->Ajax->link($text, $down, array('update' => $update), null, false)) . "</li>";