-- Ionut Gabriel Stan <[EMAIL PROTECTED]> wrote
(on Thursday, 17 January 2008, 12:30 AM -0800):
> Your problem right now is that your views won't get parsed as PHP,
> unless you add an Apache directive in .htaccess or http.conf.
>
> The reason I see using .phtml instead of using .php or .html is
Thanks for your reply.
I was also thinking the same but I am able to run php code in my HTML file.
I am able to print the baseURL() helper value in my HTML file. I have
checked my httpd.conf file too and there is no entry for making HTML file to
read php code. Also I am not able to find any such
Actually I am having 2 modules in my application 1 is the default module and
2 one is app module. I just want HTML pages in my default module where I
would like to run my static site.
So thats why I havn't added the code into my bootstrap file.
Andries Seutens wrote:
>
>
> Hi,
>
> I'd recomm
I've realized I said something wrong, the files are
still interpreted. I keep the semantics reason.
--- Ionut Gabriel Stan <[EMAIL PROTECTED]> wrote:
> Your problem right now is that your views won't get
> parsed as PHP, unless you add an Apache directive in
> .htaccess or http.conf. The reason I
Your problem right now is that your views won't get
parsed as PHP, unless you add an Apache directive in
.htaccess or http.conf. The reason I see using .phtml
instead of using .php or .html is that these files
need to be interpreted by the PHP engine _while_
they're more like HTML than PHP. The cho
Hi,
I'd recommend you do put this code in your bootstrap file. This way you
don't have to call it in every controller.
phtml or html doesn't make much of a difference, but it all depends on
your server setup / directory structure. It's best practice to put the
views, controllers, etc ... abov
Thanks for your prompt reply. I have written the following code in my
controller's init() function and it is working fine.
$viewRenderer = $this->_helper->getStaticHelper('viewRenderer');
$viewRenderer->setViewSuffix('html');
- Is the above code is OK, as per the best practice/approach?
- Al
Hi,
phtml, stands for php html...
you can modify it like so:
$viewRenderer =
Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
$viewRenderer->setViewSuffix('html');
Best,
Andries Seutens
http://andries.systray.be
ashish.sharma schreef:
Hello ALL, It's a very basic qu
Hello ALL,
It's a very basic question but I think it will help many others too. I need
to know why we use .phtml files for views .. is there any specific reason
for this? Also, can we render HTML files .. if So, then how?
Waiting for reply ..
Thanks
--
View this message in context:
http://w