.nabble.com/CakePHP-and-widgets-tp526535p4070408.html
Sent from the CakePHP mailing list archive at Nabble.com.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
Andy Dawson's mini controllers still work the best for me - despite the name
it really is a combination of Components and Elements
Why not to use some model tricks inside a helper? Form helper does
it...
Grab your model whithin the ClassRegister and serve yourself... I've
already done the
Hey,
I was wondering what the best approach for creating widgets (type of
elements) with Cake. What I mean by widgets is basically elements that
pull data from something that may not relate to the current controller/
action the user is in.
For example, the default layout may have a sidebar of
thats really a good question
i would like to know that mysefl
i found out though, that requesting might not be the best...
the database querys went up by 30%
especially if you get config details and session infos from the
Database,
they will be requested as often as you use this requestAction
An alternative to excessive use of requestAction is to put as much in
the models as you can, and carefully load models in your controllers
to pass stuff into views.
For your example, you could:
* give all models a random() and recent() method
* Create a WithSnippets controller, and subclass
On Mon, Jul 14, 2008 at 2:31 AM, Steve [EMAIL PROTECTED] wrote:
I was wondering what the best approach for creating widgets (type of
elements) with Cake. What I mean by widgets is basically elements that
pull data from something that may not relate to the current controller/
action the user