Log message #3977494

# At Username Text
# Jan 22nd 2017, 10:14 savant we have that
# Jan 22nd 2017, 10:14 savant https://book.cakephp.org/3.0/en/bake/development.html#bake-template-syntax
# Jan 22nd 2017, 10:14 savant what do you mean
# Jan 22nd 2017, 10:08 al_x_mq somewhere...
# Jan 22nd 2017, 10:08 al_x_mq is there a overview for bake templates?
# Jan 22nd 2017, 10:08 al_x_mq morning fellows
# Jan 22nd 2017, 08:43 GutaFish thanks
# Jan 22nd 2017, 08:43 GutaFish I didnt know why would etend connection…
# Jan 22nd 2017, 08:43 savant forgot that className is used at a different level
# Jan 22nd 2017, 08:43 GutaFish ok… then Im on correct way :)
# Jan 22nd 2017, 08:43 savant sorry yeah, driver
# Jan 22nd 2017, 08:42 savant driver
# Jan 22nd 2017, 08:39 GutaFish yes, but If I want to extend driver I must change [‘driver’] not [‘connection’] key ? Or Im missing something ?
# Jan 22nd 2017, 08:38 savant you can customize what class it uses there.
# Jan 22nd 2017, 08:38 GutaFish yes
# Jan 22nd 2017, 08:38 savant app.php contains your connection info under the `database` section
# Jan 22nd 2017, 08:37 GutaFish savant: if I want to extend driver then I must change dervier section in app config not connection ?
# Jan 22nd 2017, 08:34 halfdan no worries, thanks @savant
# Jan 22nd 2017, 08:33 savant sorry
# Jan 22nd 2017, 08:33 savant i dont use route redirects normally though, so I cant be sure
# Jan 22nd 2017, 08:31 savant @halfdan might be the order in which you set the redirect
# Jan 22nd 2017, 08:31 savant now just tell your database connection to use your connection class
# Jan 22nd 2017, 08:31 savant you did extend it
# Jan 22nd 2017, 08:29 GutaFish mysql*
# Jan 22nd 2017, 08:29 GutaFish savant: it wouldnt be better to extend myzsql driver ?
# Jan 22nd 2017, 08:19 halfdan The route doesn't even seem to match if I try it without and I don't seem to have access to :id when passing the redirect array
# Jan 22nd 2017, 08:19 halfdan howdy! I'm trying to do a URL alias/redirect on the root route. Basically trying to catch an id and redirect to a controller's show method and pass that id in: ``` Router::connect( '/p/:id', array( 'lang' => 'eng', 'controller' => 'sentences', 'action' => 'show' ), array('id' => '[0-9]+') ); ``` Any way I can drop the /p in there?
# Jan 22nd 2017, 07:55 savant you can specify a `className` for the connection
# Jan 22nd 2017, 07:55 savant in your app.php
# Jan 22nd 2017, 07:46 GutaFish ok, but where I must say, “use my class” ? I have already created files in paths as it should be in my app, but it does not take it into account
# Jan 22nd 2017, 07:45 savant and then just reference the extended one
# Jan 22nd 2017, 07:45 savant you could extend the class in your app
# Jan 22nd 2017, 07:44 GutaFish now I get instead of point type a text type which I dont want. I could add this to MysqlSchema.php directly but I want to extend this behavior
# Jan 22nd 2017, 07:44 GutaFish yeah I have done that. But when I create snapshot I also want that columnt type point is recognized so migrations will work as it should
# Jan 22nd 2017, 07:43 savant GutaFish^
# Jan 22nd 2017, 07:43 savant https://book.cakephp.org/3.0/en/orm/database-basics.html#adding-custom-types
# Jan 22nd 2017, 07:39 GutaFish how I can extend MysqlSchema adapter _convertColumn() to ad dpoint column type ?
# Jan 22nd 2017, 07:38 GutaFish hi
# Jan 22nd 2017, 04:15 savant we’d be happy to help point you all in the right direction
# Jan 22nd 2017, 04:15 savant if they have questions, have them join our slack
# Jan 22nd 2017, 04:15 savant its great