Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Plain Text by nit ( 13 years ago )
<?php
class FootersController extends AppController{
function beforeFilter(){
$this->loadModel('Footer');
$this->set($this->footer_links());
}
public function footer_links(){
$this->loadModel('Footer');
$this->layout='puneet';
$this->set('views',$this->Footer->find('all'));
}
public function view($id=NULL){
$this->loadModel('Footer');
$this->layout='puneet';
$this->set('views',$this->Footer->read(NULL,$id));
}
}
?>
<table>
<?php foreach ($views as $rs): ?>
<tr>
<td><?php echo $this->Html->link('View',array('controller' => 'footers', 'action' => 'view',$rs['Footer']['id'])); ?></td>
</tr>
<?php endforeach; ?>
<?php unset($rs); ?>
</table>
<h1><?php echo $views['Footer']['id']; ?></h1>
<p>Name:<?php echo $views['Footer']['name']; ?></p>
<p>Title:<?php echo $views['Footer']['title']; ?></p>
<p><small>Created:<?php echo $views['Footer']['created']; ?></small></p>
<p><small>Modified:<?php echo $views['Footer']['modified']; ?></small></p>
Revise this Paste