I just took over the project going and was built on cakephp so i need to
continue developing on the cakephp.
Not going back at the moment.
On Sat, Jan 29, 2011 at 1:20 PM, Ryan Schmidt google-2...@ryandesign.comwrote:
On Jan 29, 2011, at 05:21, Shinya Koizumi wrote:
What other
This is probably the answer what you are looking for:
*$this-loadModel('modelname');*
Of course replace modelname with the model you want to load, (singular).
Just had to use it myself :).
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new
http://www.symfony-project.org/
http://www.qcodo.com/
On Fri, Jan 28, 2011 at 11:05 PM, Ryan Schmidt
google-2...@ryandesign.comwrote:
On Jan 28, 2011, at 21:49, Shinya Koizumi wrote:
I always struggle with just define this relationship and how I can call
on different stage ( on another
On Jan 29, 2011, at 05:21, Shinya Koizumi wrote:
What other frameworks are you referring to?
http://www.symfony-project.org/
http://www.qcodo.com/
Thanks for the links, those look interesting. What prompted you to switch from
these to CakePHP -- or are you going to switch back, or use
I wouldn't want to load all models, all the time, for everything.
But sometimes I find myself needing to load more than 1 model into my
controller, not always, but to make it easier I have something on the lines
of this
*#app_controller.php
function _loadMultipleModels($models=array()) {
If the models are associated you don't need to load them. You can access models
by daisy chaining them, e.g.:
$this-User-Profile-Image-find();
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 28 Jan 2011, at 13:05, Stephen wrote:
I wouldn't want to load
On Jan 28, 2:05 pm, Stephen step...@ninjacodermonkey.co.uk wrote:
I wouldn't want to load all models, all the time, for everything.
after reading your reply the question remains: what is this model
issue of which you speak?
AD
--
Our newest site for the community: CakePHP Video Tutorials
On 28 January 2011 13:15, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
If the models are associated you don't need to load them ..
This is why I said I would hope they were already associated (e.g. daisy
chain) :]
That was just an example
--
Kind Regards
Stephen @
I'm confused about the challenge you are facing then...?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 28 Jan 2011, at 13:29, Stephen wrote:
On 28 January 2011 13:15, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
If the models are
On 28 January 2011 13:31, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
I'm confused about the challenge you are facing then...?
I'm not facing any particular challenge, it seems you may have confused me
as the thread-starter
--
Kind Regards
Stephen @ NinjaCoderMonkey
Two thousand apologies.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 28 Jan 2011, at 13:45, Stephen wrote:
On 28 January 2011 13:31, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
I'm confused about the challenge you are facing
I always struggle with just define this relationship and how I can call on
different stage ( on another control or on another module )
whereas it was very easy on another frameworks. I could have use the baker
but not really easy to use.
It should be just configuration file that you need to add
hi,
try this
var $uses = array('model associate with controller', 'model u want to
include');
it is im to include first model associate with controller' and then
other
hope this will help u
bye
On Jan 28, 4:03 am, cake-learner sh.koiz...@gmail.com wrote:
Is there any way to include all models by
On Jan 28, 2011, at 21:49, Shinya Koizumi wrote:
I always struggle with just define this relationship and how I can call on
different stage ( on another control or on another module )
whereas it was very easy on another frameworks.
What other frameworks are you referring to?
--
Our
Is there any way to include all models by default. I run to the model
issue so many times defining the relationship so i just want to join
manually so i can cut some development time.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP
believe me, you don't wanna do that...
what exactly is I run to the model issue so many times
On 28 Jan., 00:03, cake-learner sh.koiz...@gmail.com wrote:
Is there any way to include all models by default. I run to the model
issue so many times defining the relationship so i just want to join
16 matches
Mail list logo