# |
Dec 27th 2018, 12:45 |
dereuromark |
did you look into the url helper source code? doing that reveals that there is no other option so far. unless you extend the UrlHelper and assetUrl() method for this |
# |
Dec 27th 2018, 12:45 |
birdy247 |
Yes |
# |
Dec 27th 2018, 12:43 |
dereuromark |
how do you generate the URL? inside the helper in the email? |
# |
Dec 27th 2018, 12:40 |
birdy247 |
I can only think to solve it by setting Router::setFull.... before and after sending the email |
# |
Dec 27th 2018, 12:39 |
birdy247 |
My issue is rending an image from an email sent from a queue task |
# |
Dec 27th 2018, 12:39 |
birdy247 |
but host or _host doesnt |
# |
Dec 27th 2018, 12:39 |
birdy247 |
fullBase works |
# |
Dec 27th 2018, 12:33 |
dereuromark |
as cdn is a common thing |
# |
Dec 27th 2018, 12:33 |
dereuromark |
pretty sure it is |
# |
Dec 27th 2018, 12:31 |
birdy247 |
similar to links? |
# |
Dec 27th 2018, 12:31 |
birdy247 |
Is it possible to set a host for images |
# |
Dec 27th 2018, 12:31 |
birdy247 |
Hi |
# |
Dec 27th 2018, 10:40 |
doomsday_ |
okie dokie. |
# |
Dec 27th 2018, 10:40 |
challgren |
But hold off on the plugins until you get a bit familiar |
# |
Dec 27th 2018, 10:39 |
challgren |
There are also a lot of awesome plugins that can be found at https://github.com/FriendsOfCake/awesome-cakephp |
# |
Dec 27th 2018, 10:38 |
challgren |
I would recommend focusing on 3.7 as your base version |
# |
Dec 27th 2018, 10:38 |
doomsday_ |
Thanks. Am on it. |
# |
Dec 27th 2018, 10:37 |
challgren |
https://book.cakephp.org/3.0/en/quickstart.html has a CMS example that could help you learn |
# |
Dec 27th 2018, 10:37 |
doomsday_ |
Thanks challgren |
# |
Dec 27th 2018, 10:37 |
challgren |
They are a bit outdated |
# |
Dec 27th 2018, 10:36 |
doomsday_ |
Are these tutorials good: https://hackr.io/tutorials/learn-cakephp? |
# |
Dec 27th 2018, 10:36 |
challgren |
That would be the best spot to start |
# |
Dec 27th 2018, 10:36 |
challgren |
https://book.cakephp.org/3.0/en/index.html |
# |
Dec 27th 2018, 10:36 |
doomsday_ |
How and where to start? |
# |
Dec 27th 2018, 10:36 |
doomsday_ |
I know CodeIgniter and looking to learn CakePHP |
# |
Dec 27th 2018, 10:36 |
challgren |
Hi CakePHP newbie |
# |
Dec 27th 2018, 10:35 |
doomsday_ |
Hello, CakePHP newbie here |
# |
Dec 27th 2018, 09:42 |
challgren |
No worries good luck! |
# |
Dec 27th 2018, 09:42 |
chan |
@challgren oh.. now, i understand your explain. code is working now. thanks you. |
# |
Dec 27th 2018, 09:32 |
challgren |
After your `$this->ModelName->save($data);` |
# |
Dec 27th 2018, 09:30 |
challgren |
@chan use `$last_id = $this->ModelName->id` |
# |
Dec 27th 2018, 09:28 |
yamcomnet |
thats clear! Thanks @challgren |
# |
Dec 27th 2018, 09:28 |
challgren |
https://book.cakephp.org/3.0/en/plugins.html#loading-a-plugin |
# |
Dec 27th 2018, 09:27 |
challgren |
Yes |
# |
Dec 27th 2018, 09:27 |
challgren |
https://github.com/cakephp/app/blob/master/src/Application.php#L47 |
# |
Dec 27th 2018, 09:27 |
yamcomnet |
load all plugins there? |
# |
Dec 27th 2018, 09:26 |
challgren |
Under your `public function bootstrap()` |
# |
Dec 27th 2018, 09:26 |
challgren |
@yamcomnet You would put that in your `/src/Application.php` |
# |
Dec 27th 2018, 09:23 |
yamcomnet |
what is the namespace of Application? |
# |
Dec 27th 2018, 09:23 |
yamcomnet |
trying to fix deprecations: Plugin::load() is deprecated. Use Application::addPlugin() |
# |
Dec 27th 2018, 09:23 |
chan |
hi everyone, i want to get last id of table mysql with cakephp 2 coding. i try the following coding, but didn't work. ``` $this->ModelName->id; $record_id=$this->ModelName->getLastInsertID(); ``` so, can you help me to get the last id for table. thanks. |