cakephp - Sort table from image -
I have a table with the 'read' column I want to be able to sort with the graphic instead of the text, though it Can not seem to work out
Whatever I have tried here:
Sort ('read', $ this-> HTML- & gt; image ("read_no.png", array ('width' =>, '26px', 'alt' = & gt; "read", array ('Saved' = & gt; wrong)))); ? & Gt; & Lt; / Th & gt; & Lt; Th class = "read" & gt; & Lt ;? Php echo $ this- & gt; HTML-> Link ($ this-> HTML-> Image ("read_no.png", Array ("alt" =>) ;; & gt;; & lt; / th & gt ;;;;;; ; & Lt; th class = "read" & gt; php echo $ this- & gt; HTML- & gt; image ("read_no.png", array ('width' => '26px' , 'Alt' = & gt; "Read", 'URL' => $ the-> Paginator-> Sort ('Read'), array ('escape' = & gt; wrong));;
I get these types of errors:
verb & lt; a href = "in the controller Not defined
You can add escape options in the Paginator / sort method instead of HTML / image is required:
& lt; th class = "read" & gt; & gt; php $ imageTag = $ this-> HTML- & gt; image ("read_no.png", array ('Width' = & gt; "26px", 'alt' = & gt; "read",)); $ echo-> gtagator-> sorted ('read', $ imageTag, array ('escape' = & gt; ; Wrong)); & gt;
Comments
Post a Comment