wrapping my php/mysql app in modx

2009-08-01T02:02:56

I wrote a small app that relies heavily on a series of php pages in which mysql data is displayed and formatted, given the user's credentials.

Rather than rolling a whole user management system from scratch, im debating putting these files into modx pages and utilizing its usermanagement features to secure and restrict those pages and the data.

My question is 2 fold, first, how smart is this from a difficulty stand point? Ive done a test creating a snippet and everything shows up ok, but is there an easier way to do this?

Second, how can i take modx's session or login data and pass it to my app so it knows WHO is logged in.

Thanks

Copyright License:
Author:「mrpatg」,Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.
Link to:https://stackoverflow.com/questions/1213992/wrapping-my-php-mysql-app-in-modx

About “wrapping my php/mysql app in modx” questions

I wrote a small app that relies heavily on a series of php pages in which mysql data is displayed and formatted, given the user's credentials. Rather than rolling a whole user management system from
Hi I'm using MODx on a site, but something has gone wrong with the database. Any idea how I can change the PHP to point to my database? « MODx Parse Error » MODx encountered the following error wh...
I am a newbie in ModX, trying to insert to database but always failed. This is my insert script : <?php define('MODX_CORE_PATH', '/aocore/'); define('MODX_CONFIG_KEY','config'); require_o
I have transferred one modx website evolution version to another domain but on another domain after doing changes in config, its manager is working but main website means front view is not working...
There is a modx snippet for catalog (below). And there is a chank (template), in which i need to paste a piece of code to show an image, stored in mysql database for each block in the catalog list....
I have produced a really simple code sample. This was not added as a NameSpace into Modx. Start with a blank Modx install. Create scheme file: <?xml version="1.0" encoding="UTF-8"?> <model
I am trying to get the ID of a last row I've inserted with a php/mysql query: $createjob = $modx->query($createjob); $lastId = $modx->lastInsertId(); but this does not seem to be working. ...
Got a bit of an issue with Modx and latest version of PHP. It's a very old version of Modx (don't ask - I have exactly the same thoughts, wasn't in my control). The site is working fine on PHP 5.2...
I have made a tiny ModX snippet that looks like this <?php $theMenu = $modx->runSnippet('Wayfinder', array("startId" => 0, "level"=>1) ); echo $theMenu; ?>
I need to make a sorted list of filtered entries for MODx page. I have a several entries in db with 'table1' and columns 'id', 'name', 'someparam1' etc. I can print the whole list on the page with $

Copyright License:Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.