yii-extensions

    0熱度

    1回答

    我想設置一個字段,只有當另一場選定值不等於11 我已經試過了這個例子 array('role', 'ext.YiiConditionalValidator', 'if' => array( array('role', 'compare', 'compareValue'=>"11"), ), 'then' => arra

    0熱度

    2回答

    我有一個用戶設置頁面,用戶可以在其中更改應用程序的設置。用戶可以輸入0和10見截圖之間的數字:http://oi43.tinypic.com/2uerazp.jpg 現在我想用yiiframework的CJuiSliderInput小部件輸入字段轉換成一個範圍滑塊:http://www.yiiframework.com/doc/api/1.1/CJuiSliderInput#maxAttribut

    1熱度

    1回答

    我試圖在我的應用中使用RBAC和Auth擴展。我能夠通過擴展喜歡這裏提供 GUI添加層次: 什麼我試着是增加bizRule到updateOwnPost現在要做的。 據link我需要添加一些代碼: $auth=Yii::app()->authManager; $auth->createOperation('createPost','create a post'); $auth->createO

    1熱度

    3回答

    我是新來的Yii並下載該擴展 https://github.com/mishamx/yii-user 我已經上傳了所有必需的文件到保護/文件夾 但我不斷收到這個錯誤。我錯過了什麼? Alias "user.UserModule" is invalid. Make sure it points to an existing PHP file and the file is readable. /

    1熱度

    1回答

    對不起真的是新的yii,但我在哪裏把yii-booster 2.0文件? 我試過把所有文件放入擴展名/引導文件夾。 我然後編輯的config/main.php,並將此 'bootstrap' => array( 'class' => 'bootstrap.components.Bootstrap', ), 和 'preload'=>array( 'log',

    -1熱度

    2回答

    這是我的查詢: SELECT test.zipcodes.ZIP, test.zipcodes.State, test.dealers.dealer_name, test.dealers.address1, test.dealers.address2, test.dealers.city, test.dealers.state, locator.locations.storenam

    0熱度

    2回答

    我創建了兩個使用Chtml :: dropdown列表的下拉列表,如下所示。現在 echo $form - > dropDownList($model, 'min_cost', Yii::app() - > params['cost_resales'], array( 'empty' = > 'Choose one', ) ); echo $form - > dr

    1熱度

    2回答

    我在我的項目中使用了Yii-user模塊,並且我想知道是否有一些「afterLogin」回調函數可以用來運行我自己的一些代碼(現在我只需要添加一個如果用戶被正確認證,那麼會話中的幾個變量)。

    -1熱度

    4回答

    iam試圖在yii web應用程序中寫入文件代碼在視圖文件中,我想在保護/配置文件夾中寫入一個文件可以建議我fopen ($file,'w'); 我以下如何是下面的錯誤被拋出我 的fopen(../../配置/ main.php),其我用 $my_file = '..\..\config\main2.php'; $file=fopen("..\..\config\main2.php","w");

    0熱度

    1回答

    我是Yii框架的新手。我創建使用下面的代碼下拉列表 - echo $form->dropDownList($model, 'min_cost', Yii::app()->params['cost_resales']); 這產生的HTML一樣 - <select id="SearchForm_min_cost" name="SearchForm[min_cost]" > <option val