I want to use a form variable inside a cakephp model class variable $actsAs.Below is an example code.
public $actsAs = array('MeioUpload' => array('doc' => array('allowedMime' => array('application/x-compressed','application/x-zip-compressed','application/zip','multipart/x-zip'),'dir'=>'uploads'.DS.$this->data['User']['foldername'])));
In the above code i have used a form variable ($this->data['User']['foldername']) in the $actsAs array for passing directory name to meioupload behaviour.
What can be the write process to implement it.
That definition is wrong.
You can set that data from the constructor though.
Something like that would do the trick.