See below:
Hi all,
Trying to pick up CakePHP and I've used PHP for quite a long time, but no frameworks at all. I've got a million wheels I reinvented myself. I have a few basic questions!
I have no telnet access to my shared host, I do all my learning on my personal shared host so I have no access to baking or anything automated. That leaves me in a black hole because most CakePHP tutorials (99%) only ever assume you have shell access and provides no alternative to the automation they use.
I want to use CakePHP more for the MVC structure than the automation, at least right now.
I'm looking at Auth and Acl. Every tutorial starts off the same, telnet in and start baking up the controllers, models, etc. Nobody's really explaining what magic happens if you can't telnet. Some tutorials or blog posts are better and give little hints of structure outside "set oven to 350 and bake", but there's no clear picture of a whole system top to bottom that I can find.
I'm confident a lot of this is because I only read the cakePHP manual top to bottom and it left me dry via expecting I'd have a strong grasp on MVC concepts. For instance, some tuts had the MySQL table structures I could copy into my db, but then didn't explain how to set up the Model file (it expected bake would auto-associate). Others would show a Model of their style but no database associated. I didn't have luck mixing the tutorials, stealing SQL structure from one and using it with Models from other tutorials.
In fact I'm still pretty confused on how Models somehow auto-associate with tables and how to even work with data in them haha. And I read the manual! I see $this->data all over the place, but nobody stopping to say "BTW $this->data represents your latest query" or whatever..
Anyone have a great online resource (I'm not book friendly typically) that can explain Acl and Auth?
As much as I understand is I need a aco, aro and aco_aro table to set up a hierarchy of acl permissions and I'd like to do it in crud and based on actions so I can be flexible and assign group permissions and also have per-user control. I know I need users and groups tables with the proper foreign keys to tie them together with Acl. What nobody is really putting forth is a great non-bake tutorial covering all of that.
Anyone a master of this stuff or have a good tutorial reference? TIA!
edit:
For example I'm using these tables for users and groups. These tables for aro/aco/join tables. (See I'm using multiple sites, nothing all in one place). This blog post for a User and Group Model. Any of those sources have varying ways to implement the controller. It all leaves me unaware of the best, or even a good implementation.
Trying to pick up CakePHP and I've used PHP for quite a long time, but no frameworks at all. I've got a million wheels I reinvented myself. I have a few basic questions!
I have no telnet access to my shared host, I do all my learning on my personal shared host so I have no access to baking or anything automated. That leaves me in a black hole because most CakePHP tutorials (99%) only ever assume you have shell access and provides no alternative to the automation they use.
I want to use CakePHP more for the MVC structure than the automation, at least right now.
I'm looking at Auth and Acl. Every tutorial starts off the same, telnet in and start baking up the controllers, models, etc. Nobody's really explaining what magic happens if you can't telnet. Some tutorials or blog posts are better and give little hints of structure outside "set oven to 350 and bake", but there's no clear picture of a whole system top to bottom that I can find.
I'm confident a lot of this is because I only read the cakePHP manual top to bottom and it left me dry via expecting I'd have a strong grasp on MVC concepts. For instance, some tuts had the MySQL table structures I could copy into my db, but then didn't explain how to set up the Model file (it expected bake would auto-associate). Others would show a Model of their style but no database associated. I didn't have luck mixing the tutorials, stealing SQL structure from one and using it with Models from other tutorials.
In fact I'm still pretty confused on how Models somehow auto-associate with tables and how to even work with data in them haha. And I read the manual! I see $this->data all over the place, but nobody stopping to say "BTW $this->data represents your latest query" or whatever..
Anyone have a great online resource (I'm not book friendly typically) that can explain Acl and Auth?
As much as I understand is I need a aco, aro and aco_aro table to set up a hierarchy of acl permissions and I'd like to do it in crud and based on actions so I can be flexible and assign group permissions and also have per-user control. I know I need users and groups tables with the proper foreign keys to tie them together with Acl. What nobody is really putting forth is a great non-bake tutorial covering all of that.
Anyone a master of this stuff or have a good tutorial reference? TIA!
edit:
For example I'm using these tables for users and groups. These tables for aro/aco/join tables. (See I'm using multiple sites, nothing all in one place). This blog post for a User and Group Model. Any of those sources have varying ways to implement the controller. It all leaves me unaware of the best, or even a good implementation.