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.
--~--~-~--~~~---~
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
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
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
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
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
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
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
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