Smarty view renderer Allows you to use Smarty templates in Yii
#23
Posted 10 April 2011 - 03:19 AM
#24
Posted 10 April 2011 - 05:45 AM
#25
Posted 01 June 2011 - 09:13 AM
Not trying to criticize, maybe I'm missing something.. Just curious..??
#27
Posted 19 June 2011 - 01:40 PM
dans, on 01 June 2011 - 09:13 AM, said:
Not trying to criticize, maybe I'm missing something.. Just curious..??
Like everything it is a preference... I typically use Smarty because it allows web designers to easily modify the HTML without letting them break PHP, and allow the Code not to have to touch the HTML. I have found web designers are able to do what they need to do with Smarty and they have an easier time learning and implementing smarty then PHP. Most of the Smarty functions are designed to make HTML much easier.
... Just my .02
thanks,
Scott
#28
Posted 21 June 2011 - 09:27 AM
Quote
я подключил расширение и попытался сделать следующее:
создал файл main.tpl
создал файл auth.tpl, расширил от main.tpl
создал файл login_page.tpl, расширил от auth.tpl
Когда перехожу на страницу login_page то мне выводится main.tpl.
Полез в compiled, там два файла, первый собственно тот что выводится а второй по сути нужный мне файл который по какой то причине не отображается.
В чём может быть проблема?
Использую Yii 1.1.7 и Smarty 3.0.8.
Спасибо.
This post has been edited by Petroga: 21 June 2011 - 09:50 AM
#29
Posted 20 December 2011 - 09:15 AM
A
#30
Posted 20 December 2011 - 04:49 PM
#31
Posted 01 March 2012 - 03:06 AM
I use this configurations below:
'cache_dir' => './protected/runtime/smarty/cached',
'caching' => true,
'cache_lifetime' => 120,
But it don't work fine. The frontend will not work correctly.
#32
Posted 30 July 2012 - 09:32 AM
I try this:
{$this->beginWidget('CActiveForm', [
'id'=>'contact-form',
'enableClientValidation'=>true,
'clientOptions'=>[
'validateOnSubmit'=>true
]
],true)}but result display error like that:
Object of class CActiveForm could not be converted to string
Thanks.
#33
Posted 10 September 2012 - 02:07 AM
hadi, on 30 July 2012 - 09:32 AM, said:
I try this:
{$this->beginWidget('CActiveForm', [
'id'=>'contact-form',
'enableClientValidation'=>true,
'clientOptions'=>[
'validateOnSubmit'=>true
]
],true)}but result display error like that:
Object of class CActiveForm could not be converted to string
Thanks.
I also got the same problem.....any clu..?
#34
Posted 26 November 2012 - 09:31 AM
After following the github steps, i still got that :
Alias "application.extensions.yiiext.renderers.smarty.ESmartyViewRenderer" is invalid. Make sure it points to an existing PHP file and the file is readable.
even tried to change my extensions folder structure to have yiiext/renderers inside, but nothing works.
What am i missing out ?
How dit it worked for you ?
$ -help
#35
Posted 21 January 2013 - 10:56 PM
Can you explain how to use blocks or is it just not possible with the way Yii builds its pages?
I have been trying (unsuccesfully) to extend the base templates using blocks but they seem to be completely ignored and any content is rendered into the $content var regardless of blockname.
Also do I need to use the $content var?
I am trying to do a fully templated setup like this
inheritance is like this using extends and full Yii alias to parent template
main.tpl<-column2.tpl<-_index.tpl<-index.php
index.php is called via render() from siteController
_index.tpl is called via renderPartial() from index.php
or should I post this as an issue on github?
Thanks for any insight you can offer
#36
Posted 05 February 2013 - 04:59 AM
#37
Posted 01 March 2013 - 01:11 PM
AndreiCurelaru, on 26 November 2012 - 09:31 AM, said:
After following the github steps, i still got that :
Alias "application.extensions.yiiext.renderers.smarty.ESmartyViewRenderer" is invalid. Make sure it points to an existing PHP file and the file is readable.
even tried to change my extensions folder structure to have yiiext/renderers inside, but nothing works.
What am i missing out ?
How dit it worked for you ?
$ -help
Did you ever get a response to this question? I am having the same problem.
Thanks,
Adrian

Help













