Tuesday, 29 August 2017

90.social engine model

<?php

class User_Model_DbTable_Userpackages extends Engine_Db_Table
{
  protected $_name = 'user_packages'; //whrer db name is engine4_user_packages

}


in controller(user/model/db table)

$userPackagesTable             =  Engine_Api::_()->getDbtable('Userpackages', 'user');

No comments:

Post a Comment