Posted 02 December 2012 - 03:02 PM
im new with Yii. Before i programmed my webpages with Joomla CMS or without an cms or framework.
For my first Project i want to create a website with frontend and backend.
But there I have an understanding-problem.
Where are the differents between an template (in root/themes/) and an layout (in root/protected/views/)?
From Joomla i know it in this way:
In one directory you have an template.
In a second directory you have your webpages which would be rendered in $contend.
Why did you have pages in the template directory?
Can you help me?
Posted 02 December 2012 - 09:07 PM
for short :
layout is used for different views of your project , if you have multi modules you can use different layout for each module .(module can think as a subSite )
but theme can be used for different lookAndFeels of you whole application !
Posted 03 December 2012 - 03:17 PM
But i still don't understand.
Where are the differents between Layout and Theme.
and in which context stands it with the modules?
From CakePhp i knew you has your Pages and in an other directory you have your Themes. It's linke skin's for your pages.
In Yii you have your pages in the View (Layout)-Directory and in the Themes directory ...
Sry i found out, that this is only the half truth ...
To learn i downloaded some themes, to have a look, and sometimes there are pages in the theme, sometimes the theme renders the pages vom the system.
Sry for my bad english