I am using following to find data. $records = $this->ModelName->find(\'all\', array(\'fields\' => array(\'name\',\'email\')));
I have one user model and other is accesscode model. During registration I am using the user model where I have set some validation rules for form data.
Does anyone knows how to get table name from model name? Also I want to get all column names and its types of that model/table name. Is it possible to get such details of given model name?
I created a categories model. I also created a project model. The project model belongs to the categories model so when you create a new project, you recieve a category drop down to pick which categor
Is there a way to select all fields from a specific table in CakePHP? So something like: $this->Model1->find(\'first\',
I have a foreach loop that saves a bunch of records into a table using cakePHP foreach($interests as $id){
I have a registration page and within this registration page the user will be required to fill in some interest, the interests values is called from a model with the name interest.php, all values are
I have two tables: internet_access_codes and radacct. The internet_access_codes hasMany radacct records.
In CakePHP function edit I use read() function as: $this->data = $this->Article->read(null, $id);
Is it possible to use a behavior in Cakephp to set one of the basic variables? I want a different table per client.