Logs for #cakephp

Page 6 of 36,430, showing 100 records out of 3,642,926 total, starting on record 501, ending on 600

# At Username Text
# Dec 11th, 12:05 narendravaghela This is an improved version
# Dec 11th, 12:05 boydbuenodemesquita Thanks for the help guys. :slightly_smiling_face:
# Dec 11th, 12:04 narendravaghela check this one as well - https://github.com/sprintcube/cakephp-rest
# Dec 11th, 12:04 boydbuenodemesquita Yeah, it seems to be gone since a week or so. I'll try a fork, one of the forks you sent seems promising.
# Dec 11th, 12:04 narendravaghela the company has removed that repo from their account
# Dec 11th, 12:03 challgren Yeah, so @boydbuenodemesquita maybe use a fork
# Dec 11th, 12:03 narendravaghela if you see the readme, he hasn't change the installation line ```composer require multidots/cakephp-rest-api```
# Dec 11th, 12:02 narendravaghela years ago under my organization - multidots
# Dec 11th, 12:02 narendravaghela The original repo was created by me, someone has duplicated i
# Dec 11th, 12:02 narendravaghela I mean yes
# Dec 11th, 12:01 narendravaghela Nah
# Dec 11th, 12:01 challgren What I would suggest since its in vendor/ maybe creating a repo for yourself and upload it so you still have it
# Dec 11th, 12:01 challgren Thats not you?
# Dec 11th, 12:01 challgren https://github.com/vishal2995/cakephp-rest-api/commit/61f0e999224d776fb0bd797aedc32f1d6b3a787c
# Dec 11th, 12:00 narendravaghela nope
# Dec 11th, 12:00 challgren I found https://github.com/vishal2995/cakephp-rest-api
# Dec 11th, 12:00 challgren @narendravaghela didnt you make a fork of this?
# Dec 11th, 12:00 boydbuenodemesquita Yeah, I was looking for that as well. Thanks for checking! I still have the package locally, so I think I can make it work.
# Dec 11th, 12:00 challgren Ahh maybe! https://github.com/innovato/cakephp-rest-api
# Dec 11th, 11:58 challgren @boydbuenodemesquita Ive been searching around for a fork you could use but cant really find any
# Dec 11th, 11:43 neon1024 That would get frustrating for users I think, but it depends on your use-case I suppose. More secure systems might need a shorter session :thinking_face:
# Dec 11th, 11:43 neon1024 15 minute sessions is super quick imo
# Dec 11th, 11:40 challgren Seems like the repo owner deleted the project
# Dec 11th, 11:37 boydbuenodemesquita I'm working on an old project that uses the `multidots/cakephp-rest-api` package. When trying to set up the project on a new environment it seems that this package no longer exists. Does anyone here have any information about what happened?
# Dec 11th, 11:27 jotpe Okay, thanks @challgren :slightly_smiling_face:
# Dec 11th, 11:19 challgren 15 would probably be more reasonable. On every request the db is updated with the last_activity_time
# Dec 11th, 11:19 challgren Ours is an hour because thats what we set the session expiration to
# Dec 11th, 11:18 jotpe Do you have a timespan when a user is active then? Like activity timestamp must be max. 30mins in past?
# Dec 11th, 11:15 challgren But in my implementation I just have a last activity timestamp and we can generally tell whos active and who isnt
# Dec 11th, 11:14 challgren Ohh I dont know I use the component still
# Dec 11th, 11:14 jotpe But there isn't some kind of method in authentication plugin, right?
# Dec 11th, 11:13 challgren Add a last activity time. You cant really depend on users logging out
# Dec 11th, 11:12 jotpe What's a good way to see which users are logged in right now? add a field (bool) to the user table and change on login/logout? Or is there something easier?
# Dec 11th, 10:21 chechesa You have to cook each table. You're welcome :D
# Dec 11th, 09:46 gianmarxgagliardi thanks for the support Marco
# Dec 11th, 09:38 gianmarxgagliardi is there a command to cook the whole db without specifying the single table?
# Dec 11th, 09:38 gianmarxgagliardi ok putting the normal string without env file works
# Dec 11th, 09:37 neon1024 Morning everyone
# Dec 11th, 09:31 gianmarxgagliardi i don't understand
# Dec 11th, 09:30 gianmarxgagliardi ?
# Dec 11th, 09:27 chechesa Probably in lines 266-268 from your cake config
# Dec 11th, 09:26 gianmarxgagliardi I had already connected the DB to cake
# Dec 11th, 09:23 gianmarxgagliardi ```export APP_NAME="__APP_NAME__" export DEBUG="true" export APP_ENCODING="UTF-8" export APP_DEFAULT_LOCALE="en_US" export APP_DEFAULT_TIMEZONE="UTC" export SECURITY_SALT="33bf94203fd694377af79b7cf59d83a396c1bbc8d99e2747038d7888dbc1ea0a" export DB_HOST='localhost' export DB_NAME='ckcake' export DB_USERNAME='root' export DB_PASSWORD=''```
# Dec 11th, 09:23 gianmarxgagliardi in .env file:
# Dec 11th, 09:23 chechesa If you are using wamp, default user is 'root' with no password (empty string) and you have to add your SQL database name in DB_NAME; you can see this in http://localhost/phpmyadmin
# Dec 11th, 09:20 gianmarxgagliardi https://pastebin.com/XuRaHyhR
# Dec 11th, 09:20 gianmarxgagliardi it seems to me that the settings are the same. I do not understand.
# Dec 11th, 09:17 chechesa In your cake project
# Dec 11th, 09:17 chechesa It's better in your app/Config/app.php file
# Dec 11th, 09:16 gianmarxgagliardi See in Mysql.php where do I find it? in cake or in wamp?
# Dec 11th, 09:12 chechesa You don't have access, you need to config your database user. You can see how here https://stackoverflow.com/questions/30237702/cakephp-error-connection-to-database-not-access-denied-for-user-my-app
# Dec 11th, 09:11 gianmarxgagliardi ok it works but i don't understand this error
# Dec 11th, 09:10 slackebot2 Cake\Console\CommandRunner->run(Array) #15 {main} ```
# Dec 11th, 09:10 slackebot2 <gianmarxgagliardi>
# Dec 11th, 09:10 slackebot2 C:\wamp64\www\ctcake\vendor\cakephp\bake\src\Shell\BakeShell.php(261): Bake\Shell\Task\ModelTask->listUnskipped() #11 C:\wamp64\www\ctcake\vendor\cakephp\cakephp\src\Console\Shell.php(517): Bake\Shell\BakeShell->all() #12
# Dec 11th, 09:10 slackebot2 C:\wamp64\www\ctcake\vendor\cakephp\cakephp\src\Console\CommandRunner.php(385): Cake\Console\Shell->runCommand(Array, true) #13 C:\wamp64\www\ctcake\vendor\cakephp\cakephp\src\Console\CommandRunner.php(162): Cake\Console\CommandRunner->runShell(Object(Bake\Shell\BakeShell), Array) #14 C:\wamp64\www\ctcake\bin\cake.php(12):
# Dec 11th, 09:10 gianmarxgagliardi ```Possible model names based on your database: Exception: SQLSTATE[HY000] [1045] Access denied for user 'localhost'@'localhost' (using password: YES) in [C:\wamp64\www\ctcake\vendor\cakephp\cakephp\src\Database\Driver.php, line 93] 2019-12-11 09:09:31 Error:
# Dec 11th, 09:10 slackebot2 [PDOException] SQLSTATE[HY000] [1045] Access denied for user 'localhost'@'localhost' (using password: YES) in C:\wamp64\www\ctcake\vendor\cakephp\cakephp\src\Database\Driv er.php on line 93 Stack Trace:
# Dec 11th, 09:10 slackebot2 #0 C:\wamp64\www\ctcake\vendor\cakephp\cakephp\src\Database\Driver.php(93): PDO->__construct('mysql:host=loca...', 'localhost', 'localhost', Array) #1 C:\wamp64\www\ctcake\vendor\cakephp\cakephp\src\Database\Driver\Mysql.php(105): Cake\Database\Driver->_connect('mysql:host=loca...', Array)
# Dec 11th, 09:10 slackebot2 #2 C:\wamp64\www\ctcake\vendor\cakephp\cakephp\src\Database\Schema\BaseSchema.php(44): Cake\Database\Driver\Mysql->connect() #3 C:\wamp64\www\ctcake\vendor\cakephp\cakephp\src\Database\Dialect\MysqlDialectTrait.php(62): Cake\Database\Schema\BaseSchema->__construct(Object(Cake\Database\Driver\Mysql))
# Dec 11th, 09:10 slackebot2 #4 C:\wamp64\www\ctcake\vendor\cakephp\cakephp\src\Database\Schema\Collection.php(51): Cake\Database\Driver\Mysql->schemaDialect() #5 C:\wamp64\www\ctcake\vendor\cakephp\cakephp\src\Database\Schema\CachedCollection.php(41): Cake\Database\Schema\Collection->__construct(Object(Cake\Database\Connection)) #6
# Dec 11th, 09:10 slackebot2 C:\wamp64\www\ctcake\vendor\cakephp\cakephp\src\Database\Connection.php(390): Cake\Database\Schema\CachedCollection->__construct(Object(Cake\Database\Connection), true) #7 C:\wamp64\www\ctcake\vendor\cakephp\bake\src\Shell\Task\ModelTask.php(1096): Cake\Database\Connection->getSchemaCollection() #8
# Dec 11th, 09:10 slackebot2 C:\wamp64\www\ctcake\vendor\cakephp\bake\src\Shell\Task\ModelTask.php(1050): Bake\Shell\Task\ModelTask->_getAllTables() #9 C:\wamp64\www\ctcake\vendor\cakephp\bake\src\Shell\Task\ModelTask.php(1065): Bake\Shell\Task\ModelTask->listAll() #10
# Dec 11th, 09:10 chechesa You can try with php bin/cake.php bake all
# Dec 11th, 09:07 chechesa I think you are using Windows, have you tried to exec with bin\cake.bat bake all ? (backward slash)
# Dec 11th, 09:04 gianmarxgagliardi with a new project with three tables (g.e. : https://stackoverflow.com/questions/59141547/cakephp-displays-the-id-display-table-name-from-two-different-tables-with-relati). how do I cook them all with a command from Shells ? if I go into the new project folder and give the command `bin/cake.bat bake all` returns: _"cake.bat" is not recognized as an internal or external command, an executable program or a batch file._
# Dec 11th, 08:47 chechesa Is the same A record. When you create a new subdomain you can assign A record and the new IP of your new server. You can have the same domain pointing across subdomains to other servers
# Dec 11th, 08:40 jotpe Morning
# Dec 11th, 08:17 md.islam11 @conehead thanks
# Dec 11th, 08:16 gianmarxgagliardi morning
# Dec 11th, 07:44 dev.cyrusjayson Guys good morning. I have question in DNS set up (not really related to cakephp but I need to put my cakephp project there). My name domain is pointed to another IP with Type value "A Record" , host "@" and value "IP of the server". So the main domain www.sample.com is pointed to another server, now I want to create subdomain that is pointing to different server what will be my type? AAAA? CNAME?
# Dec 11th, 06:32 conehead "shows error" is not really helpful. Try `$this->getRequest->getData()` instead
# Dec 11th, 06:12 md.islam11 I just written as shortcut
# Dec 11th, 06:12 md.islam11 it is
# Dec 11th, 06:12 md.islam11 $this->request->getData('name')
# Dec 11th, 06:11 md.islam11 thats it.
# Dec 11th, 06:11 md.islam11 shows error
# Dec 11th, 06:11 md.islam11 that has isset(requet-get('aa'))
# Dec 11th, 06:11 md.islam11 all the legacy code
# Dec 11th, 06:11 niel45 or is the error just because of the missing $ for $this
# Dec 11th, 06:11 md.islam11 I am upgrading my cakephp to 3.8
# Dec 11th, 06:10 niel45 although it really depends on what you're trying to do. if you're checking for a value in order to set a sane default I'd use null coallescing: $value = $this->request->getData('a') ?? '';
# Dec 11th, 06:08 niel45 $dummy = this->request->getData('a'); isset($dummy);
# Dec 11th, 06:03 md.islam11 ?
# Dec 11th, 06:03 md.islam11 isset(this->request->getData('a')) shows error . What is the solution.
# Dec 10th, 22:59 ricksaccous well i'm off, enjoy your day
# Dec 10th, 22:59 ricksaccous lol 13337
# Dec 10th, 22:52 challgren Ahh I have it on as bg noise when Im coding
# Dec 10th, 22:49 ricksaccous i'm a harsh critic though
# Dec 10th, 22:49 ricksaccous heh, i stopped watching season 3 i think, it was too cheesy at that point
# Dec 10th, 22:48 challgren @ricksaccous watch Mr Robot all the episodes this season are titled in the 4xx series
# Dec 10th, 22:47 challgren This is my template. Pretty simple form honestly.
# Dec 10th, 22:46 ricksaccous very proper
# Dec 10th, 22:46 ricksaccous oh cool
# Dec 10th, 22:46 challgren 404 is not found
# Dec 10th, 22:46 challgren bad request
# Dec 10th, 22:46 ricksaccous i forget what that status code means but isn't that a page not found
# Dec 10th, 22:46 ricksaccous do you really want to 400 on form error? lol
# Dec 10th, 22:45 challgren @damiano this is an example how to do get/post edits,
# Dec 10th, 22:44 ricksaccous haha, no problem