3.10.4 Core Helpers
CakePHP features a number of helpers that aid in view creation. They assist in creating well-formed markup (including forms), aid in formatting text, times and numbers, and can even speed up Ajax functionality. Here is a summary of the built-in helpers. For more information, check out Core Helpers.
| CakePHP Helper | Description |
|---|---|
| Ajax | Used in tandem with the Prototype JavaScript library to create Ajax functionality in views. Contains shortcut methods for drag/drop, ajax forms & links, observers, and more. |
| Cache | Used by the core to cache view content. |
| Form | Creates HTML forms and form elements that self populate and handle validation problems. |
| Html | Convenience methods for crafting well-formed markup. Images, links, tables, header tags and more. |
| Javascript | Used to escape values for use in JavaScripts, write out data to JSON objects, and format code blocks. |
| Number | Number and currency formatting. |
| Paginator | Model data pagination and sorting. |
| Rss | Convenience methods for outputting RSS feed XML data. |
| Session | Access for writing out session values in views. |
| Text | Smart linking, highlighting, word smart truncation. |
| Time | Proximity detection (is this next year?), nice string formatting(Today, 10:30 am) and time zone conversion. |
| Xml | Convenience methods for creating XML headers and elements. |
See comments for this section
