Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 546 Vote(s) - 3.52 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create themes in yii framework?

#1
I am new to Yii framework. I was working on drupal earlier, and the theming of drupal made sites are not difficult to manage. But I just want to know that how to create theme for the site with Yii framework.

I have gone through many sites, but still don't know where to start. For example I have checked [

[To see links please register here]

.

Now my doubts are:

1. Where to start for creating Yii themes? Suppose I want to change drupal theme to Yii, How can I do this?
2. Is it possible to have different theme for different pages? Like in drupal by using themekey module, we can have multiple theme for different pages.

It will be good if anybody will explain it step by step.
Reply

#2
you can always download some of the simpler [Yii Themes][1] and see how they work.

--iM


[1]:

[To see links please register here]

Reply

#3
You can edit the layouts (*protected/views/layouts/..*). These are the wrapper views which are rendered around individual views rendered with `render()`, for example the *site/index* calls the index view (located at *protected/views/index.php*) using:
`$this->render("index");`

You can change the layout per action using:
`$this->layout = "differentlayout";`

You can set the layout for all actions within a Controller using:
`public $layout='//layouts/differentlayout';`


Obviously each layout can have a custom structure and loads different CSS and JS files. I know this isn't using the themes and [theming][1] but it is by far the most common way of customizing the look and feel of a Yii project

Here are some helpful links regarding YII theme development:

-

[To see links please register here]

-

[To see links please register here]

-

[To see links please register here]


[1]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through