Where is database config file in socialengine ? applications/settings/database.php Where is the general settings file in socialengine? applications/settings/general.php – maintenance code and site mode (development or production) Where is cache path settings? applications/settings/cache.php How to get Base url in socialengine? echo $this->getView()->baseUrl(); or echo $this–>baseUrl(); How to build a mysql query in social engine? $table =…
Author: smarttips
Add Custom Fields In Opencart through admin side
The following steps are used to add custom field offer in Opencart admin side(in add product section) Free Download http://www.opencart.com/index.php?route=extension/extension/download&extension_download_id=160521 Add a field named “Offer” to the product table in your MySql. SQL CODE: ALTER TABLE `product` ADD `offer` VARCHAR( 255 ) NOT NULL AFTER `model` ; Usage; <?php echo $text_offer; ?></span> <?php echo $offer;…
Zend framework select Query with order Random
Use order(‘RAND()’) in zendframework select query for fetching records in random. $usersTable = Engine_Api::_()->getItemTable(‘user’); $select = $usersTable->select() ->where(‘enabled = ?’, 1) ->where(‘approved = ?’, 1) ->order(‘RAND()’) ->limit(5);
jquery datetimepicker time and date format
Use the following script for getting the jQuery picked date in our format. <script type=”text/javascript”> jQuery(document).ready(function() { jQuery(“.editdatepicker”).datepicker({ dateFormat: “dd-mm-yy”, timeFormat: “HH:mm”, minDate: 0 }); }); </script>
The inventor of super computer?
Seymour Cray is the inventor of super computer.