Posts Tagged Mach-II

Faster Development with Mach-II’s View Tag Library

Mach-II offers several tag libraries to aid in fast application development. The view tag library reduces the time spent in writing mundane or complicated code in your views.

A major headache that many developers experience when coding their Mach-II views is the fact that they end up writing and re-writing the same (or similar) complex code in order to output simple elements like anchor tags or alternating row colors in a list or table.

Luckily, since version 1.8, Mach-II offers the view tag library to not only help reduce the amount of code required in each view, but make the code easier to read and look cleaner.

Mach-II View Tag Library

(more…)

Search Engine Safe Routes in Mach-II

Search Engine Safe (SES) Routes are another great way of generating immaculate URLs using Mach-II which are great for SEO applications and making things just look cleaner.

What are Search Engine Safe (SES) routes? Take a typical Mach-II URL, e.g. /index.cfm?event=world&country=canada&province=british%20columbia&city=vancouver. Even using Mach-II’s own Search Engine Safe (SES), the URL remains somewhat ugly: /index.cfm/event/world/country/canada/province/british%20columbia/city/vancouver/.

Suppose the format of the URL is always consistent. In our example above it can safely be assumed that the event name is world which is followed by country, province, and city.

Search Engine Safe URLs with Mach-II

(more…)

Search Engine Safe URLs with Mach-II

Mach-II provides a convenient way to create Search Engine Safe (SES) URLs for your web application without getting your hands dirty.

What are Search Engine Safe (SES) URLs anyway? Typical dynamic pages generated by server-side code require that either FORM or URL-scoped variables be provided in order to differentiate one dynamic page from another. A majority of these URLs look plain ugly: index.cfm?event=welcome&firstName=Adrian&lastName=Scott.

Wouldn’t it be a lot nicer if we got rid of the ?, =, and & symbols in favor of a more structured (and clean) method like: index.cfm/event/welcome/firstName/Adrian/lastName/Scott/. Not only are URLs like this easier to read and understand, but they supposedly also increase search engine optimization.

SEO Consultants – Search Engine Friendly URLs

(more…)

Mach-II First Steps

Mach-II is an event-driven, MVC framework which gives CFML developers a highly flexible and maintainable environment to work with.

To start off, I am a pretty big advocate of the Mach-II framework and entirely biased for its use. I’ve been using Mach-II for almost 2 years now and have loved every second of it. My background has been Java development, so I’m no stranger to object-oriented design, which Mach-II really prides itself on.

One of the biggest frustrations in ColdFusion-land, for me anyway, was the fact that everything was procedural. Meaning, the more code that you wrote, the more it would start to resemble something you’d find on your plate at your favorite Italian restaurant. Prior to using Mach-II I really pushed my peers into making use of as many CFC’s as possible, essentially generating my own framework of sorts.

(more…)

Getting to know the HtmlHelperProperty

Use Mach-II’s HtmlHelperProperty to manage JavaScript and CSS and avoid duplication of external scripts, reduce maintenance costs, and promote reusability.

The HtmlHelperProperty is a simple and efficient way to include JavaScript, CSS, and various meta information to your pages when you’re working in a MVC environment. One of the biggest challenges when working with two or more included views is managing each distinct view’s JavaScript and CSS dependencies.

(more…)