Joke Collection Website - Talk about mood - How to modify 1 14la navigation source code?

How to modify 1 14la navigation source code?

Methods/steps

1 We need to download a copy of 1 14la navigation source code first. I use utf8 version here, and the publicity page is beautiful, but this is not the main thing. After downloading, we decompress the source code.

2. After decompression, we can see how to download the directory structure. Let me explain the function of each directory first.

Admin background management directory, in fact, almost all the functions are under this folder, and we basically only need to modify this folder.

The core directory contains the framework used by the system, which uses YII.

Ajax pages of several Ajax games

Html is a place to store pages generated in the background. There are two kinds, one is the home page and the other is the channel page, which is very simple to set in the background.

3. Let's talk about how to modify the home page. The default directory is the code for users to generate pages. Say it one by one.

Footer.php used to generate the code at the bottom of the page. Note that there are several js pages in this file.

The file Games_hot_ajax.php corresponds to the popular game part of the page.

Games_min_ajax.php game section

Games_web_ajax.php web game section

Wu Gou _ajax.php shopping area

Header.php generates the header of the page.

Index.php page home page, other files are called in this page, this file will be explained in detail later.

Inner.php is the channel page.

Left.php's home page? The content on the left

The main content of main.php's homepage is actually the right part.

Tools.php tool module parts

Yule_ajax.php entertainment section

4, said the file directory and function, let's take a closer look at the home page created by the file, look at the file.

& lt? PHP $ this-& gt; renderPartial('default/left),array(' x ' = & gt; $ x)); ? & gt

This part is the call template, by writing php code directly on the page, which most users should be able to understand.

5. Finally, the core code is actually very simple if every module is called. This system directly reads all the classifications and data in the database into an array. Take a look at the picture below. The array of $x in foreach is 9 1, which is the classification number. Does it feel overwhelming? If you need any classification in the future, call the id of the classification and loop.

Step reading

6. But you must clean up the advertisements in the code.

end

Matters needing attention

Analyze the code carefully.

Pay attention to the external links in the page.