Log message #4017147

# At Username Text
# Apr 18th 2017, 13:08 lukesoft thanks dakota….forgot to specify vendor
# Apr 18th 2017, 13:08 lukesoft not ‘plugin’ => ‘Users’
# Apr 18th 2017, 13:08 dakota lukesoft What’s your error logs saya Ah ok :slightly_smiling_face:
# Apr 18th 2017, 13:08 lukesoft ‘plugin’ => ‘CakeDC/Users’
# Apr 18th 2017, 13:08 lukesoft never mind……got it
# Apr 18th 2017, 13:04 lukesoft i know this is suppose to be super straightfoward
# Apr 18th 2017, 13:04 lukesoft Hi Everyone…how do i override /users/users/register route (from CakeDC Users plugin) to just /register…i tried this http://paste.opensuse.org/73876854 but getting ‘An Internal Server Error Occurred’
# Apr 18th 2017, 12:12 dakota In my experience :slightly_smiling_face:
# Apr 18th 2017, 12:11 dakota Weirdly, mamp on windows works really well, but on mac it’s full of issues
# Apr 18th 2017, 12:11 dakota I’ve only ever heard of problems with mamp
# Apr 18th 2017, 12:11 dakota That way I know that my dev env. is nearly identical to my production env.
# Apr 18th 2017, 12:10 dakota But, for actual application development, I use vagrant
# Apr 18th 2017, 12:10 dakota mampel, I use homebrew for my mac php needs
# Apr 18th 2017, 11:46 aiena not sure
# Apr 18th 2017, 11:46 aiena since that is the only primary key maybe it still works
# Apr 18th 2017, 11:45 aiena bernat, yeah but it works. cake has some fall backs. I never created this project. I cant do much about conventions at this point
# Apr 18th 2017, 11:44 bernat aiena: that's surprising because your primary key doesn't follow cake conventions.
# Apr 18th 2017, 11:44 aiena that code was working
# Apr 18th 2017, 11:44 aiena sorry solved. It was a problem with the form
# Apr 18th 2017, 11:43 joris_ i keep getting `PHP Fatal error: Class 'PHPUnit\Framework\TestCase' not found in /var/www/html/cakephp-upload/vendor/cakephp/cakephp/src/TestSuite/TestCase.php on line 32` which means phpunit isn't autoloading but it got installed automatically through composer
# Apr 18th 2017, 11:42 joris_ Anyone else having trouble testing a cake 3 app through phpunit in ubuntu 16.04 ?
# Apr 18th 2017, 11:40 aiena what is wrong ?
# Apr 18th 2017, 11:40 aiena In a cake2 project I am maintaining I want to update a record. I read that if the primary key is provided it will update that record. But it is creating a new record instead. see http://paste.opensuse.org/47910010
# Apr 18th 2017, 11:29 justcharlz //get winnerslist $winners = $this->Virtualwarehouse->find('all', array('conditions'=>array('Virtualwarehouse.winner !=' => 'null'))); $winneroptions = array('conditions'=>array('User.id'=>$winners['Virtualwarehouse']['winner']), array('User.email','User.fname', 'User.path', 'User.pix')); $winnersrecord = $this->Virtualwarehouse->User->find('all',$winneroptions); $this->set('winnerslist',$winners); print_r($winners);
# Apr 18th 2017, 11:29 slackebot5 to display all. This is what I have done but not working. Any help here?
# Apr 18th 2017, 11:29 justcharlz need little help here. I created this two tables(Virtualwarehouse and users) and did the association linking using belongsTo (virtualwarehouse => users). On the virtualwarehouse table, there is a column(called winners) on each row that stores an id of a single user which is randomly selected and included from another table. I am trying to get all the ids in the winners column and query the Users table for the details of the user with the
# Apr 18th 2017, 11:29 inoas return missing
# Apr 18th 2017, 11:29 inoas ah so stupid
# Apr 18th 2017, 11:28 inoas https://gist.github.com/inoas/f93449568217a024f85ce20ef4b7fc9f
# Apr 18th 2017, 11:27 inoas when using formatResults I get: Only an array or \Traversable is allowed for Collection
# Apr 18th 2017, 11:24 hmic while /articles/view/1/2 would pass 2 as the second argument to the action...
# Apr 18th 2017, 11:23 hmic you could have /articles/view/1 where i is the id passed to the action, /articles/view/1/ does the same thing
# Apr 18th 2017, 11:23 hmic aiena: it does not matter really
# Apr 18th 2017, 11:22 aiena in cake a url should not have a trailing slash if there is nothing after it. E.g. a route should be defined as "/pages/12" for example (assuming 2 is hardcoded otherwise /pages/*) instead of "/pages/12/"
# Apr 18th 2017, 11:17 mampel @dakota I installed xampp in mac and then must install php-intl in terminal but return some error, do you install cake php in mac?
# Apr 18th 2017, 10:42 hmic you should wait for others to answer too i think ;-)
# Apr 18th 2017, 10:42 hmic just my humble opinion :/
# Apr 18th 2017, 10:41 keremcankaya Thanks a lot!
# Apr 18th 2017, 10:33 hmic maybe you can update the plugin you are talking of to utilize the new driver too :D
# Apr 18th 2017, 10:33 hmic with 3.x there is the webservice plugin that provides kind of infrastructure to do an integration, on 2.x i don't know, and i would not care really...
# Apr 18th 2017, 10:33 hmic keremcankaya: as there is no real support for mongo on cake, i'd use it like any external library and use the new driver of course!