Created
February 3, 2009 03:11
-
-
Save gregfroese/57273 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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