RegExp For Detecting a URL
/((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi,'$1'
Magento Static Block Content
<?php echo $this->getChildHtml('StaticBlockName') ?>
Added to Misc by Sergei Filippov
Codeigniter Paging
// Set pagination
$config['base_url'] = base_url().'/faq/index/';
$config['total_rows'] = $this->db->count_all('faq');
$config['first_faq'] = 'First';
$config['last_faq'] = 'Last';
$config['full_tag_open'] = '<p class="footer">';
$config['full_close_open'] = '</p>';
$config['uri_segment'] = 3;
$config['per_page'] = 5;
$this->pagination->initialize($config);
Zend Action
public function <<**SelectionInsertionPlaceholder**>>Action()
{
}
Added to Misc by Kellan Craddock
Zend Controller
class <<**SelectionInsertionPlaceholder**>> extends Zend_Controller_Action
{
public function indexAction()
{
}
}
Added to Misc by Kellan Craddock
Zend Db Table Abstract
Class <<**SelectionInsertionPlaceholder**>> extends Zend_Db_Table_Abstract
{
function ()
{
}
}
Added to Misc by Kellan Craddock
Mouse Click Event AS3
myButton.addEventListener(MouseEvent.CLICK, myFunction, false, 0, true);
public function myFunction(e:MouseEvent):void {
trace("do Something");
}