本文整理汇总了PHP中Qdmvc::loadLayout方法的典型用法代码示例。如果您正苦于以下问题:PHP Qdmvc::loadLayout方法的具体用法?PHP Qdmvc::loadLayout怎么用?PHP Qdmvc::loadLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Qdmvc
的用法示例。
在下文中一共展示了Qdmvc::loadLayout方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
/**
* Created by PhpStorm.
* User: quocd_000
* Date: 08/02/2015
* Time: 11:32 PM
*/
//Qdmvc_Helper::qd_media_choose('cavatar', 'avatar', false);
Qdmvc::loadLayout('layout_list');
class Qdmvc_View_ProductCat_List extends Qdmvc_Layout_List
{
}
示例2: getPageListURL
<?php
/**
* Created by PhpStorm.
* User: quocd_000
* Date: 08/02/2015
* Time: 11:32 PM
*/
Qdmvc::loadLayout('layout_card');
class Qdmvc_Layout_CardNavigate extends Qdmvc_Layout_Card
{
protected function getPageListURL()
{
$c = $this->page;
return $c->getPageListURL();
}
protected function callFnAction()
{
?>
<script>
MYAPP.callFn = function (fn_name, params, on_done_fn, on_fail_fn, on_final_fn, passing_obj) {
(function ($) {
//get Grid
var gridf = MYAPP.getGridFrame();
var grid = gridf.MYAPP.getGrid();
var msg_confirm = '<?php
echo Qdmvc_Message::getMsg('msg_confirm_callfn');
?>
';
if (gridf.MYAPP.isMultiSelection()) {
示例3: render
<?php
/**
* Created by PhpStorm.
* User: quocd_000
* Date: 09/03/2015
* Time: 7:08 PM
*/
Qdmvc::loadLayout('layout_root');
class Qdmvc_Layout_Navigation extends Qdmvc_Layout_Root
{
function __construct($page)
{
parent::__construct($page);
$this->data['view_style'] = 'compact';
// Moved to qdmvc because of files caches
//jquery ui
QdJqwidgets::loadSinglePluginJS('jquery-ui/jquery-ui.js', false);
QdJqwidgets::loadSinglePluginCSS('jquery-ui/jquery-ui.css', false);
//jquery fancytree
QdJqwidgets::loadSinglePluginJS('fancytree/jquery.fancytree.js', false);
QdJqwidgets::loadSinglePluginJS('fancytree/jquery.fancytree.filter.js', false);
QdJqwidgets::loadSinglePluginCSS('fancytree/ui.fancytree.css', false);
//underscore
QdJqwidgets::loadSinglePluginJS('underscore-min.js', false);
}
public function render()
{
$this->style();
parent::render();
$this->onReadyHook();
示例4: onSaveOK
<?php
/**
* Created by PhpStorm.
* User: quocd_000
* Date: 08/02/2015
* Time: 11:32 PM
*/
Qdmvc::loadLayout('layout_cardsetup');
class Qdmvc_View_RootSetup extends Qdmvc_Layout_CardSetup
{
protected function onSaveOK()
{
parent::onSaveOK();
// TODO: Change the autogenerated stub
?>
//location.reload();//reload when saving done
<?php
}
}