Log message #3977464

# At Username Text
# 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
# Jan 22nd 2017, 04:15 rohittiwarirvt thanks @savant for your precious wisdom, will definitely persuade team mates on the usage of latest cake , powerfull cake version.:+1::ok_hand:
# Jan 22nd 2017, 04:13 savant you wont regret it
# Jan 22nd 2017, 04:13 savant if you can do a complete rewrite, I’d recommend jumping straight into cake3
# Jan 22nd 2017, 04:13 savant will be hard if you dont have tests in place
# Jan 22nd 2017, 04:13 savant for old applications, you can still use them, but i highly recommend at least trying to upgrade a 1.2 app to 1.3, if not 2.0
# Jan 22nd 2017, 04:12 savant especially for new applications
# Jan 22nd 2017, 04:12 savant I would definitely look at learning the new cake3, its pretty awesome
# Jan 22nd 2017, 04:12 savant much more powerful, and you can put logic in the `Entity` classes
# Jan 22nd 2017, 04:11 savant and the `Table` class returns an `entity` for each row
# Jan 22nd 2017, 04:11 savant You get a `Table` class that maps to your database table
# Jan 22nd 2017, 04:11 savant the biggest change is that the Model layer no longer returns arrays
# Jan 22nd 2017, 04:11 savant we use composer for installing plugins on the cli - and @phpnut is working on something to make that more developer friendly ;)
# Jan 22nd 2017, 04:10 savant routing is more powerful
# Jan 22nd 2017, 04:10 savant in views, you now prepend helper calls with `$this->Helper->func()` instead of `$helper->func()`
# Jan 22nd 2017, 04:10 savant in favor of initializing stuff in your `Controller::initialize()` method
# Jan 22nd 2017, 04:10 savant so like, `Controller:$components` and `Controller::$helpers`goes away
# Jan 22nd 2017, 04:09 savant interfacing with stuff is a bit different in some cases
# Jan 22nd 2017, 04:09 savant @rohittiwarirvt the terminology is the same
# Jan 22nd 2017, 04:08 rohittiwarirvt Hi Guyz, I am new ot cakePHP, one of my project is like in legacy mode, so has been using cake 1.2 version, i have been reading the documentation of that cake version, How much differentiation can or i may phrase would it be chanlleging enought me to learn cakephp latest 3 version if i lean cake 1.2 or should i leanr 3.0