PHPackages                             kassovicms/onyx - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. kassovicms/onyx

ActiveLibrary[Framework](/categories/framework)

kassovicms/onyx
===============

Web PHP framework

2.0(1y ago)01.0kPHPPHP &gt;=7.0

Since Apr 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/kkassovic/onyx)[ Packagist](https://packagist.org/packages/kassovicms/onyx)[ RSS](/packages/kassovicms-onyx/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Onyx
====

[](#onyx)

Onyx triedy (model a visual)

Model
-----

[](#model)

```
$sql = "SELECT * FROM table";
$xdata = new sqldata();
$xdata->sql_query = $sql;
$datatable = $xdata->get_sql_data();
$rowdata = $xdata->get_sql_row_data();
$figure = $xdata->get_sql_onefigure_data("sql_field_name");
$xdata->save_sql_data(); //UPDATE!

```

Render
------

[](#render)

```
$variables = array(
        'pagetitle' => "Page title",
        'hdnavi_html' => "top_nav.php",
        'no_login' => FALSE,
        'sql' => $sql,
        'form_action' => $_SERVER["PHP_SELF"]);
renderLayout2 ("/commons/insert_success_view.php", APP_TEMPLATE_FILE, APP_LAYOUT_FILE, $variables);

```

View - Form dropdown
--------------------

[](#view---form-dropdown)

```

```

View - Form field
-----------------

[](#view---form-field)

```

```

View - Text area
----------------

[](#view---text-area)

```

```

HTML Form example
-----------------

[](#html-form-example)

```
