This is what I want to do:
class Contacts {
private $_plural = 'contacts';
private $_single = 'contact';
private $_factory = 'contactfactory';
private $_model = 'contact_model';
private $_idname = $_plural . "Id";
function a($$_idname = 0) {
}
}
These two lines:
private $_idname = $_plural . "Id";
and
function a ($$_idname = 0) {
aren't working. Why? And how can I fix this?
EDIT
About the function argument:
If $_idname = "contactId" I want the argument to be $contactId. That's why I have two dollar signs there. This might be not the correct way to handle this, but this is what I want to accomplish.