app-controllers-pages_controller

2012-02-12 Thread Sean
Hello all, This is the first time I have posted. I am relatively new to cakePHP. I have been working with an application and have run into something strange. My app/controllers/pages_controller is acting very strange. It works just fine in my development environment. I can view, add, edit

Re: app-controllers-pages_controller

2012-02-12 Thread phpMagpie
Sounds like there is something wrong with your code and without seeing it hard to debug. You also mention lots of different errors with editing, deleting etc. Find the the most concise piece of code that you believe should be working but isn't. Paste that code to pastebin

Re: pages_controller

2011-02-27 Thread AD7six
On 26 feb, 22:58, Krissy Masters naked.cake.ba...@gmail.com wrote: Maybe because I never used it in my journey with Cake so far, but the pages controller. I understand the basic idea of rendering static pages display = some_page but how can you define different layouts for each rendered

RE: pages_controller

2011-02-27 Thread Krissy Masters
LOL...right! Thanks man. So simply overlooked. K -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send

Re: RE: pages_controller

2011-02-27 Thread OldWest
Wish I would have made it to this post earlier : ) ... I ran into the same issue and complicated it beyond belief! But it's as simple as stated above. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

pages_controller

2011-02-26 Thread Krissy Masters
Maybe because I never used it in my journey with Cake so far, but the pages controller. I understand the basic idea of rendering static pages display = some_page but how can you define different layouts for each rendered static page? All I can guess is pages_controller: function index

Re: pages_controller

2011-02-26 Thread Ryan Schmidt
On Feb 26, 2011, at 15:58, Krissy Masters wrote: the pages controller. I understand the basic idea of rendering static pages display = some_page but how can you define different layouts for each rendered static page? All I can guess is pages_controller: function index (){ $this-layout

RE: pages_controller

2011-02-26 Thread Krissy Masters
-php@googlegroups.com] On Behalf Of Ryan Schmidt Sent: Saturday, February 26, 2011 8:39 PM To: cake-php@googlegroups.com Subject: Re: pages_controller On Feb 26, 2011, at 15:58, Krissy Masters wrote: the pages controller. I understand the basic idea of rendering static pages display = some_page

Re: named parameters in pages_controller

2010-01-14 Thread Azril Nazli
try $url = $html-url( array('controller' = 'posts', 'action' = 'view', 'id' = 12, 'param' = 'name)); echo $url; On Jan 13, 8:56 pm, blickensdoer...@googlemail.com blickensdoer...@googlemail.com wrote: hi everyone, i have a problem with the url helper in the pages_controller: i want

named parameters in pages_controller

2010-01-13 Thread blickensdoer...@googlemail.com
hi everyone, i have a problem with the url helper in the pages_controller: i want to append a named parameter to the current url . in all controllers this works fine, but the pages_controller does always something like this: /pages/display/pages/info/param:name i've tried various ways to pass

How to: subpages in pages (pages_controller)

2007-04-23 Thread gerhardsletten
Lets say I want to create a pages called Projects with Software 1 and Software 2 as subpages. How do I do that. Do I create an folder within Pages folder, where an index.thtml file will be the default access when http://www.example.com/pages/projects is requested? I want the 2 subpages at this

Re: How to: subpages in pages (pages_controller)

2007-04-23 Thread jitka
yes, You can create subfolders in app/views/pages, so url example.com/pages/projects/software_1 will look for file app/views/pages/projects/software_1.thtml If You want example.com/pages/projects then create file app/views/pages/projects.thtml

Re: How to: subpages in pages (pages_controller)

2007-04-23 Thread gerhardsletten
Thanks, looking forward to try it out.. Gerhard On Apr 23, 2:10 pm, jitka [EMAIL PROTECTED] wrote: yes, You can create subfolders in app/views/pages, so url example.com/pages/projects/software_1 will look for file app/views/pages/projects/software_1.thtml If You want

Setting view variables from pages_controller??

2007-03-16 Thread [EMAIL PROTECTED]
Hi all, I have setup a pages_controller.php with the following function to call the static homepage (home.thtml): function home() { $this-set('searchElement', $this-requestAction('/docs/ search', array('return'))); $this-display(); } However on home.thtml, it says the the

Re: Setting view variables from pages_controller??

2007-03-16 Thread rtconner
as far as I know... you've got it right. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to

Re: pages_controller

2006-09-15 Thread John Zimmerman
2006 14:43:17 -0700, [EMAIL PROTECTED] wrote: I have added my own function to the pages_controller: function test() { $this-set('abc', 'something'); } The controller does load the correct view! (test.thtml) But the $abc var is Undefined!What's happening is that the routes are configured so

Re: pages_controller

2006-09-15 Thread Chris Lamb
Afternoon. On Fri, 15 Sep 2006 00:04:59 -0700, John Zimmerman wrote: I have modified the default pages controller to add a few tweaks by first copying it to my app directory. I then renamed it to static_controller.php, modifying the code and the views directory appropriately. Did you

Re: pages_controller

2006-09-15 Thread [EMAIL PROTECTED]
Zimmerman: I just tried your suggestion and that worked very well. (renamed pages_controller to static_controler and created my own new pages controller.) Thanks guys. I was totally stuck with that problem! It is really nice when people have the patience to help us newbie's. Best regards. Asbjørn Morell

Re: pages_controller

2006-09-15 Thread John Zimmerman
On 9/15/06, Chris Lamb [EMAIL PROTECTED] wrote: On Fri, 15 Sep 2006 00:04:59 -0700, John Zimmerman wrote: I have modified the default pages controller to add a few tweaks by first copying it to my app directory.I then renamed it to static_controller.php, modifying the code and the views directory

pages_controller

2006-09-14 Thread [EMAIL PROTECTED]
I have added my own function to the pages_controller: function test() { $this-set('abc', 'something'); } The controller does load the correct view! (test.thtml) But the $abc var is Undefined! I tried everyting, and can't figure out what is wrong! It works perfect if I put the function

Re: pages_controller

2006-09-14 Thread Chris Lamb
Evening. On Thu, 14 Sep 2006 14:43:17 -0700, [EMAIL PROTECTED] wrote: I have added my own function to the pages_controller: function test() { $this-set('abc', 'something'); } The controller does load the correct view! (test.thtml) But the $abc var is Undefined! What's

Customizing pages_controller

2006-06-23 Thread BlenderStyle
Does anyone have any insight on how to customize PagesController (pages_controller.php)? I want to add my own methods like add, edit, and delete but I can't get it working. First, I copied cake/libs/controllers/pages_controller.php to app/controllers and added my own method called add(). I