Latest news

Pass custom error message to zend/socialengine form from controller

$this->view->form = $form = new User_Form_Admin_Universities_Createdomain(); $this->view->university_id = $iId = $this->_getParam(‘id’, null); $form->populate(array(‘university_id’=>$iId)); if($this->getRequest()->isPost() && $form->isValid($this->getRequest()->getPost()) ) { $iExists = $oUniversitydomains->ifExistsDomain(‘domain’, $aData[‘domain’], $aData[‘university_id’]); if($iExists > 0) { $message = ‘Domain Name Already Registered’;              $form->getElement(‘domain’)->addError($message);              return; } }

Read More »

Fancybox intilialization and content loading from a URL

<script type=”text/javascript”> jQuery(‘document’).ready(function() { jQuery(‘#delete’).click(function(e) { e.preventDefault(); var selected_ids = new Array(); jQuery(“input:checkbox:checked”).each(function(){ selected_ids.push(jQuery(this).val()); }); if (selected_ids.length > 0){ var oDeleteUrl    = ‘<?php echo $this->baseUrl();?>/messages/delete/message_ids/’+selected_ids+’/place/inbox’;              jQuery(“#delete”).fancybox({                 ‘type’: ‘ajax’,                 ‘href’ : oDeleteUrl             }); } }); }); </script>

Read More »

sachin tendulakar’s last moments in cricket

Sachin circket era is end up with an incredible test victory at Mumbai Wangade stadium. We salute the legend of cricket,the god of cricket. He is a man with cute smile in his face always. The real gentle man with great talent. The people knows him beyond the cricket as real human. sachin is always a role model for any ...

Read More »

How to simply create a zend framework project?

I’m writing this tutorial based on LAMP(Linux Apache Mysql PHP)  development environment. You can create sample php zendframework project using terminal. For that type the following command smart@smarttips-System-Product-Name:~$ zf crate project /var/www/testzend If this package is not previously installed then will show this message The program ‘zf’ is currently not installed. You can install it by typing: sudo apt-get install ...

Read More »

mysql concatenate update query

We can append datat to the existing data in mysql field. Column name is email and value is “info@smarttips.com” UPDATE `engine4_users` SET email = CONCAT( email, ‘_test’ ) After the query execution the _test dat will be appended to email Output:info@smarttips.com_test

Read More »