Admin.php

After the project is installed, you should be able to access the admin, simply going to your.project/admin.php

The admin.php will give you all the tools for you to configurate your project and database and internal development relations etc. It will even create the initial code for you to keep developing...

<?php
	include("inc/global.php");
	include($magrathea_path."/MagratheaAdmin.php"); // $magrathea_path should already be declared

	$admin = new MagratheaAdmin(); // adds the admin file
	$admin->Load(); // load!
?>
Easy as that...

Admin tools

Look at your left. There, you see? That beautifull bootstrap menu. You already have all those tools available for you.

Configuration
Ok! Let's start! First thing you have to setup in your brand new project is the configuration.
I hope that you already did this in the config file, but here you can review the information that the project is using and even test the database connection.
Honestly, you are going to use this section more as a verification that everything is right than to edit information - what may be easier to do directly in the config file... ;)
Tables
Here things start to get interesting.
The tables from your mysql connection might be available here. And you can create information from them directly from the admin!
Too much win!
For information about table management and converting them into objects, go here!
Table Data
Execute simple queries, play a little bit with MagratheaQuery, see some rows, drink some vodkas... anyway, I should work better on this section, I know...
Objects
What would be of our Object Oriented Programming without objects!?
Nothing! It's like internet without porn. Has no purpose of existing!
Here you can see all the objects created, manage relations between them, check default properties...
Yes! Too much! That's why objects are explained in more details in its own page...
Generate Code
Look how awesome: Magrathea is even writing the code for you!
Ok, it's just the base code for the objects and it may not do much, but, camon! It's a framework that codes by itself.
(more info about this also in objects)
Plugins
Plugins! Plugins! Plugins!
Because less work you have, better for you!
Check the plugins page!
Database
Now we have some kind of reverse engineering here.
This section will get the objects that you have available in your project and generate the simplest code possible for creating mysql queries for tables and triggers for them.
It may not be the best code possible, for that reason, we advise you to keep a mysql dump with the database, but it's something you can work on if everything else fails
Logs
Logs are available here - even with an option of auto-update a specific log file.
...because sometimes we are too lazy to open explorer/terminal...
Validate Structure
Everything is crashing! Nothing is working! I'm getting white screens! Are my permissions and folder structure correct?
Here we make some tests verifications to see if your directories are well set up.
If you are facing an unknown error, you might find some problem-solvers here.
Tests
Please, tell me that you have the habit of writing tests...
No? Ok, me neither, but it would be great if we had, right!?
Here we have some tools that makes this job easier... Just trying to eliminate some excuses that we give ourselves for not doing it...
More information about it on tests page.
Custom Admin
This is great!
If all you need is a simple admin for some quick tasks without a killer layout, we can provide you the quickest way to do so.
We have a section explaining it. I bet you will like! ;)
PHP info
phpinfo();
Because we always need it sooner or later...