PHP code example of zaxcms / ui
1. Go to this page and download the library: Download zaxcms/ui library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zaxcms / ui example snippets
class SomeControl extends Zax\Application\UI\Control {
public function beforeRender() {
// gets called before a component gets rendered
}
public function viewDefault() {
// gets called only if view is "Default"
}
}
$this->link('this', ['view' => 'Foo']);
public function actionDefault() {
$this->createComponent('someControl');
// or shorter
$this['someControl'];
}