Skip to content

Instantly share code, notes, and snippets.

View apipkin's full-sized avatar
🤖
^_^

Anthony Pipkin apipkin

🤖
^_^
View GitHub Profile
<a href="<?php echo $this->url(array(
'action'=>$this->component->getAction(),
'controller'=>$this->component->getController(),
'module'=>$this->component->getModule()
),'default'); ?>"> // adding default fixed the problem
@apipkin
apipkin / PM.php
Created January 25, 2010 15:33 — forked from anonymous/PM
<?php
define("XMLAPI","1");
include("common.php");
defp();
connect();
auth();
$id=$user_id;
$aaid=intval($_REQUEST[aaid]);
$id=$user_id;
$aaid=intval($_REQUEST[aaid]);
table view click event.
event . type = string
event . index = int
event . row = int
event . section = int
event . rowData = {}
event . detail = true | false
event . searchMode = true | false
event . target = {}
YUI.add("form-values", function(Y){
var _form,
_values
;
Y.Form = {
setForm : function(selector) {
if(selector !== null) {
YUI({
modules: {
'echofin-form-filter' : {
fullpath: 'echofin-form-filter.js',
requires: ['base','node','event']
}
}
}).use('echofin-form-filter',function(Y){
Y.on('domready',function(){
Y.all('.filtered').each(function(o){
YUI.add('form-filter', function(Y){
var Filter = function(config) {
config.node = config.host;
Filter.superclass.constructor.apply(this, arguments);
};
Y.mix(Filter,{
NAME : 'form-filter',
NS : 'filter',
YUI.add('form-filter', function(Y){
var Filter = function(config) {
config.node = config.host;
Filter.superclass.constructor.apply(this, arguments);
};
Y.mix(Filter,{
NAME : 'form-filter',
NS : 'filter',
var foo = 'bar';
function DefineVar() {
var foo = 'widget';
}
function UpdateVar() {
foo = 'wobble';
}
<?php
if ($file->isUploaded()) {
// handle file magik here
$tmp_file = $file->getFileName();
$upload_to = $config->dir->file->uploads;
$original_name = $file->getFileName();
$filename = substr($tmp_file,strrpos($original_name,'/') + 1);
YUI.add('echofin-modal-upload',function(Y){
var ioUpload = Y.clone(BASE_IO),
ul = Y.one(this.FORM_CONTAINER + ' ul');
;
ioUpload.method = 'POST';
ioUpload.url = BASE_URL + 'properties/property-pdfs/uploadImage/';
Y.Echofin.Modal.Upload = {