Re: how to setup 3 distinct Layouts: Public / UserLoggedIn / AdminLoggedin ?
I too would love this information. On Jan 9, 12:16 pm, kyle wrote: > Im new to cakephp but I love the concept thus far. I understand how to > create views and change the default layout but its unclear to me how > to make different layouts with different images and css. > > My question is... I want to build an application that is designed like > the following... > > LAYOUT1: (public no auth required): Homepage + BlogArticles + Login > LAYOUT2: (user logged into system): User Homepage + Links to the parts > of the backend System > LAYOUT3: (admin user): Admin Homepage + Links to edit and manage all > aspects of system > > Each layout has its own template / views / css /images / etc > > How do you do this in cakePHP? How do you separate the layouts or > define which layout to use in your code? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: A problem in cook book 1.2
You are correct. After several hours I discovered the same problem. You do have to remove "id=>" . On Dec 15, 6:08 pm, retzzz wrote: > I tried the Blog example in cookbook 1.2. There is a problem in > Chapter 10.1.12 (http://book.cakephp.org/view/340/Editing-Posts) . > You can find the code list of /app/views/posts/index.ctp on this page. > It doesn't work unless " 'id'=> " is removed from $html->link() > function invoking parameter. > > Does anyone know whether it is a problem or I make other mistakes? > > BTW: I use version 1.3 alpha. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Newb? Console wants full path for app name-Need answer tonight please ;)
Still can't see why my database configuration is never found. I know I've done it correctly because I did it the same way in the blog tutorial. I can also go in to the project folder and pull the database.php file and it shows that it was created with my inputs. Also, should I have done scaffolding? It's my understanding that I don't need it with bake. On Dec 16, 2:59 am, Marcelo Andrade wrote: > On Wed, Dec 16, 2009 at 2:14 AM, danashan wrote: > > So C:\xampp\htdocs\cake\app\'newproject' ? > > C:\xampp\htdocs\cake\app\ > > Inside app folder in Cake 1.2 you' ll find config, > controllers, locale, models, plugins, tests, tmp, > vendors, views and webroot folders. > > There's no such 'newproject' folder. > > Best regards. > > -- > MARCELO DE F. ANDRADE > Belem, PA, Amazonia, Brazil > Linux User #221105 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Newb? Console wants full path for app name-Need answer tonight please ;)
So C:\xampp\htdocs\cake\app\'newproject'? That is the path I used, but I still get the message that the database is not configured even though I changed the following in the database.php file: var $default = array( 'driver' => 'mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'root', 'password' => '**', 'database' => 'danashan', 'prefix' => '', I have done this over and over. It keeps creating projects, database gets configured again and again, but I never get the option to bake a model, controller, or view. I need to get to the "CAKE BAKE" screen on the console. I wince to say this but, please spell it out for me because I'm certain I have missed something basic. On Dec 15, 7:29 pm, Marcelo Andrade wrote: > On Tue, Dec 15, 2009 at 9:34 PM, danashan wrote: > > This is a total newb question. I'm new to cake. I did the blog > > tutorial and am now working on the acl so I can try bake. In the > > console it asks for the full path for this app including directory > > name. The example is C:\Users\Dana\ I'm using xampp in windows (C: > > \xampp\htdocs\cake). Am I creating a new app folder before I run cake > > bake and then referring to that path? By default, using the console > > already has me in my cake application. If so, do I put it in my xampp > > directory, in cake, desktop, etc...? > > You must just inform the full path for your "app"' folder. > > Best regards. > > -- > MARCELO DE F. ANDRADE > Belem, PA, Amazonia, Brazil > Linux User #221105 > > http://tasafo.org Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Newb? Console wants full path for app name-Need answer tonight please ;)
This is a total newb question. I'm new to cake. I did the blog tutorial and am now working on the acl so I can try bake. In the console it asks for the full path for this app including directory name. The example is C:\Users\Dana\ I'm using xampp in windows (C: \xampp\htdocs\cake). Am I creating a new app folder before I run cake bake and then referring to that path? By default, using the console already has me in my cake application. If so, do I put it in my xampp directory, in cake, desktop, etc...? On a side note, I have not gotten the interactive bake shell to come up in the console. All I get is the database configuration (which I have already done in database.php). I'm sure it's related to my question above. I appreciate the help. Ideally, I need an answer by 8 pm PST today 12/15. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en