cakedc

Strict (2048): Declaration of CsvImportBehavior::setup() should be compatible with ModelBehavior

大憨熊 提交于 2019-12-06 05:22:45
I am getting the following error: Strict (2048): Declaration of CsvImportBehavior::setup() should be compatible with ModelBehavior::setup(Model $model, $config = Array) [APP\Plugin\Utils\Model\Behavior\CsvImportBehavior.php, line 20] I followed the tutorial on this site: http://www.pronique.com/blog/enable-csv-import-all-controllers-models-cakephp-2 When I import my CSV file, it gives the following flash message: Successfully imported 0 records from Book1.csv I don't understand why its not importing, does it have something to do with the error/warning its giving? I looked inside the behaviour

CakePHP- cakeDC search plugin implementation

萝らか妹 提交于 2019-12-02 19:08:18
问题 I am currently trying to figure out a way to implement cakeDC's search plugin within my application, but I am finding it quite difficult to understand the plumbing that needs to be done before I can get it to work(nicely) with my app. Things to consider: the search needs to be a 'live search' Records retrieved need to be paginated The search will be done using a selected criteria (id,name,etc the actual key not value) and will require a user entry which we will call 'query' for now.. here is

CakePHP- cakeDC search plugin implementation

三世轮回 提交于 2019-12-02 08:44:05
I am currently trying to figure out a way to implement cakeDC's search plugin within my application, but I am finding it quite difficult to understand the plumbing that needs to be done before I can get it to work(nicely) with my app. Things to consider: the search needs to be a 'live search' Records retrieved need to be paginated The search will be done using a selected criteria (id,name,etc the actual key not value) and will require a user entry which we will call 'query' for now.. here is my code so far. Model Code : public $filterArgs = array( 'query' => array('type' => 'query', 'method' =

CakeDC User Plugin - Is there Documentation Anywhere?

爱⌒轻易说出口 提交于 2019-12-01 01:56:21
问题 Browsing through GitHub and I found a pretty powerful CakePHP plugin called CakeDC Users that has a lot of features (Account verification, password reset, etc) for a creating a login/authentication system. I like it because it seems to be written by some of the actual CakePHP developers and it gets updated a lot but there seems to be absolutely zero documentation anywhere on it. I've just come across this plugin recently, since I was trying to see if there's a better way than "rolling" with