當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PerchAPI::app_path方法代碼示例

本文整理匯總了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';
開發者ID:connor-baer,項目名稱:waterford-website,代碼行數:25,代碼來源:index.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';
開發者ID:jimcurran,項目名稱:bdmusichub,代碼行數:30,代碼來源:index.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';
開發者ID:pete-naish,項目名稱:4hair,代碼行數:22,代碼來源:index.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';
開發者ID:RootStudio,項目名稱:Perch-Locator,代碼行數:20,代碼來源:index.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';
開發者ID:jaredmedley,項目名稱:Perch-Core-Files,代碼行數:24,代碼來源:index.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';
開發者ID:jimcurran,項目名稱:bdmusichub,代碼行數:18,代碼來源:index.php


注:本文中的PerchAPI::app_path方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。