コード例 #1
0
ファイル: welcome.php プロジェクト: ushahidi/SMS-Turks
 public function test($do = NULL)
 {
     $this->template->content = new View('welcome');
     $this->template->title = 'Welcome';
     switch ($do) {
         case 'add_sms':
             Message_Model::add_message('1112223333', 'This is a test message ' . rand(1, 1000));
             break;
         default:
             die('Do Required');
     }
     Debug_Toolbar::render(TRUE);
 }
コード例 #2
0
<?php

defined('SYSPATH') or die('No direct script access.');
if (Debug_Toolbar::is_enabled()) {
    // Allows the debug toolbar to inject itsself into the html
    Event::add('system.display', array('Debug_Toolbar', 'render'));
}
コード例 #3
0
ファイル: layout.php プロジェクト: ushahidi/SMS-Turks
?>
</div>
	<ul>
		<li><?php 
echo html::anchor('/', 'Home');
?>
</li>
		<li><?php 
echo html::anchor('task', 'Queue');
?>
</li>
	</ul>
	<h2><?php 
echo html::specialchars($title);
?>
</h2>
	<?php 
echo $content;
?>

	<p class="copyright">
		Rendered in {execution_time} seconds, using {memory_usage} of memory<br />
		Copyright?
	</p>

<?php 
Debug_Toolbar::render(TRUE);
?>

</body>
</html>