Big Update Added Services and Admin

This commit is contained in:
2025-06-22 11:26:57 -07:00
parent 8f462953b7
commit caca552cae
32 changed files with 683 additions and 46 deletions

19
docs/Logs.md Normal file
View File

@@ -0,0 +1,19 @@
# Logging
You can use the logging class to output to a file.
use ```$log->info(The Message');```1
Logging levels are:
```
'DEBUG' => 0,
'INFO' => 1,
'WARNING' => 2,
'ERROR' => 3,
];
```
It's recommended that production is set to ERROR.
You set the log level in /App/config.php under 'loglevel' => 'ERROR'
If you are using CORXN a health check is run every 30 seconds which would fill the log file with info.

3
docs/Messages.md Normal file
View File

@@ -0,0 +1,3 @@
# Messages
Messages is $messages.

5
docs/Post.md Normal file
View File

@@ -0,0 +1,5 @@
# Post
There is a post class.
It cleans the post.
You can access it with $post.

6
docs/Redirect.md Normal file
View File

@@ -0,0 +1,6 @@
# Redirect
How to use redirect class.
$redirect->url;
it's called on every page, if you set it more than once the last one is used.

5
docs/Session.md Normal file
View File

@@ -0,0 +1,5 @@
# Sessions
There is a sessions handler built into Novaconium.
$session

21
docs/Twig-Views.md Normal file
View File

@@ -0,0 +1,21 @@
# Twig
## Overrides
You can override twig templates by creating the same file in the templates directory.
## Calling View
There is a $data that the system uses to store arrays for twig you can save to this array:
```
$data['newinfo'] = 'stuff';
view('templatename');
```
and that will automotically go to twig.
or you can create a new array and pass it in:
```
$anotherArr['newinfo'] = 'stuff';
view('templatename',$anotherArr);
```

View File

@@ -1,3 +0,0 @@
# Twig Overrides
You can override twig templates by creating the same file in the templates directory.