Views without Controllers in Titanium + Alloy

Interested in a hands-on tutorial in Titanium? Building Cross-Platform Apps using Titanium, Alloy, and Appcelerator Cloud Services

Anyone using this:http://docs.appcelerator.com/titanium/3.0/#!/guide/Views_without_Controllers

By doing e.g. “alloy generate view viewnamhere” then trying to use the controller-less view might get an error message that the module could not be found like this:

[DEBUG] [android, 4.2.2, 10.0.3.15] Native module:alloy/controllers/pricelist
[ERROR] [android, 4.2.2, 10.0.3.15]
Type: Error
Message: Requested module not found
File: ti
Line: /module.js
At: Module.require

Just had to do a ti clean and re-build, now it’s working!

(Currently testing on iOS FWIW)



About Phil Smithson

Ultrarunner & CTO. Passions include Mobile app development, Scrum, Kanban, Wordpress and Symfony.

Leave a Reply

Your email address will not be published. Required fields are marked *


*