PHP Extension “curl” must be loaded,Magento Installation problem Commands For Debian/Ubuntu based systems type in terminal sudo apt-get install php5-curl sudo /etc/init.d/apache2 restart Redhat or CentOS based systems type (as root)in terminal yum install php5-curl /etc/init.d/httpd restart
SocialEngine question and answers
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 =…
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>