Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I've just pulled A3M into a site I'm working on. It was pretty straight forward as @Jakub says. For anyone else who hits this page, here are the steps I went through:</p> <ol> <li><p>Copy files from app/libraries; app/helpers; app/languages</p> <ul> <li>Study files in app/controllers; and app/views, to see how to use the A3M system <ul> <li>The controllers can stay as is, you need to customize the views: sign_in, sign_up, sign_out, and account/*</li> </ul></li> </ul></li> <li><p>Copy: </p> <pre><code>app/config/account app/helpers/* app/libraries/* app/models/account/ app/controllers/account/ app/views/account/ app/views/sign*.php (if using the A3M Views) app/language/* (ie language/english/account/ and general_lang.php) </code></pre></li> <li><p>Configure app/config/account/* for your setup</p></li> <li>Check the "Session Variables" in app/config/config.php</li> <li><p>Add autoloads to app/config/autoload.php</p> <ul> <li>$autoload['packages'] = array(APPPATH.'third_party');</li> <li>$autoload['language'] = array('general');</li> <li>// also suggest adding these if you check login status across your site:</li> <li>$autoload['libraries'] = array('account/authentication', 'account/authorization');</li> <li>$autoload['helper'] = array('language', 'url', 'account/ssl');</li> <li>$autoload['model'] = array('account/account_model');</li> </ul></li> <li><p>Add the following to the end of app/config/constants.php</p> <pre><code>/* |-------------------------------------------------------------------------- | A3M Extras |-------------------------------------------------------------------------- */ /* * Define root resources folder name for js/css/img files */ define('RES_DIR', 'resource'); /* * Detect AJAX Request for MY_Session */ define('IS_AJAX', isset($_SERVER['HTTP_X_REQUESTED_WITH']) &amp;&amp; strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'); /* * Portable PHP password hashing framework * http://www.openwall.com/phpass/ */ define('PHPASS_HASH_STRENGTH', 8); define('PHPASS_HASH_PORTABLE', FALSE); </code></pre></li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload