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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -