# |
Apr 29th 2017, 10:28 |
loginews |
@dakota no. I am too far away. I Mauritius. |
# |
Apr 29th 2017, 10:28 |
dakota |
@loginews (and @keith) |
# |
Apr 29th 2017, 10:28 |
dakota |
Planning on attending CakeFest? |
# |
Apr 29th 2017, 10:28 |
loginews |
@dakota yes. You see, I have been guiding myself to do it in 5 minutes |
# |
Apr 29th 2017, 10:27 |
dakota |
loginews I see it’s more than just the first page, and you do talk about bake :slightly_smiling_face: |
# |
Apr 29th 2017, 10:21 |
dakota |
keith, glad I could help |
# |
Apr 29th 2017, 10:21 |
dakota |
> Php calculates differences between dates using strtotime function. Use Chronos (i.e. the Datetime class) - https://book.cakephp.org/3.0/en/chronos.html |
# |
Apr 29th 2017, 10:21 |
keith |
After being at your talk @dakota crud has made my life a joy |
# |
Apr 29th 2017, 10:20 |
dakota |
> The time it takes to create a CRUD in MsAccess is 5 minutes. The time it takes to do it in CakePHP is in days. Two tools that can make it take less than 5 minutes in CakePHP: Bake (https://book.cakephp.org/3.0/en/bake.html>) and the CRUD plugin (<https://crud.readthedocs.io/>) - Crud plugin combined with the crud-view plugin is even better (<https://crud-view.readthedocs.io/) |
# |
Apr 29th 2017, 10:18 |
dakota |
loginews, I know you are new to CakePHP, so probably haven’t tried everything that it has to offer, but I feel like I need to give you some hints based on your article :slightly_smiling_face: |
# |
Apr 29th 2017, 09:29 |
slackebot1 |
designing a report is also mine. But the job of finding ways to display a field in a report, without running into considerations of centimeters, of colors, etc, is that of the language designer. I am not an employee of HSBC. They are my customers. Being an Msc Maths guy, I can grasp abstract and complex concepts very fast - that is not an issue. I have made a choice and that's CakePHP. Believe me, my opinions are valuable! |
# |
Apr 29th 2017, 09:29 |
slackebot1 |
already working with MsAccess. But you perhaps do not remember the days when Microsoft purchased Foxpro and dumped the product. That was how I was FORCED to work with MsAccess. Microsoft also came up with new products which were not upward compatible. So my decision to go for MySQL and cloud proved to be a good one. I have tried to program more comfortably with php by using phpmyedit and ajaxcrud. You see, the job of writing the HSBC system is mine. T |
# |
Apr 29th 2017, 09:29 |
slackebot1 |
astronomical calculations. I have very long ago disconnected MsAccess from its proprietary db, and used ODBC to connect to MySQL databases. Some routines were written in plain php, and worked well. I currently have software for doctors, for accounting and POS, and for payroll. My experience is in these. I only have to make them run on the cloud, and on the new devices. I do not have to change them. Microsoft was supposed to offer the easiest transitio |
# |
Apr 29th 2017, 09:29 |
loginews |
@admad It all depends what you call experience, and what you call limited. I use MsAccess to develop sophisticated software for whole departments at HSBC (an international bank). If you need RAD you must consider something which lets you focus on the system to be computerized, not on the language. I have 35 years experience in programming, and have written code in machine language and assembly language. I have written code in C, Pascal and |
# |
Apr 29th 2017, 09:27 |
joop |
is it possible to acces a variable which was declareted in the BeforeRender()? |
# |
Apr 29th 2017, 09:10 |
joop |
okey thank you |
# |
Apr 29th 2017, 09:10 |
burzum |
joop what makes you think it would magically get set? You need to set it to the view. If you do that in your app controller it will be set to all views rendered by controllers that extend app controller |
# |
Apr 29th 2017, 09:07 |
keith |
I know the docs say use View Cells, but that won’t work in this case. I also don’t want to redirect because I’d prefer the user goes to /public/:id which then renders the controller action linked to the id in the database |
# |
Apr 29th 2017, 09:05 |
joop |
or will automatically pass for each views? |
# |
Apr 29th 2017, 09:05 |
keith |
I’m trying to call an action and render the view using fields from a database to choose the plugin/controller/action etc. So I have prefix, controller, action fields in the database, currently i’m using requestAction to achieve this but it has been deprecated, so I’m wondering if there is a better way |
# |
Apr 29th 2017, 09:05 |
slackebot1 |
and should i use $this->set(compact($isadmin) in the beforerender()? |
# |
Apr 29th 2017, 09:03 |
burzum |
Joop, passing it where needed. The only place you'll probably always need it is the view. So just set it in beforeRender() |
# |
Apr 29th 2017, 09:02 |
joop |
i mean i need several places $isadmin variables(its indicates if admin is logged in or not) |
# |
Apr 29th 2017, 09:01 |
joop |
what is the best practise to store global variables? |
# |
Apr 29th 2017, 09:01 |
joop |
i would like to ask your openion |
# |
Apr 29th 2017, 09:00 |
joop |
hello guys have good moorning to you all |
# |
Apr 29th 2017, 07:49 |
admad |
@loginews your article can be summarized as "Trying your hand at webdev using a modern PHP framework involves a steep learning curve, when you current experience only involves using as very limiting s/w like MSAccess" |
# |
Apr 29th 2017, 07:24 |
hmic |
rudy1976s: what does "create" mean? yes, you can easily dispatch an event. you could even attach one, which is likely not what you want?! |
# |
Apr 29th 2017, 06:37 |
rudy1976s |
hello is possible to create a new event in a afterSave model callback ? |
# |
Apr 29th 2017, 06:26 |
loginews |
@hiromi2424 thanks |
# |
Apr 29th 2017, 06:25 |
loginews |
@metoyoko thanks |
# |
Apr 29th 2017, 06:24 |
loginews |
@hmic I started with cakephp 3 directly. I tried several times. I read the official book for version online. But I believe that the difficulty is that a lot of advanced features are also discussed in the same paragraphs, which make the newcomer helpless. I come from MsAccess platform. Here is what I wrote for myself, in order to clear up the fog: http://cakephp.loginonline.net |
# |
Apr 29th 2017, 06:13 |
hmic |
the book is very clear, 3.x as least as good as 2.x. even more comprehensive |
# |
Apr 29th 2017, 06:12 |
hmic |
are you reading the book or what kind of documentation are you talking about? |
# |
Apr 29th 2017, 06:11 |
metoyoko |
@loginews yes I agree with you that documentation for ver.2 is more readable and explained clearly than ver.3, based on my own experienced. |
# |
Apr 29th 2017, 06:05 |
hiromi2424 |
@metoyoko yeah it is. |
# |
Apr 29th 2017, 06:05 |
metoyoko |
@hiromi2424 afaik that input refers to hasOne association? correct me if im wrong thanks |
# |
Apr 29th 2017, 06:03 |
metoyoko |
@loginews heres the link: https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-inputs-for-associated-data |
# |
Apr 29th 2017, 06:01 |
hiromi2424 |
@loginews You can set association field like `Form->input('param.ADDRESS1')` |
# |
Apr 29th 2017, 06:00 |
hmic |
the book distinguishes between 2.x and 3.x very cleary, i's basically 2 different books with different urls to spot where you are on! |
# |
Apr 29th 2017, 05:59 |
loginews |
yes.... I did not see this in any documentation. It explains why we are getting difficulties. Also, a lot of documentation refer to version 2. You and I are using version 3 of cakephp. |