CakeAMFPhp installation steps

1. Download cakeamfphp at cakefore project website, I use CakeAMFPHP.0.6.0.

2. Download Cakephp1.2.x at CakePHP website

3. Extract cakeamfphp and cakephp 

4. Copy

                      /cakeamfphp/webroot/* => ../app/webroot/

                      /cakeamfphp/venders/* => ../app/venders/

                      /cakeamfphp/views/* => ../app/views/

5. Edit app/webroot/amfbrowser/config.inc.php, at line 75

Replace:

loadController (null);

By

App::import(‘Controller’, null);

App::import(‘Controller’, ‘App’);

6. Edit app/webroot/cake_gateway.php, at line 75

Replace

require CORE_PATH.’cake’.DS.’bootstrap.php’; 
loadController (null);   
vendor(‘cakeamfphp’.DS.’amf-core’.DS.’app’.DS.”CakeGateway”);  

to 

require CORE_PATH.’cake’.DS.’bootstrap.php’; 
App::import(‘Controller’, null); 
App::import(‘Controller’, ‘App’); 
require_once( CORE_PATH . ‘vendors’ . DS . ‘cakeamfphp’.DS.’amf-core’.DS.’app’.DS. ‘CakeGateway.php’); 

7. Edit app/vendors/cakeamfphp/amf-core/app/CakeActions.php, at line 195

Replace 

$controller->_initComponents(); 

By 

$controller->Component->init($controller); 

8. Edit app/vendors/cakeamfphp/amf-core/app/CakeGateway, at line 25

Replace:

vendor(‘cakeamfphp’.DS.’amf-core’.DS.’app’.DS.’Gateway’); 
vendor(‘cakeamfphp’.DS.’amf-core’.DS.’app’.DS.’CakeActions’);

by

require_once(APP.’vendors’.DS.’cakeamfphp’.DS.’amf-core’.DS.’app’.DS.’Gateway.php’); 
require_once(APP.’vendors’.DS.’cakeamfphp’.DS.’amf-core’.DS.’app’.DS.’CakeActions.php’); 

Let’s join in CakePHP with AMF

 

 

 



Bình luận về bài viết này