Some interesting findings from web-dev land…
I wasn’t having much luck with the example given in the CakePHP book for a Has and Belongs To Many relationship with a single option select menu in the view.
Anyway overriding the element type does the trick:
1<?php echo $form->input(’ResellerField’, array(’multiple’ => false)) ?>
To create a helper which name consists of more than one word use the following naming convention:
12345678910111213# Helper name: MyHelper
# File name
app/views/helpers/my_helper.php
# Class name (Camel Case)
class MyHelper extends AppHelper
# In Controller (Camel Case)
var $helpers = array(’MyHelper’);
# In View (Camel Back):
$myHelper->method();
Quick refresher for my own records. CakePHP ACL component console commands:
1234567891011121314151617181920212223# View ACO tree
cake acl view aco
# Create root ACO container – in this instance site
cake acl create aco root site
# Create ACO controller node – in this instance the products controller
cake acl create aco site Products
# Create ACO controller action node – in [...]