Re: Model with Dynamic Data Fields

2009-05-24 Thread oliver.pra...@googlemail.com
@DanielMedia Why not just ad the field document_number [INT] to documents (with maybe NUL as possible value). Its just one more field, and your setup would require a join etc. (a lot more db querying than needed) With the fact being a Document only can have 1 number ... which would sound sane to

Re: api.cakephp.org still broken

2009-05-15 Thread oliver.pra...@googlemail.com
"http://api.cakephp.org/view_source/model/#line-1820"; Fails by me as stated Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.10) Gecko/ 2009042316 Firefox/3.0.10 Oliver On May 15, 12:27 pm, John Andersen wrote: > Hi Burzum > > Can you open the following location in FF 3.0.10 (which I ha

Re: Run an action with out a view? Is it possible?

2009-04-15 Thread oliver.pra...@googlemail.com
Well what also works is just calling another action in the controller at the last line ... e.g. $this->index(); etc. ... just make sure that action is defined with a view. Its not listed, but it works (it might also not be the cake way of doing things) On Apr 15, 12:45 am, "Mark (Germany)" wrote

Re: MVC best practice advice needed

2009-03-23 Thread oliver.pra...@googlemail.com
I dont get why you even have that process of marking them (or how you Mark them). Just add a function that checks expiration and put it in the beforeFilter ... On Mar 23, 8:20 am, aman batra wrote: > I think it is a good practice to have a function in User model that > should serve the required

Re: get method validation

2009-01-19 Thread oliver.pra...@googlemail.com
It should be noted that the GET Request is not designed for this ;-) Hypertext Transfer Protocol (HTTP) Request methods GET Requests a representation of the specified resource. Note that GET should not be used for operations that cause side-effects, such as using it for taking actions in web

Re: Call static function in bootstrap.php

2009-01-06 Thread oliver.pra...@googlemail.com
Might also be of interest to create a component that will handle this for you, which you just need to add to your app_controller ... On Jan 6, 11:52 am, cyberscorp wrote: > Thank you so much. I'll test these proposals and report back. > > On Jan 6, 9:16 am, gearvOsh wrote: > > > It will work fi

Re: HTML 4 specific CakePHP?

2008-12-28 Thread oliver.pra...@googlemail.com
@gearvOsh - Thanks for pointing this out. I finally came to reading it all, and I now personally find that this issue is to be seen as a weakness of the CakePHP framework. I sadly do not possess the knowledge at the moment to think up a good performance friendly simple solution to solve the proble

Re: HTML 4 specific CakePHP?

2008-12-27 Thread oliver.pra...@googlemail.com
Well I personally would say that having the taglist in XHTML / XML is of a more global advantage ... Since if you want to spit out XML for other Documents eg. AJAX, RSS, and so on you need tags that confirm to XML for it to even work. And as far as I know RSS Readers etc. wont let you get away wi