View difference between Paste ID: 7MYh0wXn and KVQNz6qz
SHOW: | | - or go back to the newest paste.
1-
-- HomePage.php
1+
  public function UserConstants(){
2
    $constants = get_defined_constants(true)['user'];
3-
<?php
3+
    $AL = new ArrayList();
4
    foreach($constants as $key => $val){
5-
class HomePage extends Page
5+
      $AL->push(new ArrayData(array('key' => $key,
6-
{
6+
                                    'val' => $val)));
7-
	
7+
    }
8-
}
8+
    return $AL;
9
  }
10-
class HomePage_Controller extends Page_Controller
10+
11-
{
11+
12-
	public function UserConstants()
12+
<% loop $UserConstants %>
13-
	{
13+
   <p>$key - $val</p>
14-
		return get_defined_constants()['user'];
14+
<% end_loop %>