Greetings ladies and gentlemen,

I am trying to put together my very first quasi-real cake app (in that
I'm just using it for the admin side of a site) and so far I've run
into a couple of things that I'd like to do that I can't figure out.

One, I'd like to be able to add new constants.  Usually I define things
like SITE_EMAIL or ERROR_EMAIL, MAX_ITEMS_PER_PAGE, etc., and I'd like
to have that available in my Cake App too.

Two, I have a field that is going to probably be a select box, but the
two options are never going to change or be added to.  I could make a
table with the two possible options, and have cake do all the magic in
my scaffolding, but I hoped there was a way to do a similar thing with
an array.  i.e. I would define some kind of array in the model or the
controller, and on the list page, instead of seeing a bunch of 1s or 2s
I would see "1 day course" or "2 day course".  Hopefully this makes a
little sense...

Three, I was noticing that the list page of the scaffolding would
pretty much be exactly the html I'd want for my own list page, except
that no one really wants to look at the Id field in the list.  Is there
a way to remove that from the default scaffold view?

Thanks for hearing me out,
Jeff Day


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to