gmosx.ninja

Improved Nitro encode_url operator

The repository version of Nitro now includes an improved implementation of the encode_url operator (a.k.a. the R operator). The R operator now provides a couple of shortcuts for some common cases.

You can use the first shortcut if you follow Nitro's normalized controller convention (NCC). What is a normalized controller I hear you asking? Hmm, just a buzzword for a simple convention to name your controllers. An example will make this clear: Let's say you have an Entity (model) called Article. Then, following the NCC, you should use a single controller to handle (control) this class, and name this controller simply Article::Controller. Using this convention, Nitro can automatically deduct the controller used to control a given class. Let's see how the R operator uses this convention: