Wiki: Topnew Db Where Docs

Wiki: Howto use Topnew\Db v 2019.10.10

Topnew DB is a PHP class to use PDO database library easily.

7 - $db->where()

where() and having() have exactly same behaviour, will accept multiple calls.

->where('raw SQL')
->where('id', 1
Dept: CMS | Read: 506 | 2019-10-11

Wiki: Topnew DB Docs

Wiki: Howto use Topnew\Db v 2019.10.10

Topnew DB is a PHP class to use PDO database library easily.

1 - Quick start

Save Topnew\Db file into somewhere eg:
vendor/topnew/src/Db.php

An example of your applications:
Dept: CMS | Read: 1129 | 2019-10-10   1

Blog Docs 7 - Admin tools

There are basic blog admin tools available (not copied back from previous version yet) via:

at the bottom of editing any topic page:

* Update Created: ?ajax=created&val=2018-12-25 12:34:56
* Unlock: ?ajax=unlock&val=x (login only)
* Update Meta: ?ajax=ext_url&val=www.
Dept: Blog | Read: 10890 | 2019-02-10   1

Blog Docs 6 - Themes

Default blog will use Topnew MVC and it is using /css/2018.css, 2019.js

However you can overwrite via /blog/blog.css, blog.js

And you can also change view files at: /var/www/app/View/Blog/cat.blade.php, home.blade.php etc

OR you can even make it look totally differen
Dept: Blog | Read: 13522 | 2019-02-02   1

Blog Docs 5 - Category

This table holds all category id (cat) and category name (name or url) and category info (displayed as text)

eg name = news-media
if info = '', info will auto displayed as News Media. So if you want to display something else, you need input here.

cat id 1 .. 99 is reserved
Dept: Blog | Read: 30868 | 2019-01-28

  1. 1
  2. 2
  3. 3
  4. »