Skip to content

Instantly share code, notes, and snippets.

@gregfroese
Created February 3, 2009 03:11
Show Gist options
  • Save gregfroese/57273 to your computer and use it in GitHub Desktop.
Save gregfroese/57273 to your computer and use it in GitHub Desktop.
public function editAboutMe_ajax($params) {
$this->show_layout = false;
$resp = new SilkAjax();
$this->set("params", $params);
$this->set("formType", "edit");
$resp->replace_html("#AboutMe", $this->render_partial("edit_about_me_ajax.tpl"));
return $resp->get_result();
}
public function Portfolio( $params ) {
if( isset( $params["ajaxAction"] ) ) {
$this->show_layout = false;
switch( $params["ajaxAction"] ) {
case "edit":
$this->editAboutMe_ajax($params);
break;
case "save":
$this->saveAboutMe_ajax($params);
break;
}
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment