Book Image

concrete5 Beginner's Guide

Book Image

concrete5 Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
concrete5
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

PHP constants and functions


The following subchapter isn't one you have to go through step by step; it's rather a collection of small features that you can use to improve your concrete5 theme or block. The code snippets won't have any purpose in the upcoming chapters; you can implement them if you like, but you don't have to.

By default, concrete5 sets a bunch of constants that you can use when you create a theme but also a block or any other type of add-on. Most of them aren't really useful, they are needed by concrete5 within the core, but some are necessary and the rest give you an impression about a few internal aspects of concrete5. There are also lots of functions, some of them quite handy when you work within a theme template.

While the basic template we've created works well for most situations, there are several things you can do within a template and not only in the user interface. The code lines aren't real life examples; they just give you a hint about things you can do once you...