2016-07-03 6 views
0

私のプロジェクトにxcrudを使用しています。コードは以下の通りです。XCRUDボタンが動作しません

require('../xcrud/xcrud.php'); 
$xcrud = Xcrud::get_instance(); 
$xcrud->table('groups'); 
echo $xcrud->render(); 

これは美しい方法でレンダリングされます。 「追加」、「編集」などのボタンは機能しません。設定ファイルはokです。

私はLTE ADMINブートストラップテンプレートを使用しています。 jqueryの競合の原因になる可能性があります。私を助けてください。

+0

あなたはデモのテンプレートシステムを使用し –

答えて

0

データベースを確認してください。

これらのボタンには、PRIMARY KEYまたは一意のものが必要です。AUTO_INCREMENTの方が優れています。

+0

....私を助けてください? –

+0

...それは完全にブートストラップCSずにhtmlページで作業されてチェックされている – pablofr

0

すでにjqueryファイルをページに追加している場合は、xcrud_config.phpからxcrudのjqueryを無効にする必要があります。ライン41で

public static $load_jquery = false; // loads jQuery, turn it off if you already have jQuery on your page. jQuery version must be at least 1.7. If your jQuery loads in the bottom of page, you must activate $manual_load and use Xcrud::load_css() & Xcrud::load_js() on your page. 
public static $load_jquery_ui = true; // jQueryUI, turn it on if you already have jQueryUI on your page (datepicker and slider widgets are mandatory). 
関連する問題