-
Notifications
You must be signed in to change notification settings - Fork 21
Call to a member function subject() on a non-object #2
Comments
Pull, I've fixed the migration, need more time to check the component. Probably something because of the recent change of the plugin to my namespace. |
The component fails because of a change in the core, I'll need to fix that. |
OK, it should be fixed, please try again and let me know. Thanks for that detailed issue report by the way! 👍 I wish all people would do it this way. |
Plugin views can't be loaded any-more as well as they were before... So copy the templates around or wait until I figured out what has changed and. Migration should work now and the component as well except that it can't load the views. |
I fixed it in the CakePHP core cakephp/cakephp#5019, the plugin is OK now, I've tested it but you'll have to wait until somebody accepts my PR or fixes it otherwise. |
I tried Migration and it works great. Thanks! I'm going to play with the views now. |
You'll have to patch the core (until its fixed) or copy the views and configure the component to use them from their new location. See the huge component defaultConfig array in the class, it should be pretty self-explaining. |
@daguayo I've made more fixes to the Component and Behavior. Please keep reporting issues, Cake3 is still in development (there are ongoing API changes) and the plugin as well. However, I would appreciate it if you use it and provide some feedback, thank you! 😄 |
Hi!
I'm trying to make a basic example with UserTools. I deployed a fresh CakePHP 3.0.
Then I installed UserTools as described in Installation.md:
I used Migrations plugin to create the table:
To make it work, I had to change two lines in /config/Migrations/20140902003044_initial.php:
->addColumn('id', 'char'...
, because Migrations complained like[PDOException] SQLSTATE[42S21]: Column already exists: 1060: Duplicate column name 'id'
'unique' => true
in line 23, because Migrations complained like[RuntimeException] 'unique' is not a valid column option.
Then I created the following controller:
Note that Installation.md does not suggest the "Burzum/" part.
Anyway, when I test the controller, I get 2 warnings and 1 error:
Any idea about what is failing or what I'm doing wrong?
Thank you!
The text was updated successfully, but these errors were encountered: