Plugins Rant - All CakePHP experts and software architect called

2008-02-14 Thread MX
I wrote this paper in the past two days. Comes from a design problem I had some days ago. Please read and let discuss this here. If I am totally wrong please let me know. http://blog.zerone.weblusa.org/papers/cakephp-plugins/ Thanks for your time. --~--~-~--~~~---~

Re: How to divide too large controller into small?

2008-02-14 Thread MX
In OOP theory you can have classes with loads of methods, as long as it makes sense. Controller methods can be collpsed by almost all editors. Dont divide that controller that way. Dont worry with 500 lines of PHP, as long as all methods are part of Users. On Feb 14, 7:05 pm, sanemat <[EMAIL PRO

Re: A Philosophical Question and a Practical Question

2008-02-12 Thread MX
The probem with your concept is very simple, and dont be ashme to be new. We all were at some point. :D The problem is that in Cake each controller should have the CRUD (Create, Read, Update, Delete) functions for A model. You have an Industry controller. Industry in your case should be your appl

Re: Using a full controller by other. The ultimate software design question.

2008-02-12 Thread MX
false) { > if (is_array($url)) { > $url['inline'] = !empty($this->namedArgs['inline']); > } > return parent::url($url, $full); > } > > } > > On Feb 12, 1:28 pm, MX <[EMAIL PROTECTED]> wrote: > > > I think I wro

Re: Using a full controller by other. The ultimate software design question.

2008-02-12 Thread MX
I'm not sure I understand fully what you are trying to do, however why > > can't you use normal variables to determine this kind of behaviour? > > eg. either swap the view based on the mode, or do if/else statements > > in your view. > > > Without more

Using a full controller by other. The ultimate software design question.

2008-02-11 Thread MX
Hey, Well I am coding this *simple* website which has users, articles and images. Its the simple scenary. It contains a front and backend all action-separated with proper "admin" pre-named. The images controller offers the administrators the oportunity to list, upload, edit and delete the images

Re: Change URI "/" Separator to another character.

2008-01-30 Thread MX
That was the most simple solution :D But I just did 2 things. Edited dispatcher.php, function dispatch. And edited Router::url to convert / to _.. :D Thanks a lot On Jan 30, 6:25 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Jan 30, 6:23 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > > > you mig

Change URI "/" Separator to another character.

2008-01-30 Thread MX
Hey folks, I searched but this subject is due to return non-related results due to its keywords. Well im working for a client which needs to mantain half of the website with the old structure (at least for now). Well I managed to integrate it very well, but comes a part which goes dead end for m

Re: Best Practice for multiple belongsTo associations (Cake 1.1)

2007-12-26 Thread MX
It would be very nice if Cake had polymorphism associations. On Dec 21, 3:09 pm, "subtropolis zijn" <[EMAIL PROTECTED]> wrote: > On Dec 21, 2007 6:04 AM, Chris Hawes <[EMAIL PROTECTED]> wrote: > > > > > I have four tables: tasks, contacts, documents and companies. > > > Multiple tasks can be ass