Monday, 15 July 2013

php - CakePHP - generating different pages/views dynamically using a menu -



php - CakePHP - generating different pages/views dynamically using a menu -

i'm total beginner cakephp, , i'm trying build pretty basic website here has menu + ui stuff footer persist through pages.

the problem i'm having right in controller, have several different functions corresponding website's menu options grabs info database, wouldn't want create same number of views since every page has exact same setup.

so question what's standard or best practice accomplish this? read on elements , still kinda confused how done; how maintain track of page user browsing? , if click on menu option, how coded takes them "blah.com/home" "blah.com/contact"?

i know question kinda long , noobish i'd appreciate if help in origin cakephp.

for functions corresponding website's menu options grabs info database, set these in beforefilter() of app controller , utilize $this->set set variables , create element menu can phone call in layout. can set layout in controllers var $layout=''.

php cakephp menubar

No comments:

Post a Comment