1. Make your own folder inside the view folder based upon the name of the controller, then you put all the .ctp inside the folder you just made (ex. views/users/profile.ctp) 2. Should go in the controllers folder, in the app directory. However if you are on a shared host that can't change its webroot, then you will need to modify index.php in the webroot folder to point to the CakePHP which shouldn't be in your webroot.
You really just need to get a handle of MVC, Model View Controller Here is a fairly simple MVC image to understand http://www.howardyoung.info/wp-content/uploads/2007/12/model-view-controller-cakephp.jpg On Nov 11, 9:52 am, "Xavier Mathews" <[EMAIL PROTECTED]> wrote: > I Thought There Was An Output Form That He Could Use And Then He Would > Already Be Set-Up! > > Xavier A. Mathews > Student/Developer/Web-Master > GG Client Based Tech Support Specialist > Hazel Crest Illinois > [EMAIL PROTECTED]@[EMAIL PROTECTED] > "Fear of a name, only increases fear of the thing itself." > > On Tue, Nov 11, 2008 at 11:50 AM, validkeys <[EMAIL PROTECTED] > > > wrote: > > > Tim, try this. Create your database and then run the bake script. It > > will create the forms for you. Then what you can do is see how it > > created your forms using your database fields and you will learn how > > to convert old php forms into cake forms. > > > Having recently learned Cake, I definetly agree with teknoid. Fully > > embracing a framework vs. just using certain features is definetly the > > way to go. That's why I was saying do something along the lines of the > > blog tutorial. See what a model is, what a controller is and how those > > 2 work together with your views to create an MVC environment. You > > should learn (at a very basic level) how then to migrate your system > > (by migrate I mean completely redo) into cake. > > > On Nov 11, 9:22 am, teknoid <[EMAIL PROTECTED]> wrote: > > > That's a wrong approach. > > > > You either use a framework and follow its methodology (which means you > > > have to rewrite what you had) or you just use good ol' PHP. > > > "Integrating" is not really going to work. > > > > On Nov 10, 10:28 pm, TimA1116 <[EMAIL PROTECTED]> wrote: > > > > > I would like to integrate a 6 page form created in PHP 5.2.5 into > > > > CakePHP. I have looked at various posting here and I've tried to > > > > implement what was instructed. However, I am at a loss as to how to > > > > proceed even though there must be away to accomplish what I'm trying > > > > to do. > > > > > I would very much appreciate a step by step (kindergarden level) how- > > > > to inegrate php code into cakephp framework. > > > > > I have a folder, named "app_form", which contains all my files. My > > > > code will do all the work. I just want CakePHP to render the output > > > > of my files. > > > > > 1. Where do I put app_form? If you suggest the "views" folder, which > > > > one as there seems to be a gazillion of them? > > > > 2. Where do I create the controller for accessing my files and what > > > > do I put in the controller? Should I create something else like an > > > > element? > > > > 3. What should my .htaccess say with regards to my files in app_form > > > > and where should that .htaccess be located? > > > > 4. What else am I missing? > > > > > Thanks in advance for your help! > > > > > Tim --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
