Log message #4209734

# At Username Text
# Oct 21st 2019, 07:47 joechua 'Crud.Index',
# Oct 21st 2019, 07:47 joechua use Cake\Controller\Controller;
# Oct 21st 2019, 07:47 joechua these is the content of my appController file
# Oct 21st 2019, 07:47 joechua does anyone have an idea of what I'm doing wrong?
# Oct 21st 2019, 07:46 joechua => 'index']);
# Oct 21st 2019, 07:46 joechua Router::prefix('api', function ($routes) {
# Oct 21st 2019, 07:46 joechua my routes.php file is:
# Oct 21st 2019, 07:46 joechua "errors": [
# Oct 21st 2019, 07:46 joechua i always get this error
# Oct 21st 2019, 07:46 joechua i am using the crud-json-api package
# Oct 21st 2019, 07:45 joechua hello
# Oct 21st 2019, 07:37 alexdd55976 lot of changes to 3.6
# Oct 21st 2019, 07:37 alexdd55976 i already did my authentication against AD with 4.x :slightly_smiling_face:
# Oct 21st 2019, 07:37 admad @alexdd55976 you will most likely be able to start with Cake 4 then :slightly_smiling_face:
# Oct 21st 2019, 07:15 alexdd55976 2 month until the new big project starts with cake :tada:
# Oct 21st 2019, 07:12 javier.villanueva morning
# Oct 21st 2019, 07:00 alexdd55976 morning dudes and duderinas
# Oct 21st 2019, 05:49 Fastidius off for the day but back in 16 hours for another wrestle
# Oct 21st 2019, 05:49 Fastidius probably safe to say im a bit lost here so if someone can send me a link to an example of a select from a Collection with a few values would be great.
# Oct 21st 2019, 05:45 Fastidius and why are map and combine telling me Call to undefined method App\View\AppView::map()
# Oct 21st 2019, 05:19 Fastidius but i cant really see an example for how to do it
# Oct 21st 2019, 05:19 Fastidius Using collections to build options seems to be the part im looking for in https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-select-checkbox-and-radio-controls
# Oct 21st 2019, 04:59 Fastidius 'options' => $client->client_name gives me Undefined property: Cake\ORM\ResultSet::$client_name so i assume im doing it wrong
# Oct 21st 2019, 04:57 Fastidius looking for some guidance
# Oct 21st 2019, 04:57 Fastidius which has the array items in there but i need to setup the pairings for view vs value and im finding no documentation refering to dropdown on cake php....
# Oct 21st 2019, 04:57 Fastidius now i have <?php echo $this->Form->control('Client_ID', ['options' => $client, 'class' => 'ml10 form-control select-2', 'label' => 'Client', 'onchange' => 'viewClient()', 'empty' => 'Select a client']); ?>
# Oct 21st 2019, 04:56 Fastidius i wish to add a dropdown selector that allows me to type the first few letters of a Name and on selecting the item out of the list then sends me to the View of that ID.
# Oct 21st 2019, 04:56 Fastidius I have a index which is showing all the information i want
# Oct 21st 2019, 04:55 Fastidius hi all. any wisemen available to guide a newbie.
# Oct 20th 2019, 09:35 dereuromark Sandbox.dereuromark.de might have some examples
# Oct 20th 2019, 07:04 francis.nadal hi guys. how do you implement datepicker in cake?
# Oct 20th 2019, 01:30 tlmarker i am trying to build a login in routine that will work foir my android app. the backend in done in cakephp I need a way to use the Default Password Hasher in the routine called from android. but i am having troubles getting it to work.
# Oct 20th 2019, 00:18 challgren @mrfeedback you really shouldn’t be checking the authorization in the model, thats best being done on the controller side. But as other said use muffin/footprint to gain visibility into the authorization in your model
# Oct 19th 2019, 20:58 mrfeedback and how do I check authorization within a model? doesnt seem like the middleware is loaded initially in a model too (at least not when I use unit tests)
# Oct 19th 2019, 20:55 mrfeedback ok thanks
# Oct 19th 2019, 20:53 admad that or use muffin/footprint
# Oct 19th 2019, 20:52 mrfeedback and how can I add the users id when saving a record? do I really have to pass it from the controller?
# Oct 19th 2019, 20:35 mrfeedback is it a bad idea to use authoriztion within models?
# Oct 19th 2019, 15:12 ndm No problem.
# Oct 19th 2019, 15:09 kailas thanks so much for the help!
# Oct 19th 2019, 15:09 kailas @ndm ooh! figured it out! I forgot to change my associated array in my patch entity. once I changed it to ShipmentHandlingUnits.OrderLines everything works!