Hi,

I'm creating some templates for views and controllers using
cake1.2.0.5427.   I want to to have order columns so that if I use a
certain column name the controller will generate a changeOrder
function.
For example assume the following table menu_items:

table menu_items( id, itemname, itemlink,sortorder )

If I detect the sortorder column name I want up and down arrows to be
displayed so that I can easily re-order the menu items.

All of the view templates are in basically place but I'm working on a
vendors/shells/tasks/controller.php.

I've defined $orderColumns = array('sortorder'); in app/config/
core.php.

My problem is this: I want to define a constant $orderColumns that can
be referenced when I call 'console/cake bake'. Where do I define
$orderColumns?

$orderColumns is available in console/cake.php but the not in shells/
tasks/controller.php or shells/templates/views/index.ctp when I'm
trying to bake a controller or view.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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