Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can check out Yii. There isn't a template's system like Smarty or anything, you just have your view files with HTML and whatever PHP variables you pass over from your controllers. </p> <p><strong>EDIT</strong>: Heres an old example view I found, didn't have a link so I just pasted. The stuff referencing "widget" etc is just components of the framework, not template engine stuff. </p> <p><code> </p> <pre><code> &lt;!-- blueprint CSS framework --&gt; &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo Yii::app()-&gt;request-&gt;baseUrl; ?&gt;/css/screen.css" media="screen, projection" /&gt; &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo Yii::app()-&gt;request-&gt;baseUrl; ?&gt;/css/print.css" media="print" /&gt; &lt;!--[if lt IE 8]&gt; &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo Yii::app()-&gt;request-&gt;baseUrl; ?&gt;/css/ie.css" media="screen, projection" /&gt; &lt;![endif]--&gt; &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo Yii::app()-&gt;request-&gt;baseUrl; ?&gt;/css/main.css" /&gt; &lt;link rel="stylesheet" type="text/css" href="&lt;?php echo Yii::app()-&gt;request-&gt;baseUrl; ?&gt;/css/form.css" /&gt; &lt;title&gt;&lt;?php echo CHtml::encode($this-&gt;pageTitle); ?&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="container" id="page"&gt; &lt;div id="header"&gt; &lt;div id="logo"&gt;&lt;?php echo CHtml::encode(Yii::app()-&gt;name); ?&gt;&lt;/div&gt; &lt;/div&gt;&lt;!-- header --&gt; &lt;div id="mainmenu"&gt; &lt;?php $this-&gt;widget('zii.widgets.CMenu',array( 'items'=&gt;array( array('label'=&gt;'Home', 'url'=&gt;array('/site/index')), array('label'=&gt;'About', 'url'=&gt;array('/site/page', 'view'=&gt;'about')), array('label'=&gt;'Contact', 'url'=&gt;array('/site/contact')), array('label'=&gt;'Login', 'url'=&gt;array('/site/login'), 'visible'=&gt;Yii::app()-&gt;user-&gt;isGuest), array('label'=&gt;'Logout ('.Yii::app()-&gt;user-&gt;name.')', 'url'=&gt;array('/site/logout'), 'visible'=&gt;!Yii::app()-&gt;user-&gt;isGuest) ), )); ?&gt; &lt;/div&gt;&lt;!-- mainmenu --&gt; &lt;?php if(isset($this-&gt;breadcrumbs)):?&gt; &lt;?php $this-&gt;widget('zii.widgets.CBreadcrumbs', array( 'links'=&gt;$this-&gt;breadcrumbs, )); ?&gt;&lt;!-- breadcrumbs --&gt; &lt;?php endif?&gt; &lt;?php echo $content; ?&gt; &lt;div id="footer"&gt; Copyright &amp;copy; &lt;?php echo date('Y'); ?&gt; by My Company.&lt;br/&gt; All Rights Reserved.&lt;br/&gt; &lt;?php echo Yii::powered(); ?&gt; &lt;/div&gt;&lt;!-- footer --&gt; &lt;/div&gt;&lt;!-- page --&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p></code></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload