Re: $this->cakeError refuses to load a custom layout.

2007-07-20 Thread Ski
am going to have to implement duplicate the rendering in my own class. This seems a bit bx having to override a whole error handler just to use custom layouts and templates, maybe this will get fixed for another release - isn't that what inheritance is about?

Re: $this->cakeError refuses to load a custom layout.

2007-07-20 Thread Ski
Hi, I managed to override the default layout locally but cannot get it working live: I did this by setting the layout at the top of my custom template files... Seems a bit bollox to have to override a whole error handler just to use custom layouts and templates, maybe this will get fixed

Re: $this->cakeError refuses to load a custom layout.

2007-07-20 Thread Ski
Hi, On Jul 19, 10:16 pm, francky06l <[EMAIL PROTECTED]> wrote: > Sorry guys did not know "errors always use the default layouts". > > On Jul 18, 12:00 am, phpjoy <[EMAIL PROTECTED]> wrote: > > > that's great to know, "errors always use the default layouts". :) > > didn't see it in the manual..

Re: cacheing a dynamic menu

2007-07-18 Thread Ski
Hi, Sorry, I lied about element caching - the number of queries went down, but it was not because of the element cache - this is 1.2 I guess... Still looking if anyone else knows.. Glen On Jul 18, 3:18 pm, Ski <[EMAIL PROTECTED]> wrote: > Hi, > > I am using Cake 1.

Re: cacheing a dynamic menu

2007-07-18 Thread Ski
Hi, I am using Cake 1.1 at the moment, thanks Pablo. Geoff, the element caching works wonderfully thanks. Cheers. Glen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this gr

Re: cacheing a dynamic menu

2007-07-17 Thread Ski
Hi, Can anyone shed some light on this? I have searched the web and there is supposed to be a tutorial in the Wiki about creating a cached version of a dynamic menu manually when the admin tool updates certain things. Where would I get the wiki tutorial please? Glen --~--~-~-

Error Handling

2007-07-13 Thread Ski
Hi, I am trying to get to the bottom of error handling in cakephp. In previous systems I have worked on I have used set_error_handler to catch php / database errors and email debugging / state information to the site admin, then redirect to a standard error page. With cake I get lots of m

Re: bad images url

2007-07-13 Thread Ski
Hi, Try using the html helper - it takes a path to your image - relative to webroot/img as the first argument and generates an tag. Any attributes you want to set in the tag - border, etc. you specify using an array as the 2nd argument. image('ico_comment.png', array('border' => 0)); ?

cacheing a dynamic menu

2007-07-13 Thread Ski
Hi, I am trying to implement caching for my site and one of the major places needing this is the dynamic menu. Because this appears on every page, the model data for the menu is fetched in the AppController and used in an element included by the default layout. How would I go about ensuri

Re: SWFUpload with CakePHP 1.1.x

2007-07-08 Thread Ski
Hi, I am about to cross this bridge now. I know that Flash does not use the same session as the browser, so you have to append the session id to the post url - I expect SWFUpload lets you specify the URL to upload files to - you need to append the session id to this, then there are some othe

Re: renderElement vs nesting views

2007-07-04 Thread Ski
Hi, > If I understand you right, it sounds like you may wish to go down the > ajax route. > In essence, have an action for the parent that renders all the stuff > it needs to do, > but has placeholders (div's) that you preload with child actions (ie a > form). Thanks for your answer - I had a

Re: renderElement vs nesting views

2007-07-03 Thread Ski
> you can send a variable to the element: > renderElement('my_element', array('data' => $data)); Hi, Thanks, I have been trying that, but the idea was to re-use the views I have already without having to change them. I "changed" the "standard" edit form over to an element by moving the fi

renderElement vs nesting views

2007-07-02 Thread Ski
Hi, I am writing an application which enables editing of data for a parent model and a data for a list of child models in a single view. To make the code easier to re-use, I would like to keep the views for the parent and child separate - as they would be normally for each controller, but I

Extending / Decorating models and views

2007-06-28 Thread Ski
he best way be to conditionally use an element? I am a little stuck as to the best way to approach this without writing a lot of duplicated functionality in my code and how to do the decoration, particularly when saving a new MenuDish / WineDrink item. Does anyone have any recomme

Re: Extending / Decorating models and views

2007-06-27 Thread Ski
Apologies if my post is appearing 3 times - something is going a bit strange and I don't know what it is. I tried deleting the duplicates, but they reappeared... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cak