model的命名規則
{$app_id}_mdl_{$mod_path}
例如:
model: b2c_mdl_cart_objects
$app_id = b2c
$mod_path = cart/objects.php
b2c_mdl_cart_objects
存放位置: app/b2c/model/cart/objects.php創建自己的model
').addClass('pre-numbering').hide();
$(this).addClass('has-numbering').parent().append($numbering);
for (i = 1; i
<code><span><span><?php</span><span><span>class</span><span>base_mdl_apps</span><span>extends</span><span>base_db_model</span>{</span> ... }</span></code>以上就介紹了 Ecos model,包含了方面的內容,希望對PHP教學有興趣的朋友有幫助。