skie / CakePHP-Knockback-Plugin

CakePHP Knockback plugin
4 stars 1 forks source link

Declaration of KnockbackComponent::startup() #1

Open marcpar opened 11 years ago

marcpar commented 11 years ago

help !! im trying knockback with php

Strict (2048): Declaration of KnockbackComponent::startup() should be compatible with Component::startup(Controller $controller) [APP\Plugin\KnockBack\Controller\Component\KnockbackComponent.php, line 67] Code Context App::load() - CORE\Cake\Core\App.php, line 563 App::load() - CORE\Cake\Core\App.php, line 563 spl_autoload_call - [internal], line ?? class_exists - [internal], line ?? ComponentCollection::load() - CORE\Cake\Controller\ComponentCollection.php, line 100 ComponentCollection::init() - CORE\Cake\Controller\ComponentCollection.php, line 53 Controller::constructClasses() - CORE\Cake\Controller\Controller.php, line 639 Dispatcher::_invoke() - CORE\Cake\Routing\Dispatcher.php, line 183 Dispatcher::dispatch() - CORE\Cake\Routing\Dispatcher.php, line 162 [main] - APP\webroot\index.php, line 92

Strict (2048): Declaration of KnockbackComponent::beforeRender() should be compatible with Component::beforeRender(Controller $controller) [APP\Plugin\KnockBack\Controller\Component\KnockbackComponent.php, line 67] Code Context App::load() - CORE\Cake\Core\App.php, line 563 App::load() - CORE\Cake\Core\App.php, line 563 spl_autoload_call - [internal], line ?? class_exists - [internal], line ?? ComponentCollection::load() - CORE\Cake\Controller\ComponentCollection.php, line 100 ComponentCollection::init() - CORE\Cake\Controller\ComponentCollection.php, line 53 Controller::constructClasses() - CORE\Cake\Controller\Controller.php, line 639 Dispatcher::_invoke() - CORE\Cake\Routing\Dispatcher.php, line 183 Dispatcher::dispatch() - CORE\Cake\Routing\Dispatcher.php, line 162 [main] - APP\webroot\index.php, line 92

my asset.compress.ini

[General] cacheConfig = false

[js] timestamp = true cachePath = WEBROOT/cache_js/ paths[] = APP/Plugin/KnockBack/

[css] cachePath = WEBROOT/cache_css/

[jquery-combined.js] theme = true files[] = theme:js/libs/jquery.js files[] = theme:js/libs/bootstrap.min.js files[] = theme:js/libs/bootstrap-datepicker.js

[app.css] theme = true files[] = theme:css/bootstrap.min.css files[] = theme:css/bootstrap-responsive.min.css files[] = theme:css/core.css files[] = theme:css/datepicker.css

[knockback-base-release.js] files[] = jquery/jquery.min.js files[] = underscore/underscore.min.js files[] = backbone/backbone.min.js files[] = knockout/knockout.min.js files[] = knockback/knockback.min.js

[knockback-base-develop.js] files[] = jquery/jquery.min.js files[] = underscore/underscore.js files[] = backbone/backbone.js files[] = knockout/knockout.min.js files[] = knockback/knockback.js

marcpar commented 11 years ago

where to i put this ?

can i put this in AppController?

public $components = array ( 'RequestHandler', 'Knockback.Knockback' );

marcpar commented 11 years ago

hello skie can you create a sample application with the plugin thank you so much