This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$package_dir = dirname( __DIR__ ) . '/aurasystem/package'; | |
$template = require_once $package_dir . '/Aura.View/scripts/instance.php'; | |
// require_once $package_dir . '/Aura.Cli/src.php'; | |
$template->var = 'Hello World'; | |
$escaper = new stdclass(); | |
$escaper->c = 'x'; | |
$escaper->c .= ' > '; | |
$escaper->c .= ' 2 '; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{!layout}} | |
{{%SUB-VIEWS}} | |
<html> | |
<body> | |
{{content}} | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Here there is a problem for packages is only for Vendor.Package . | |
* Probably if we are downloading other ones like Propel, Doctrine or | |
* anything needs to be in include folder. | |
* | |
*/ | |
{ | |
"config": { | |
"vendor-dir": "package/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "hari/aura-system", | |
"minimum-stability": "dev", | |
"repositories": { | |
"aura-unofficial": { | |
"type": "package", | |
"package": [{ | |
"type": "aura-package", | |
"name": "aura/autoload", | |
"version": "1.0.0-beta3", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Standalone Form Component</title> | |
</head> | |
<body> | |
<form action="#" method="post"> | |
<?php echo $view['form']->widget($form); ?> | |
<input type="submit" /> | |
</form> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function value(&$value, $method, $name) | |
{ | |
// get the params | |
$params = func_get_args(); | |
array_shift($params); // $value | |
array_shift($params); // $method | |
array_shift($params); // $name | |
// set up the field name and data | |
$field = 'field'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// start PHP with: php -S localhost:8888 -t . spider.php | |
$site = 'http://www.targetwebsite.org/'; | |
$path = $_SERVER["REQUEST_URI"]; | |
if ($path == '/') { | |
$path = '/index.html'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// A script to generate API of all aura packages with apigen | |
$path = __DIR__ . DIRECTORY_SEPARATOR; | |
$package_path = $path . 'package'; | |
$docs_path = $path . 'docs'; | |
$dir = new DirectoryIterator( $package_path ); | |
foreach ($dir as $fileinfo) { | |
if (!$fileinfo->isDot()) { | |
$dirname = $fileinfo->getFilename(); | |
if ( $dirname == '.placeholder' ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* A script used tp switch between all aura packages to same branch. | |
* | |
* This is still experimental one :) | |
* | |
* Usage | |
* | |
* php checkout.php <branch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="http://jquery.phpbasic.com/jquery-1.3.2.min.js"></script> | |
<script src="http://jquery.phpbasic.com/divbox.js"></script> | |
<link rel="stylesheet" href="http://jquery.phpbasic.com/css/divbox.css" /> | |
</head> | |
<body> | |
<a href="hello.html" class="ajax">Ajax</a> | |
<script> | |
$('.ajax').divbox({type: 'ajax',caption: false}); |