Layout inheritance, setting a layout for a layout

2009-04-17 Thread maxmil
I would like to be able to define a kind of inheritance model for my layouts. Thats to say be able to define a layout for a layout. Probably not very well explained, heres a concrete example. I have a generic layout for my application but in a group of pages i need to add a panel to this layout.

Best architecture for integrating SOAP

2009-02-25 Thread maxmil
I am adding some SOAP web services to an application running on cakephp 1.2 using the Soap php extension. The best way to to this has been to create a controller which has a "call" method. This method instantiates a Soap Server and passes it a model class where my service methods are defined. Ho

Re: cakeError

2009-02-08 Thread maxmil
I have left a comment on the Error Handling page in the book. On Feb 7, 3:19 pm, teknoid wrote: > @maxmil and @ianh > > Well all good points... in those instances it makes sense having > multiple error handling events for the app... > > I guess the intended idea is that: >

Re: cakeError

2009-02-07 Thread maxmil
6:30 pm, teknoid wrote: > > > What errors do you want to display to the user, while running in > > production mode? > > > That being asked, you might take a look here on how to handle this > > situation:http://teknoid.wordpress.com/2008/08/29/dealing-with-errors-in-cak

Re: cakeError

2009-02-06 Thread maxmil
I have found the same problem. Is this really deliberate? It takes quite a bit of power away from the cakephp errorHandling mechanism if it is and is very naughty not to mention it in the error handling pages of the manual! My solution has been to use: $this->render('/errors/custom_error'); i

Re: Dynamically remove a helper in a controller

2009-02-04 Thread maxmil
      } >     } >     return parent::beforeFilter(); >   } > > } > > hth > grigri > > On Feb 4, 11:26 am, maxmil wrote: > > > I have a situation where i want a certain helper included in all of my > > controllers except one. > > > I would

Dynamically remove a helper in a controller

2009-02-04 Thread maxmil
I have a situation where i want a certain helper included in all of my controllers except one. I would like to be able to put the helper in my app_controller and explicitly remove it from the one controller that doesn't use it rather than having to manually add it to all but one of my controllers

Re: Find with two levels of recursion in where clause

2009-01-29 Thread maxmil
Thanks a million that was exactly what i needed. Heres an example of the code that does what you instructed that may help someone else in the future, if it can be improved please let me know. The code executes from within the A model class (A.php) $modelB = ClassRegistry::init('B'); $modelB->un

Re: Find with two levels of recursion in where clause

2009-01-29 Thread maxmil
Thanks a million that was exactly what i needed. Heres an example of the code that does what you instructed that may help someone else in the future, if it can be improved please let me know. The code executes from within the A model class (A.php) $modelB = ClassRegistry::init('B'); $modelB->un

Find with two levels of recursion in where clause

2009-01-28 Thread maxmil
I have the following scenario in my model. A has a ManyToOne relationship with B B has a ManyToOne relationship with C I would like to use "find" on A but be able to put conditions on field in object C. Something like: $this->A->find('all', array('conditions' => array('B.C.someField' => 'someV

Re: Using form helper with default model

2008-10-23 Thread maxmil
I think i found the solution, in controller $this->data = instance of ModelB On 23 oct, 15:38, maxmil <[EMAIL PROTECTED]> wrote: > Hi, > > i would like to use the form helper to generate fields for one of the > non default models in my controller. > > Say t

Using form helper with default model

2008-10-23 Thread maxmil
Hi, i would like to use the form helper to generate fields for one of the non default models in my controller. Say that my controller is called ModelAsController and therefore has default model ModelA but also uses other models, ModelB say. I would like a form in one of my views that could auto

Re: Convert all files de UTF-8

2006-11-28 Thread maxmil
ww.wolosoft.com/en/superedi/ > > On Nov 24, 5:34 pm, "AD7six" <[EMAIL PROTECTED]> wrote: > > > Hi Maxmil, > > >http://groups-beta.google.com/group/cake-php/browse_frm/thread/28f129... > > > errors that say "output started ... .php:1" almos

Implementing error handling

2006-11-28 Thread maxmil
I've read quite a few posts related to error handling with cake but still have'nt managed to work out the best way to handle the following type of error. There are many cases where a controller method may have been called via an URL without the correct parameters being passed. (For example http:/