当前位置: 首页>>代码示例>>PHP>>正文


PHP Uri::action方法代码示例

本文整理汇总了PHP中Uri::action方法的典型用法代码示例。如果您正苦于以下问题:PHP Uri::action方法的具体用法?PHP Uri::action怎么用?PHP Uri::action使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Uri的用法示例。


在下文中一共展示了Uri::action方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: execute

 public static function execute()
 {
     $controller = Uri::controller();
     //var_dump($controller);
     if ($controller === false) {
         $controller = 'PetBasket';
     }
     //exit;
     $controllerClass = $controller . 'Controller';
     $req = APP_PATH . '/classes/controller/' . $controllerClass . '.php';
     //var_dump($req);
     //exit;
     require_once $req;
     $action = Uri::action();
     return $controllerClass::_call($action);
 }
开发者ID:allanjg89,项目名称:Pet-Basket-Website,代码行数:16,代码来源:route.php

示例2: require

            	'myDialog':{
            		deps: ['jquery']
            	}
        	},
            paths: {
                jquery: 'script/jquery2.2',
                one: 'script/page/one',
                myDialog: 'script/plugin/dialog'
            }
        });
    </script>
    </head>
    <body style="padding: 0;">
    <div class="main">
    </div>
    </body>
    <script>
	    require(['jquery', 'script/page/login'], function($, main){
		    var settings = {
				submitUrl: '<?php 
Uri::action('Login', 'loggin');
?>
'
		    };
	       $(document).ready(function(){
	           main.init(settings);
	       });
	    });
    </script>
</html>
开发者ID:roderm,项目名称:mkn151,代码行数:30,代码来源:login.php

示例3: function

<?php

$_ = $this->model;
?>
<div class="content-block Tools">
		<div id="BtnLogout">
			<img src="<?php 
echo Uri::file('media/logout.png');
?>
" alt="Logout"
				width="20"> Logout
		</div>
	<script type="text/javascript">
	require(['jquery', 'script/page/admin/questionTable'], function($, scr){
		$('#BtnLogout').click(function() {
			$.ajax({
				type : "POST",
				url : '<?php 
Uri::action('Login', 'logout');
?>
',
				dataType : 'json'
			}).done(function(_data){
				window.location.href = _data.uri;
			});
		});
	});
	</script>
</div>
开发者ID:roderm,项目名称:mkn151,代码行数:29,代码来源:tools.php

示例4: foreach

			<?php 
foreach ($_->data as $value) {
    echo '<tr data-id=' . $value->id . '>';
    echo '<td class="bez">' . $value->bezeichnung . '</td>';
    echo '<td class="descr">' . $value->beschreibung . '</td>';
    echo '</tr>';
}
?>
			<tr data-id="0">
			<td colspan="2">Neue Kategorie<td>
			</tr>
		</tbody>
	</table>
	<script type="text/javascript">
	require(['jquery', 'script/page/admin/kategorieTable'], function($, scr){
		var settings = {
			addKategorie: '<?php 
Uri::action('AdminKategorie', 'saveKategorien');
?>
',
			delKategorie: '<?php 
Uri::action('AdminKategorie', 'deleteKategorien');
?>
'
		};
		$(document).ready(function(){
			scr.init(settings);
		});
	});
	</script>
</div>
开发者ID:roderm,项目名称:mkn151,代码行数:31,代码来源:KategorieTable.php

示例5: foreach

			<div id="Question_DropdownBtn"></div>
			<table id="QuestionDropdown" class="AdminTable">
				<tbody id="Dropdown_table">
					<?php 
foreach ($_->data as $value) {
    echo '<tr data-id=' . $value->id . '>';
    echo '<td class="bez">' . $value->bezeichnung . '</td>';
    echo '</tr>';
}
?>
				</tbody>
			</table>
		</div>
	</div>
	<div class="admin_content hidden"></div>
</div>
<script type="text/javascript">
require(['jquery', 'script/page/admin/questionTable'], function($, src){
	var settings = {
		submitUrl: '<?php 
Uri::action('AdminQuestion', 'getQuestionTable');
?>
',
		showMenu: true
	};
	$(document).ready(function(){
		src.initHeader(settings);
	});
});
</script>
</div>
开发者ID:roderm,项目名称:mkn151,代码行数:31,代码来源:QuestionMain.php

示例6: function

    echo '<td style="display:none;" data-count="' . $value->counts_ans3 . '" class="answer3">' . $value->answer3 . '</td>';
    echo '</tr>';
}
?>
			<tr data-id="0">
				<td colspan="5">Neue Frage
				
				<td>
			
			</tr>
		</tbody>
	</table>
	<script type="text/javascript">
	require(['jquery', 'script/page/admin/questionTable'], function($, scr){
		var settings = {
			addQuestion: '<?php 
Uri::action('AdminQuestion', 'saveQuestion');
?>
',
			delQuestion: '<?php 
Uri::action('AdminQuestion', 'deleteQuestion');
?>
'
		};
		$(document).ready(function(){
			scr.initTable(settings);
		});
	});
	</script>
</div>
开发者ID:roderm,项目名称:mkn151,代码行数:30,代码来源:QuestionTable.php

示例7: function

    echo '<td>' . $value->GameDuration . '</td>';
    echo '<td style="text-overflow: ellipsis;">' . $value->GameCategories . '</td>';
    echo '<td class="del">✘</td>';
    echo '</tr>';
    $i++;
}
?>
		</tbody>
	</table>
	<script type="text/javascript">
	require(['jquery', 'script/page/admin/highscore'], function($, scr){
		var settings = {
			isAdmin: <?php 
echo $_->isAdmin;
?>
,
			gameId: <?php 
echo $_->gameID;
?>
,
			delScore: '<?php 
Uri::action('Highscore', 'deleteCol');
?>
'
		};
		$(document).ready(function(){
			scr.init(settings);
		});
	});
	</script>
</div>
开发者ID:roderm,项目名称:mkn151,代码行数:31,代码来源:HighscoreTable.php

示例8: require

      require(['jquery', 'script/page/admin/main'], function($, admin){
          var stats = {
              getKategorien: '<?php 
Uri::action('AdminKategorie');
?>
',
              getQuestions: '<?php 
Uri::action('AdminQuestion');
?>
',
              getScores: '<?php 
Uri::action('Highscore', 'getMain');
?>
',
              getTools: '<?php 
Uri::action('Admin', 'getTools');
?>
'
          };
          $(document).ready(function(){
              admin.init(stats); 
          });
      })
    </script>
    </head>
    <body>
    <div id="dialogShadow" class="shadow"></div>
    <div class="ContentBlock">
		<div id="TitleKategorien" class="ContentTitle Kategorien">
		<img src="<?php 
echo Uri::file('media/TitelKatgorien.png');
开发者ID:roderm,项目名称:mkn151,代码行数:31,代码来源:main.php

示例9:

?>
',
			useJoker: '<?php 
Uri::action('Gamer', 'useJoker');
?>
',
			backToGame: '<?php 
Uri::action('Gamer', 'backToGame');
?>
',
			logout: '<?php 
Uri::action('Login', 'logout');
?>
',
			reloadHighscore: '<?php 
Uri::action('Highscore', 'getMain');
?>
',
			hasFrage: <?php 
echo $_->hasFrage ? 'true' : 'false';
?>
,
			info: {
			  user: '<?php 
echo $_->user;
?>
',
			  points: <?php 
echo $_->points;
?>
,
开发者ID:roderm,项目名称:mkn151,代码行数:31,代码来源:main.php


注:本文中的Uri::action方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。