Hi,
I've defined the link and used phalcon devTool to generate the various
classes for the Users, Projects and UserProj.
So, I have
class Projects extends \Phalcon\Mvc\Model
{
....
.....
public function initialize()
{
$this->hasMany("projid", "UserProj", "projid", NULL);
}
}
class Users extends \Phalcon\Mvc\Model
{
....
.....
public function initialize()
{
$this->hasMany("uid", "UserProj", "uid", NULL);
}
}
class UserProj extends \Phalcon\Mvc\Model
{
...
....
public function initialize()
{
$this->belongsTo("uid", "Users", "uid", array("foreignKey"=>true));
$this->belongsTo("projid", "Projects", "projid", array("foreignKey"=>true));
}
}
I have no idea to modify the user_proj templates like
views\user_proj\edit.volt and search.volt, etc ...
I would like to have drop-down list for the user to be able to select the
users to the project or project
to the user instead of the user id and project id.
Sorry! I am new to the framework.
On Wed, May 7, 2014 at 4:56 AM, le51 [email protected] wrote: