チームごとに4人のプレイヤーがいるので、 。私はチームにエラーを保存するために行くときリーグで選手を移入: "There is no ViewData item of type 'IEnumerable' that has the key 'Skip'` CreateTeamコントローラ: public ActionResult CreateLeagueTeam(int? id)
{
モデルのフィールドを選択リストに配置したいとします。 私はこのコードを持っている... brand.php & car.phpモデル class Brand extends AppModel{
var $name = 'Brand';
var $hasMany = 'Car';
}
<?php
class Car extends AppModel{
var $n
私のプロジェクトでEnumからSelectListを作成する必要があります。 私は以下の特定の列挙型から選択リストを作成するコードを持っていますが、ANY列挙型の拡張メソッドを作成したいと思います。この例では、各列挙値this postを参照 var list = new SelectList(
Enum.GetValues(typeof(eChargeType))
.C