Wednesday, March 3, 2010

Re: Why Doesn't Anyone Know how to drop in a new URL in a cake framework

On that same note, since you wanted to add a blog, you might want to
try to drop-in WordPress (or any other weblogging software you have)
directly into your app/webroot folder. I've had different success
rates with this though (not specifically with WordPress), and you too
might, depending on your blog software, partly because of how your
pluggable blog will call on its libraries.

Cheers.

On Mar 3, 11:23 pm, APD <a...@pawsat.com> wrote:
> Thanks Nico.  I will give this a try.
>
> On Mar 2, 1:56 am, WebRenovator <ngev...@gmail.com> wrote:
>
> > Hi APD
>
> > The reason for this error is two fold:
>
> > First, cake is looking for the HawaiitravelblogController which
> > doesn't exists. This could well be be because there's a routing
> > problem (the first error you posted) and so it can't find the right
> > url.
>
> > The second problem comes in because of the first. The element expects
> > to be called from a valid controller. Since the controller failed to
> > load, the element complains since no controller has been specified.
>
> > My guess is that when you solve the routing problem with the
> > controller, the element will sort itself out.
>
> > Nico
>
> > On Mar 1, 7:35 pm, APD <a...@pawsat.com> wrote:
>
> > > <?php
> > >         if($this->params['controller'] == "islands" && sizeof($this->params['pass']) == 0) {
>
> > >                 echo $html->image('step01_5.gif', array('alt'=>'Step 1: Select an
> > > Area', 'style'=>'display:block; margin:auto;'));
> > >         } else if($this->params['controller'] == "islands" && sizeof($this->params['pass']) > 0) {
>
> > >                 echo $html->image('step02.gif', array('alt'=>'Step 2: Select a
> > > Property', 'style'=>'display:block; margin:auto;'));
> > >         } else if($this->params['controller'] == "properties" && $this->params['action'] == "details") {
>
> > >                 echo $html->image('step03.gif', array('alt'=>'Step 3: Speak to
> > > Hawaii Hideaways', 'style'=>'display:block; margin:auto;'));
> > >         } else if($this->params['controller'] == "properties" && $this->params['action'] != "details") {
>
> > >                 echo $html->image('step02.gif', array('alt'=>'Step 2: Select a
> > > Property', 'style'=>'display:block; margin:auto;'));
> > >         } else {
> > >                 echo $html->image('step01.gif', array('alt'=>'Step 1: Select an
> > > Island', 'style'=>'display:block; margin:auto;'));
> > >         }
> > > ?>
>
> > > On Mar 1, 12:13 pm, Jeremy Burns <jeremybu...@me.com> wrote:
>
> > > > Can you publish the contents of this file:
>
> > > > /app/views/elements/steps.ctp
>
> > > > ... to this forum?
>
> > > > Jeremy Burns
>
> > > > On 1 Mar 2010, at 16:33, APD wrote:
>
> > > > > I hired someone to add a blog to our website.  I have noticed that
> > > > > there are always php errors anytime a new page is created.  In my job
> > > > > description, I said Cake knowledge would be necessary.  This was not
> > > > > heeded. Those hired dropped in the new url and this is what the page
> > > > > reads:
>
> > > > > ________________________________________________________________________
>
> > > > > Notice (8): Undefined index:  here [CORE/cake/libs/router.php, line
> > > > > 763]
> > > > > Notice (8): Undefined index:  controller [CORE/app/views/elements/
> > > > > steps.ctp, line 2]
>
> > > > > Notice (8): Undefined index:  controller [CORE/app/views/elements/
> > > > > steps.ctp, line 4]
> > > > > Notice (8): Undefined index:  controller [CORE/app/views/elements/
> > > > > steps.ctp, line 6]
> > > > > Notice (8): Undefined index:  controller [CORE/app/views/elements/
> > > > > steps.ctp, line 8]
>
> > > > > Missing controller
>
> > > > > You are seeing this error because controller
> > > > > HawaiitravelblogController could not be found.
>
> > > > > Notice: If you want to customize this error message, create app/views/
> > > > > errors/missing_controller.ctp
>
> > > > > Fatal: Create the class below in file: app/controllers/
> > > > > hawaiitravelblog_controller.php
>
> > > > > <?php
> > > > > class HawaiitravelblogController extends AppController {
> > > > >   var $name = 'Hawaiitravelblog';
> > > > > }
> > > > > ?>
>
> > > > > ________________________________________________________________________
>
> > > > > I unfortunately do not have any specific coding training in Cake or
> > > > > php but would like to know what the above means to see if 1) I can fix
> > > > > it myself or 2) describe it better to someone who may actually be able
> > > > > to fix it.
>
> > > > > Thanks for the help.
>
> > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelpotherswith 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+unsubscribe@googlegroups.com For more options, visit this group athttp://groups.google.com/group/cake-php?hl=en

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: