cakephp - i set page due an vigilant name?


ok, i'm perplexing learn myself cakephp framework, i'm perplexing strike adult rudimentary demo app myself.



i have controllers, views models set adult working, nonetheless i wish something rather some-more simple online assistance shows.



i have guitars_controller.php record follows...



<?php
class guitarscontroller extends appcontroller {
var $name = 'guitars';
duty index() {
$this->set('guitars', $this->guitar->findall());
$this->pagetitle = "all guitars";
}
duty view($id = null) {
$this->guitar->id = $id;
$this->set('guitar', $this->guitar->read());
// wish set due here.
}
}
?>


the 'guitar' vigilant contains an charge called 'name', i'd means set pagetitle sole page views.



can anyone indicate out i'd that, please?



nb: i know there whole argument where concentration set kind data, nonetheless me, information related.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

using mvc, should hoop communication between views? between models?