Greetings, please forgive me if these questions have been asked before... I am a new user to Cake, and have a fairly complex project I am interested in using it on... Before I begin though, I will give a bit of background in my normal development path, so everyone knows where I am comming from...
Traditionally, I build a custom framework for my projects, utilizing PEAR and regular PHP, in specific AUTH or LiveUser for the authentication work, MDB2 for database abstraction, and Flexy, IT/X, or Sigma for the template handling. Recently I have begun to work on a project which all said and done should be a fairly long term project. A friend convinced me to give CakePHP a try for it instead of doing it in the format I normally would... Hence why the questions I post here... 1> Can anyone suggest some good tutorial / reference sites for CakePHP? I am one who learns better when I have a tutorial or actual code I can rummage around with and play with on my local and remote servers to actually see things in action more so then just reading them... 2> I need to submit data to my app from outside sources, such as other websites, and programming languages, and return results back. Traditionally I would use a standalone page, on the backend of a site to recieve the data by a POST request much like a form submission, then check that the data came in via an authorized sender, followed by sanitizing the data just in case, then processing it, and returning the needed data back to the source, either as another POST request, or as the body of an XML and/or XHTML document. I have seen a possible way to do this using the router setup, to break down URLs / mod rewrites, but this seems a bit inflexible to me. While I normally would use a seperate "page" to handle each type of incomming form submission, part of the new project is a desire to move away from this and into a more modular layout, that is not so dependent on strictly formatted POST requests, to something that can be based on keywords / command strings encoded in the POST submission. Note: Due to the nature of what I am working on, I am restricted to submitting data to the online section of my app as either GET or POST requests, for obvious reasons I prefer POST... 3> Best way to get enviromental variables, such as server headers? Part of my checks to make sure where the incomming data supplied as listed above in #2 is by checking the headers of the incomming data. In the app I am building, this is a MANDATORY requirement due to certain security considerations, as well as limitations that must be imposed on the app based on these headers. I have seen about using $env () and $getenv () to get the data but if the router is used to send the data to a controller will the headers be persistent, or should the code to send them to the controller be built into the router functionality as well? 4> After wandering around the CakePHP site as well as the Forge, and Bakery, I am considering using the Dark Auth component to handle my basic ACL / AUTH work, but it doesn't do all I need. Part of the project I am doing, involves the end users to be able to create groups of other users who can then be given specific rights within thier account, such as forums like phpBB use... There is an initial site wide system, that governs things like who can access what level of the backend or front end people have access to, then there is a second layer that will give people specific access to certain things. Any suggestions on an easy way to implement such in CakePHP without a large amount of redundant code and work? Example: User 1 has "Publisher" access on the front end of a website, but wants to give User's 2-4 the ability to modify the posts that User 1 has made, but not to post new material, etc... IE, a limited grant of User 1's rights, without having to add User 2-4 to the same access level as User 1, and limited in scope to material owned by User 1 only... I will apologize if my questions are abit confusing at first look, I have always found it harder to explain to someone over the web what goes through my head, then it is for me to draw it out as a flow chart or step by step diagram to show someone, and Google Groups doesn't let me tack on an attachment to provide a flow chart... If anyone willing to help get me pointed in the right direction wants more percise details on what I need feel free to ask, or drop me an email... I do have a few other questions, but these are the most pressing at the moment, since they are part of the "backbone" for the application I am working on... Thanks in advance, and again I apologize for asking things that are probably repetitive, but I didn't find satisfactory answers by using the search system... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
