|
|||
|
Hi everyone,
I'm new to the zend framework but I have about 1 years PHP experience not very long exposure to objects in PHP though. How I used to build my sites was to have 1 template PHP file and use that for every page passing it includes for different sections/pages. I'm new to MVC and have done the tutorials on the official website but I cant figure out whats the best approach to making templates using the framework. Is there a better method to get the same effect without having to copy and paste a huge block of formating html for each view. I'm sorry I've looked through the API but cant seem to see what is the proper way to go about it. Any help to point me in the right direction would be greatly appreciated. thank you. |
|
||||
|
I've just been working through various tutorials on Zend_Layout e.g. simple-zend_layout-example.
Give it a look it may be what your after! edit ********* Zend_Layout if part of zf 1.5 Last edited by greboguru : 02-08-2008 at 10:29 AM. |
|
|||
|
Quote:
|
|
|||
|
Anyone got this to work using the latest library? I've downloaded his version and it works fine using his library 'lib' contained in the zip document but when I try and use the newer library 'library' that I downloaded from the zend website all I get is a blank page.
I know this code is out of date but I don't want to continue working with the old library so if anyone has a solution to make this example work on the latest library please share with us all. It will make it easier to understand for the rest of us starting off. thank you. |
|
||||
|
Hi,
I've just downloaded the zip from the site and installed the code. I tried it with the included framework and it worked OK. I dropped in the 1.5.OPR version of the framework and it still worked OK, no tweaks, no nothin'. I would have preferred a blank page .... have you checked the error log for clues? |
|
|||
|
Quote:
Well at-least we know why it was not working now. Hopefully others may find this handy. thank you again you've been great help. sone. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|