SELECT form elements builder?

yourcomputergenius | 3 years ago

HEy guys and gals,

Is there a SELECT builder function somewheres included in the framework?

I've browsed through the code... but perhaps I missed it?

Thanks!



KrisJordan | 3 years ago

The method chaining going on underneath the covers with Recess models is building a SELECT statement.

For example, supposing you had a User model that represents the users table in the database. This Recess command:

Make::a('User')->equal('email', 'kris@newmediacampaigns.com');

Becomes: 'SELECT * FROM users WHERE email = "kris@newmediacampaigns.com"

For more info check out this quick tutorial: http://www.recessframework.org/page/recess-models-at-a-glance

reply

yourcomputergenius | 3 years ago

Thanks for the response, Kris! I really love what you are doing with this framework...

I actually meant to ask about the form classes but I didn't formulate my question very well -- I see how to generate DateTime form elements, and Text elements and so on, I was wondering about rendering a select - option input automatically...

Cheers!
Don

reply

yourcomputergenius | 3 years ago

Ah, I found it in the bleeding edge version - thanks!!!

reply



Welcome KrisJordan!

Web: http://www.krisjordan.com/

Location: North Carolina

Edit Profile