Questions tagged [cfwheels]

CFWheels provides CFML developers with a rapid MVC framework for increased productivity, organized code, and overall developer happiness.

CFWheels

CFWheels provides CFML developers with a rapid MVC framework for increased productivity, organized code, and overall developer happiness.

CFWheels is heavily based on Ruby on Rails, but it's not a direct port, and there are some things that have been changed to better fit the CFML language. The goal is to keep things simple and this shows in a lot of different areas in CFWheels.

Key CFWheels Concepts

1. Convention Over Configuration

Instead of needing to set up tons of configuration variables, CFWheels will just assume you want to do things a certain way by using default settings. In fact, you can start programming a CFWheels application without setting any configuration variables at all!

2. Beautiful Code

Beautiful (for lack of a better word) code is code that you can scan through and immediately see what it's meant to do. It's code that is never repeated anywhere else. And, most of all, it's code that you'll enjoy writing and will enjoy coming back to 6 months from now.

3. Model-View-Controller (MVC)

If you've investigated frameworks in the past, then you've probably heard this terminology before. Model-View-Controller, or MVC, is a way to structure your code so that it is broken down into three easy-to-manage pieces:

  • Model: Just another name for the representation of data, usually a database table.
  • View: What the user or their browser sees and interacts with (a web page in most cases).
  • Controller: The behind-the-scenes guy that's coordinating everything.

4. Object Relational Mapping (ORM)

The Object Relational Mapping, or ORM, in CFWheels is perhaps the one thing that could potentially speed up your development the most. An ORM handles mapping objects in memory to how they are stored in the database. It can replace a lot of your query writing with simple methods such as user.save(), blogPost.comments(order="date"), and so on.

161 questions
0
votes
1 answer

CFWheels Query Using In

I have a simple array of values (abbreviations) and I need to loop over them and check for a foreign key in another db table. In MySQL I'd use the IN clause but with CFWheels and MS SQL I am not sure how to go about it. I first query the users…
user1430046
0
votes
1 answer

CFWheels Pagination using AJAX

I've searched the entire Internet, all of it, and cannot find an answer to this. I'm using the ColdFusion CFWheels Framework to query a database. The query is done via AJAX like this: var id = $("#ship-id").val(); $.ajax({ type: "POST", …
user1430046
0
votes
1 answer

How to get my blog to properly list the OG information on FaceBook

I wonder if anyone could help me out here. I've been debugging and debugging. I tried putting aborts on the page in several places within the framework, both on the controller and view levels. But I still don't see why it should give an error. I am…
0
votes
1 answer

CFWheels - Why is allErrors() returning an empty array?

Yep... (me...again!) I am trying to troubleshoot some errors and when I go to dump allErrors() in my controller, it is simply an empty array, when I know for a fact it shouldn't be. link.cfc (model)
Michael Giovanni Pumo
  • 14,338
  • 18
  • 91
  • 140
0
votes
1 answer

User defined data collection help ColdFusion

I am trying to figure out what is the best way to accomplish data collection. Here is what I need to get accomplish: I am building a CRM using ColdFusion & MySQL to collect data. The data is different base on each user. User Examples: User 1:…
CF-Slayer
  • 169
  • 15
0
votes
2 answers

CFWheels - Plugins get deleted for no apparent reason

I had issues with plugins earlier, but it turned out to be a glitch with my host 'Hostek'. Okay I thought, I'll setup a local Railo / Tomcat environment and work locally. All works well...except plugins...again! No matter what I seem to do,…
Michael Giovanni Pumo
  • 14,338
  • 18
  • 91
  • 140
0
votes
1 answer

update() and save() methods result in "no matching method/function" in railo

I'm trying to run a very quick update query to record that a user's email address is confirmed (setting the confirmed [bit] column in my users table to 1 after they click a link sent via email). Here's the action that should do it:
Brian D
  • 833
  • 7
  • 11
0
votes
2 answers

Selecting specific joined record from findAll() with a hasMany() include

(I tried posting this to the CFWheels Google Group (twice), but for some reason my message never appears. Is that list moderated?) Here's my problem: I'm working on a social networking app in CF on Wheels, not too dissimilar from the one we're all…
Brian D
  • 833
  • 7
  • 11
0
votes
3 answers

Error with inserting into mysql database

I am using cfwheels (coldfusion orm framework). I recently moved some data from my previous host to a new one. Now I am trying to insert into a table, but am getting an error message: "Error Executing Database Query. Duplicate entry '13651' for key…
yomexzo
  • 665
  • 1
  • 6
  • 22
0
votes
1 answer

many to many relationship cfwheels inner join

i have a couple of problems with cfwheels (n:m relationsship) here my database schema rights righthaspath path -id -------| -id --> -id -role -->-rightid (FK) | -url -pathid …
hans maeier
  • 45
  • 1
  • 7
-1
votes
1 answer

CFWheels - Dynamically Add Pages, Make URL Friendly

I'm planning on creating a CMS for a website in CFWheels. The concept is that an admin user would log in and be able to add/edit/delete pages to the website. I'm sure others are doing this so just wanted some feedback on what methods you are using…
Guest
  • 381
  • 2
  • 7
  • 22
1 2 3
10
11