My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
Installation  
How to install the application skeleton and the module
Phase-Implementation, Featured
Updated Jul 21, 2010 by schm...@usrbin.de

Introduction

Phundament can be used as within an application skeleton or as a module within your current application. This pages describes how to install these versions.

Details

Application

  1. Download & extract into /htdocs
  2. Run
  3. $ ./yiic install
    This will create config/local.php
  4. Create a database, update credentials in config/local.php
  5. Run
  6. $ ./yiic install
    Follow instructions
  7. Open home URL
  8. Check index.php?r=p2/default/install in case of errors.

Module

  1. Download & extract into /htdocs/app/modules
  2. Merge configurations in config/main.php
  3. return CMap::mergeArray(
      include(dirname(__FILE__)."/../modules/p2/config/module.php"),
      array(...current config...)
    );
  4. Open index.php?r=p2/default/install
  5. Update configuration

Console Config

return array(
    'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
    'name'=>'My Console Application',
    'commandMap'=>array(
        'p2' => 'modules/p2/commands/PiiCommand.php',
        'install' => 'modules/p2/commands/InstallCommand.php',
        'backup' => 'modules/p2/commands/BackupCommand.php',
        'api' => 'modules/p2/commands/ApiCommand.php',
    ),
);

Params

    'languages'=>array('en_us'=>'English'),
  1. Downlod add-ons (modules/srbac, lib/zend)
  2. Update LoginForm model
    • change UserIdentity into P2UserIdentity
    • class UserIdentity extends P2UserIdentity {}
  3. Run
  4. $ ./yiic install
  5. Open home URL.

If you have any problem with the module installation, make sure you also check out the application skeleton. And take a look how thing work there.

In case you access the wrong PHP interpreter, which happens sometime on systems which have more than one PHP version installed. You can also use this:

/usr/bin/php5 -e yiic.php install

Sign in to add a comment
Powered by Google Project Hosting