Define (' Discuz_root ', substr (DirName (__file__), 0,-7));
This is a constant that defines the forum installation root directory in Discuz. Now let's analyze this simple but very practical constant.
first of all, it is assumed that the absolute path of the common.inc.php file in this article is F:\webroot\bbs\include\common.inc.php
This sentence is contained in Discuz's include/common.inc.php, and first let's look at the value of Discuz_root this c
file, you do not need to restart the server to achieve synchronization of the page display.It is understood that the docbase of the actual directory will be mapped to the virtual project path under the ${tomcat.home}\webapps directory (where the configuration refers to the Userapp project).
Perhaps some people still do not understand what the war package is, in fact, is your project under the Webroot folder content (not add
class that inherits Yii\web\assetbundle, the package name is an automatically loaded PHP class name, and in the resource bundle class, you specify the location of the resource, which CSS and JavaScript files are included, and dependencies on other packages.
The following code defines the primary resource bundle used by the underlying application template:
If the Appasset class specifies that the resource file is placed in the @webroot
Configuration
Using CXF makes it easy to publish ordinary Java classes as webservice.
First in the official website download Apache-cxf-3.1.1.zip, decompression after the Lib folder to copy all the jar files to the project Webroot/web-inf/lib directory
Then configure Web.xml and add the following
The Contextconfiglocation value specifies the file that we will configure WebService, and classpath information is recorded in the project root. classpath
Convert a Java project to a Web project in eclipse1. Locate the Project Workspace directory, open the. project file, and modify the file,Modify the following:Locate the:2. On the Eclipse Project, refresh the project.3, on the project, enter the attribute (properties)4. Select "Project Facets" in the list item on the left, select "Dynamic Web Module" and "Java" on the right, (if you want to modify eclipse default WebContent to Webroot, click further Co
configuration satisfies the minimum requirements by Yii .)
Create a new application
Yii installation location is already known to you
WebRoot is the root directory configured on your Web server
Go to the framework directory from your command line and execute the following content:
% cd Webroot/testdrive/framework % yiic webapp ../../testdrive Create a Web application under '/
to store pictures of the path, overjoyed Ah, but then the problem came, the site after the publication, the directory structure changed, the operation error, and then thought of Project.json This file under the first item:This is before release: "Webroot": "Wwwroot"This is post: "Webroot": ". /.. /.. /.. /.. /wwwroot "This is not very simple, first get Project.json this file, and then get the node "
Theming is a systematic way to customize the appearance of Web pages in a Web application. By adopting a new theme, the overall appearance of the Web application can be changed immediately and dramatically.
In Yii, each topic is represented by a directory that contains view files, layout files, and related resource files, slices, CSS files, JavaScript files, and so on. The name of the subject is his directory name. All topics are placed in the same directory
three matching rule definitions, as follows=/ { proxy_pass http://tomcat:8080/index^~/static/ { / webroot/static/~* \. (gif|jpg|jpeg|png|css|js| ico) $ { /webroot/res// { proxy_pass http://tomcat:8080/ }Rewrite rulesThe rewrite function is to implement URL rewriting and redirection in conjunction with regular expressions and flag bits using nginx-provided global variables or variables that you
the html format to make the generated pdf more beautiful and watermark more appropriate ).
?
Now, the html file is successfully generated. the code is as follows:
$ Pdf = new TCPDF (pai_page_orientation, pai_unit, pai_page_format, true, 'utf-8', false); $ pdf-> SetCreator (pai_creator); $ pdf-> SetMargins (pai_margin_left, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); $ pdf-> SetAutoPageBreak (TRUE, PDF_MARGIN_BOTTOM); $ pdf-> setImageScale (pai_image_scale_ratio); $ pdf-> AddPage (); $ pdf-> SetFont ('dr
Recently, I was working on a web project. I found a small module to take notes and sorted it out a little. Well, I entered the question.
The framework used in the entire project is roughly as follows: backend> STRUTS + spring + JPA;
Foreground> jggrid
The following is the background function logic of the entire project:
The following section shows the front-end page:
This is the jar package used by the system:
Because struts labels are used, you need to introduce the file (the path is abov
team, heads also set a Zhuge Liang, there are problems and others to communicate more.
Anyway In order to let everyone no longer detours, introduce how I do, in fact, very simple. I am using socket upload, when there is a file upload completed, if it is an audio file, I will turn him into a mp3 format. Whether it's AMR format or CAF format, and any audio format, it's OK.
First of all, download Ffmpeg.exe, very easy to search, can be from the official web. Because we are only used for transcodin
Original post address: http://blog.csdn.net/wzl002/article/details/5969469This time, I started a web project from scratch and found that there are not many instructions on Spring 3.0 on the Internet. So I would like to take this opportunity to record the process of configuring a basic web project, mainly spring 3, in fact, most of them are similar to 2.
Step 1: Create and deploy a WEB Project (skip)1. Here I would like to briefly describe the WEB Project. In fact, the most basic of a wen project
address bar of your browser and the configuration of your server will be shown below. Use the Check tool to determine that the server is not installing and using extensions or components, but it only gives a recommendation to ensure that the installation can be determined. As you can see, the results of the tests below are not all Passed (passed), and some show warning (warning). Of course, your configuration may be slightly different, so your display results will vary. In fact, the following d
A small module case of the JPA project, a JPA project module case
Recently, I was working on a Web project. I found a small module to take notes and sorted it out a little. Well, I entered the question.
The code for the entire project is here: http://download.csdn.net/detail/leopard100/7712375
The framework used in the entire project is roughly as follows: backend> Struts + Spring + JPA;
Foreground> jgGrid
Database> Oracle
The following is the background function logic of the entire project:
T
placed in a directory, and when a resource bundle is registered in a view, the CSS and JavaScript files in the package are included when the Web page is rendered.
Defining Resource Bundles
The resource bundle is specified as a PHP class that inherits Yii\web\assetbundle, the package name is a PHP class name that can be loaded automatically, and in the resource bundle class, you specify the location of the resource, which CSS and JavaScript files are included, and the dependencies that are relat
add, in this project due to the time relationship, I simply added a Web site identifier at the end of the HTML (because the PDF was generated in HTML format, so you can modify the HTML format to make the resulting PDF more aesthetically pleasing and more relevant to the watermark).
?
OK, so this HTML generated PDF document is successful, the code is as follows:
$pdf = new TCPDF (pdf_page_orientation, Pdf_unit, Pdf_page_format, True, ' UTF-8 ', false); $pdf->setcreator (pdf_ CREATOR); $pdf->setm
If we open more than one file at a timeLook at the files in the current directory:[Email protected]/data/webroot/testroot/application/modules/admin/Views $ lltotal -drwxr-xr-x2Wangkongming wangkongming4096July - -: the. DRWXR-xr-x4Wangkongming wangkongming4096JuneTen -: - ..-rw-r--r--1Wangkongming wangkongming515July - -: Aadd.html-rw-r--r--1Wangkongming wangkongming646July6 -: theedit.html-rw-r--r--1Wangkongming wangkongming $JuneTen the: $foote
strength of the team, Three Stooges also set a Zhuge Liang, have problems and have to communicate with others.Anyway In order to let everyone no longer detours, introduce me how to do, in fact, very simple. I am using the socket upload, when there is a file upload finished, if it is audio files, I will turn him into MP3 format. Both AMR format and CAF format, as well as any audio format, are available.First of all, download Ffmpeg.exe, it is easy to search, can be from the official website. Bec
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.