$name";
$lines = file( $file );
foreach ( $lines as $l ){
if ( preg_match( "/function\\s*(.*)Action/", $l, $w ) ){
$act = strtolower($w[1]);
$path = "$name/$act";
print "
$path\n";
}
}
}
public function indexAction()
{
print "Pdebug\n";
print "\n";
if ($handle = opendir('controllers')) {
while (false !== ($file = readdir($handle))) {
if ( $file == "PdebugController.php" ||
$file == "ErrorController.php" ) {
continue;
}
if ( preg_match("/(.*)Controller.php$/", $file, $names) ) {
$contr = $names[1];
$this->_proc( $contr, "controllers/$file" );
}
}
}
closedir($handle);
print "\n";
exit;
}
}