This file contains 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
namespace App\Model\Entity; | |
use Cake\ORM\Entity; | |
class Article extends Entity | |
{ | |
protected function _getTitle($title) | |
{ | |
return ucwords($title); | |
} |
This file contains 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
/////////controller | |
public function getowner() { | |
$id = $_GET['id']; | |
$data = $this->Powners->get($id); | |
$petowner = $data->oname; | |
$ostreet = $data->ostreet; | |
$retvalue = $petowner . "|" . $ostreet; |
This file contains 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 getowner() { | |
$id = $_GET['id']; | |
$data = $this->Powners->get($id); | |
echo json_encode($data); | |
} |
This file contains 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
$("#myTable td:nth-child(1)").click(function(event) | |
{ | |
event.preventDefault(); | |
var $td= $(this).closest('tr').children('td'); | |
var currentCellText = $td.eq(0).text(); | |
var CellText = $td.eq(1).text(); | |
$.ajax({ | |
url:'<?php echo "getowner";?>', | |
type: 'GET', | |
data: 'id='+currentCellText, |
NewerOlder