O'Reilly logo

MODx Web Development by Antano Solar John

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. PHx

So far in this book, we have learned how to develop our MODx site by using templates, resources, and chunks, along with snippets. Snippets provide the power of having decisions made and interacting with the databases. In short, the logical component is abstracted to the snippet, whereas the resources, templates, and chunks provide a way to show the content returned by a snippet, or the contents of a variable. In some cases, it may be necessary to perform simple conditional checks within the resources, or templates themselves. PHxPlace Holders extended—is a set of notations that makes this possible by adding a logic layer directly to the placeholder. PHx also makes it possible to format the output, for example by converting a string ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required