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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
22 matches
Mail list logo