本文整理汇总了PHP中PerchAPI::app_path方法的典型用法代码示例。如果您正苦于以下问题:PHP PerchAPI::app_path方法的具体用法?PHP PerchAPI::app_path怎么用?PHP PerchAPI::app_path使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PerchAPI
的用法示例。
在下文中一共展示了PerchAPI::app_path方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PerchAPI
<?php
# include the API
include '../../../../core/inc/api.php';
$API = new PerchAPI(1.0, 'perch_gallery');
$Lang = $API->get('Lang');
# include your class files
include '../PerchGallery_Albums.class.php';
include '../PerchGallery_Album.class.php';
include '../PerchGallery_Images.class.php';
include '../PerchGallery_Image.class.php';
include '../PerchGallery_ImageVersions.class.php';
include '../PerchGallery_ImageVersion.class.php';
# Set the page title
$Perch->page_title = $Lang->get('Gallery: List Images');
$Perch->add_css($API->app_path() . '/admin.css');
$Perch->add_javascript($API->app_path() . '/upload.js');
# Do anything you want to do before output is started
include '../modes/images.list.pre.php';
# Top layout
include PERCH_CORE . '/inc/top.php';
# Display your page
include '../modes/images.list.post.php';
# Bottom layout
include PERCH_CORE . '/inc/btm.php';
示例2: PerchAPI
<?php
# include the API
include '../../../../../core/inc/api.php';
$API = new PerchAPI(1.0, 'perch_blog');
$Lang = $API->get('Lang');
# include your class files
include '../../PerchBlog_Posts.class.php';
include '../../PerchBlog_Post.class.php';
include '../../PerchBlog_Sections.class.php';
include '../../PerchBlog_Section.class.php';
include '../../PerchBlog_Tags.class.php';
include '../../PerchBlog_Tag.class.php';
include '../../PerchBlog_Comments.class.php';
include '../../PerchBlog_Comment.class.php';
include '../../PerchBlog_Authors.class.php';
include '../../PerchBlog_Author.class.php';
include '../../PerchBlog_Cache.class.php';
include '../../PerchBlog_Util.class.php';
# Set the page title
$Perch->page_title = $Lang->get('Posterous Import');
$Perch->add_css($API->app_path() . '/assets/css/blog.css');
# Do anything you want to do before output is started
include '../../modes/import.posterous.pre.php';
# Top layout
include PERCH_CORE . '/inc/top.php';
# Display your page
include '../../modes/import.posterous.post.php';
# Bottom layout
include PERCH_CORE . '/inc/btm.php';
示例3: PerchAPI
<?php
# include the API
include '../../../../core/inc/api.php';
$API = new PerchAPI(1.0, 'perch_events');
$Lang = $API->get('Lang');
if (!$CurrentUser->has_priv('perch_events.categories.manage')) {
PerchUtil::redirect($API->app_path());
}
# include your class files
include '../PerchEvents_Categories.class.php';
include '../PerchEvents_Category.class.php';
# Set the page title
$Perch->page_title = $Lang->get('Manage Event Categories');
# Do anything you want to do before output is started
include '../modes/cat.list.pre.php';
# Top layout
include PERCH_CORE . '/inc/top.php';
# Display your page
include '../modes/cat.list.post.php';
# Bottom layout
include PERCH_CORE . '/inc/btm.php';
示例4: PerchAPI
<?php
include __DIR__ . '/../../../core/inc/api.php';
// Perch API
$API = new PerchAPI(1.0, 'root_locator');
// APIs
$Lang = $API->get('Lang');
$HTML = $API->get('HTML');
$Settings = $API->get('Settings');
// Page settings
$Perch->page_title = $Lang->get('Locator');
$Perch->add_css($API->app_path() . '/assets/css/locator.css');
// Page Initialising
include 'modes/addresses.list.pre.php';
// Perch Frame
include PERCH_CORE . '/inc/top.php';
// Page
include 'modes/addresses.list.post.php';
// Perch Frame
include PERCH_CORE . '/inc/btm.php';
示例5: PerchAPI
<?php
# include the API
include '../../../../core/inc/api.php';
$API = new PerchAPI(1.0, 'perch_members');
$Lang = $API->get('Lang');
# include your class files
include '../PerchMembers_Members.class.php';
include '../PerchMembers_Member.class.php';
include '../PerchMembers_Tags.class.php';
include '../PerchMembers_Tag.class.php';
include '../PerchMembers_Forms.class.php';
include '../PerchMembers_Form.class.php';
# Set the page title
$Perch->page_title = $Lang->get('Edit Members');
$Perch->add_css($API->app_path() . '/assets/css/members.css');
# Do anything you want to do before output is started
include '../modes/members.edit.pre.php';
# Top layout
include PERCH_CORE . '/inc/top.php';
# Display your page
include '../modes/members.edit.post.php';
# Bottom layout
include PERCH_CORE . '/inc/btm.php';
示例6: PerchAPI
<?php
# include the API
include '../../../../core/inc/api.php';
$API = new PerchAPI(1.0, 'perch_blog');
$Lang = $API->get('Lang');
# Set the page title
$Perch->page_title = $Lang->get('Blog Comments');
$Perch->add_css($API->app_path() . '/assets/css/blog.css');
$Perch->add_javascript($API->app_path() . '/assets/js/blog.js');
# Do anything you want to do before output is started
include '../modes/comment.list.pre.php';
# Top layout
include PERCH_CORE . '/inc/top.php';
# Display your page
include '../modes/comment.list.post.php';
# Bottom layout
include PERCH_CORE . '/inc/btm.php';