Slideshow And Lightbox

Hi all!

I am new to YII so like others I am trying to get familiar with YII programming styles. I have two basic problems:

1- Header Slideshow

Just like wordpress in which we can associate single image to header for each page as well as multiple images to a page which starts a slideshow in header. In pure PHP language (without framework), we can do that by creating a recordset from database and generate all required HTML structure in a file and then include that file in main index.php file.

I need to know how can we achieve the same result in YII?

2- Popup/Lightbox

As you know the popup boxes does not render full page i-e, it does not contain any top menu, header or footer. Just a specific content like a login box, a mini contact form etc …

Can you please explain how can this be achieved in YII?

I shall be very thankfull to all of you…

Thanks

  1. Create a db table, AR class, and a widget to display photos anywhere you want.

  2. Download js files, register it on any page you need and follow the Lightbox plugin instructions ;)