php - Public form with URL params -
php - Public form with URL params -
i'm trying create public form ('controller/create/1'). layout needs same whole page. looks administration page.
function create($id){ $this->layout = 'inner'; }
once set layout requests stuff within layout template.
so how should pass required parameters of form? validations , on, assuming main missing parameter form html template file - rendered.
there established convention controller action looks template file renderer. in case cakephp looks template file views/controller/create.ctp
- , there should form code written.
i suggest start nice blog tutorial here: http://book.cakephp.org/1.2/en/the-manual/tutorials-examples/blog.html#adding-posts
you find illustration of how validation done there well.
php cakephp cakephp-1.2
Comments
Post a Comment