Define (' Discuz_root ', substr (DirName (__file__), 0,-7));
This is a constant in Discuz that defines the forum installation root directory. Now let's analyze this simple but very practical constant.
Let's start by explaining that the absolute path to the common.inc.php file is assumed to be F:\webroot\bbs\include\common.inc.php in this article.
This sentence is contained in the include/common.inc.php of Discuz, first we look at the value of the cons
users can restore the cookie and use the session again. You can leave all indexes in $ _ Session empty.2) store the webroot file of the session on the website or the webroot file stored in the database as a fileThe default path for saving sessions on the server can be hijacked, especially in a shared host environment.
5. Password1) Use strong passwordsPassword that requires numbers, symbols, upper and lowe
. node. js has a built-in FS module, so that we can read and write files. To organize a directory, follow these steps:
Myhttpserver
| _____ App. js
| _____ Webroot
| _____ Index.htm
Here, the webroot folder is the home of our static page. We hope that we will be able to access the page from the client if we lose it in the future. You can paste a few lines in the index.htm file. Later we will read them from
I. Introduction
Function: WYSIWYG. Images and Flash are supported. The toolbar is configurable and easy to use.
Compatibility: IE 5.5 +, Firefox 1.5 +, Safari 3.0 +, Opera 9.50 +, Netscape 7.1 +, and Camino 1.0 +
Maturity: widely used and used by Baidu and CSDN
Ii. DownloadOfficial download homepage: http://www.fckeditor.net/download/. the current homepage is 2.5.1.
Download FCKeditor 2.5.1(fckeditor_2.5.1.zip)and fckeditor.java(fckeditor-2.3.zip)
Iii. DeploymentIn this example,
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 practical constant.
First describe this articleArticleAssume that the absolute path of the common. Inc. php file is F: \ webroot \ BBS \ include \ common. Inc. php.
This sentence is included in discuz's include/common. Inc. php. First, let's take a look at the value of the c
manages resources in the resource package. In short, the resource package is a resource set placed in a directory. when a resource package is registered in the view, when rendering a Web page, the CSS and JavaScript files in the package are included.
Define a resource package
The resource package is specified as the PHP class that inherits yii \ web \ AssetBundle. the package name is the PHP class name that can be automatically loaded. in the resource package class, you must specify the resourc
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 practical constant.In this article, we assume that the absolute path of the common. inc. php file is F: \ webroot \ bbs \ include \ common. inc. php.This sentence is included in discuz's include/common. inc. php. First, let's take a look at the value of the constant DISCUZ_ROOT:
To use the text editor, select FCKeditor. The following configuration describes the environment:
Windows XP
Myeclipse6.0ga
Fckeditor2.6.3
Fckeditor2.3 1. Download
Official download homepage: http://www.fckeditor.net/download/. fckeditor_2.6.3.zip is used.
And FCKeditor-2.3 version
2. Deployment
In this example, webroot is used as the application root path. The directory structure after deployment is shown in: 1、fckeditor_2.5.1.zip decompress and copy
included.
Define a resource package
The resource package is specified as the PHP class that inherits yii \ web \ AssetBundle. the package name is the PHP class name that can be automatically loaded. in the resource package class, you must specify the resource location, which CSS and JavaScript files are contained and their dependencies with other packages.
The following code defines the main resource packages used by the basic application template:
In the above AppAsset class, the specified
phrase between So just open it on the browser: http://localhost:8080/index.html on the line.Path= "" is the URL path to run after deployment, Docbase is the file name for your war. During the first run, Tomcat automatically extracts the war and generates a site with the name specified by path.The "manager" in docbase here means that the war file name is called "Manager.war"Modify Server.xml to deploy multiple Web projects under TomcatThe first step:Server.xml modified as follows: Name="localho
This is a constant that defines the Forum installation root directory in discuz. Now let's analyze this simple but practical constant. 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 practical constant.
In this article, we assume that the absolute path of the common. inc. php file is F: \ webroot \ bbs \ include \ common. i
Learn how to introduce files in discuzphp: DISCUZ_ROOT. 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 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 practical constant.
In this article, we assume that the absolute path of the com
included.
Define a resource package
The resource package is specified as the PHP class that inherits yii \ web \ AssetBundle. the package name is the PHP class name that can be automatically loaded. in the resource package class, you must specify the resource location, which CSS and JavaScript files are contained and their dependencies with other packages.
The following code defines the main resource packages used by the basic application template:
In the above AppAsset class, the specified
in class path resource [META-INF/cxf. XML]: instantiation of bean failed; Nested exception is Org. springframework. beans. beaninstantiationexception:Cocould not instantiate Bean class [Org. apache. cxf. wsdl11.wsdlmanagerimpl]: constructor threw exception; Nested exception is Java. lang. linkageerror: jaxb 2.0 API jar is being loaded (from jar: file:/D: /Works/sources/projects/biap/trunk/biap-APP/webroot/WEB-INF/lib/javaee. jar! /Javax/XML/bind/anno
products project).Maybe some people still do not understand what the war package is, in fact, your project under the Webroot folder content (not add webroot this folder) into a compressed package, suffix with the war, in fact, and RAR almost, but Tomcat to recognize the war.Then why does the war bag tell the project to publish it?1. Because all new folders are in the W
\ AssetBundle. The package name is the PHP class name that can be automatically loaded. In the resource package class, you must specify the resource location, which CSS and JavaScript files are contained and their dependencies with other packages.
The following code defines the main resource packages used by the basic application template:
In the above AppAsset class, the specified resource file is placed in the @ webroot directory, and the correspo
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.