Skip to content

Instantly share code, notes, and snippets.

View hunk's full-sized avatar
🤑
working

Edgar G @hunk hunk

🤑
working
View GitHub Profile
<?php
//strings:
//in main.php
Breeze::set_var('name', 'Edgar');
//in template (default.php)
{name} --> Edgar
//numbers:
//in main.php
Breeze::set_var('age', 26);
<?php
#example the helper functions in Breeze
/**
* Path the Wordpress : /home/sites/kasabian
* Url the Worspress : kasabian.local
* Module name: fire
* Template name : big
*
<?php
echo form_input('username');
echo form_textarea(array('name'=>'comentario','cols'=>5));
?>
$this->load->helper('kses');
<b>
<i>
$nueva_cadena=kses($cadena_con_tags,$tags_pemitidos);
$tags_permitidos = array('b' => array(), 'i' => array());
<?php
$tags_permitidos = array('b' => array(),
'i' => array(),
'a' => array('href' => array('minlen' => 3, 'maxlen' => 50),
'title' => array('valueless' => 'n')),
'p' => array('align' => 1,
'dummy' => array('valueless' => 'y')),
'font' => array('size' =>
array('minval' => 4, 'maxval' => 20)),
'br' => array());
<?php phpinfo(); ?>
<?php
/**
* Zend Framework Loader
*
* Put the 'Zend' folder (unpacked from the Zend Framework package, under 'Library')
* in CI installation's 'application/libraries' folder
* You can put it elsewhere but remember to alter the script accordingly
*
* Usage:
* 1) $this->load->library('zend', 'Zend/Package/Name');