Objects are used everywhere. What do you think your doing in a controller when you access models or components?
$this->Component->method(); Take a look at Auth, it references the Controller object as well as modifies it. On Jun 20, 8:34 am, brian <[email protected]> wrote: > On Sat, Jun 20, 2009 at 10:42 AM, lefty<[email protected]> wrote: > > > only got into baking very recently, and while there are lots of > > promises how 'supersimple' everything is with cake i still havent > > found the most basic fundamentals of how its actually working. > > > is there anybody who can answer these simple questions - they would > > help me getting a long way into actually really using cake instead of > > just pasting & modifying codesnippets from other sources : > > > 1. Where are the objects ?? > > I see lots of classes but no instances of them.Yes, there is '$this', > > but it doesnt count since its a reference to an actual object, which, > > as far as i could see in all the tutorials, doesnt exist yet. > > > 2. I see of a static parent::method and variable, i see variables that > > are handled via arrays, but where are object references ?? > > There are object refs all over the place! Start with dispatcher.php > and follow from there. > > > 3. also havent come across a protected method in any tutorial yet. > > Why is that - just by chance ? or did i not look well enough. > > Because CakePHP supports PHP4.x the public/private/protected keywords > are not used. A protected method or variable will be prefixed by a > single underscore ('_') and a private one with two ('__'). > > > So. In order to use the structure it is essential to know whats > > actually going on. 'sentences like 'cake' does this or that dont help, > > btw. escpecially since i have no clue who the hell 'cake' is :). > > CakePHP is a framework. If someone says that it "does" something it > means, "this is how it works". > > I agree that Cake is a bit difficult to follow, especially when first > diving into it. I'm sure there is documentation out there somewhere > that runs through a complete and *detailed* example of a request but > I've never seen it. Perhaps somebody else can post a link. > > > I hope that these questions are easily answered in no cookbook > > style :) > > The cookbook is going into details of functionality before the basic > > structure is clarified. It repeats itself with cake makes this and > > that easy for you, but what i a always missing, is : how, does cake do > > it. Yes the codesnippets are easy, yes the conventions are great, yes > > the MVC structure is cool, and yes i'm sure cake can do it. Is there a > > reference maybe, or a clear and simple model of how it does these > > things, so that beginners with cake dont need to try and make 'cake' > > do things in ways that it wasnt designed for ? > > > Many thx lefty --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
