Does anyone have any advice for a person coming from a fairly experienced CFWheels background – specific gotchas, or important concepts that specifically differ from CFW that initially slowed you down?
CFWheels offers this documentation, to show what methods are available in controllers, models and views. Is there an equivalent in the docs for ColdBox? All I could find was the API for the core itself it seems, and I’m wondering what methods are created for use in the developer’s own M/V/C’s.
I know this will be entirely a matter of preference in the end, but is there a specific CSS framework that seems to “play best” with the view methodology of ColdBox? What do you feel is the most common one? I had been using Blueprint for years, and recently did a project using PureCSS. What is the convention with regards to directory placement of CSS libraries and custom-created individual files, both in the top level app, and for CSS libraries or files specific to a module? My instinct would be to place stylesheets in views/stylesheets or modules/{MODULE_NAME}/views/stylesheets.
I am primarily a jQuery kind of guy. Where is everyone storing javascript libraries in the directory structure, both in the top level app, and for JS libraries or files specific to a module?
Like you said, this is preference. Any will do. I typically keep my css in subdirectories under a /includes directory and organize under that accordingly.
Same for JS, I put it under a js directory under /includes
Hope that helps,
Never used CFWeels so I can’t help there. It’s honestly not that popular of a framework compared to ColdBox so I’m not sure how many people have used it.
ColdBox is completely un-opinionated when it comes to your JS or CSS frameworks, so it works without whatever you want.
Most people put those in an “/includes/js” or “/includes/css” directory for the app. A module would be the same, but just in the root of the module. In your module layouts or views, you can get access to variables that have the module mapping, or path to the root of the module. Keep in mind, modules aren’t guaranteed to be installed to a web-accessible directory.
Franc, I don’t recognize your name from cfwheels forums but you should post your question over there. I’m sure there are users that use coldbox and can give you some good advice.
It’s a popular and active community with 861 forum members waiting to help you out. Unfortunately I can’t help as I know wheels but I’m a coldbox noob. https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/cfwheels
I didn’t think any questions about ColdBox would be relevant or even welcome over there, as they are simply two different frameworks, and would be curious as to why someone that has chosen to use ColdBox would still participate there unless of course they were still working on projects in both… I haven’t posted a whole lot there, but i am registered and have in the past.