# |
Aug 7th 2008, 15:34 |
teknoid |
seghezzi: you sure your models are not related? |
# |
Aug 7th 2008, 15:33 |
seghezzi |
var $uses = array('Recipe', 'User'); <----- roger |
# |
Aug 7th 2008, 15:33 |
ADmad |
seghezzi: add the models you need to the $uses array |
# |
Aug 7th 2008, 15:31 |
seghezzi |
hi, what is the correct way to tell a controller it uses a second model??? |
# |
Aug 7th 2008, 15:27 |
ADmad |
Wisp: http://api.cakephp.org/class_view.html#3826c0ef9ee1fdc08bc2f4ea1f6a2071 |
# |
Aug 7th 2008, 15:22 |
teknoid |
Wisp: that's not a global variable |
# |
Aug 7th 2008, 15:22 |
_psychic_ |
define it in AppController then. |
# |
Aug 7th 2008, 15:22 |
TommyO |
uughhh I'd rather my neighbor tried to learn to play the bagpipes than this freakin' 'house' crap |
# |
Aug 7th 2008, 15:22 |
_psychic_ |
? |
# |
Aug 7th 2008, 15:22 |
Wisp |
like $this->pageTitle or something |
# |
Aug 7th 2008, 15:22 |
_psychic_ |
Wisp: define one in app/config/bootstrap.php |
# |
Aug 7th 2008, 15:22 |
mitnavn |
) |
# |
Aug 7th 2008, 15:22 |
Wisp |
i wanna global variable |
# |
Aug 7th 2008, 15:22 |
Wisp |
hmm |
# |
Aug 7th 2008, 15:20 |
TommyO |
mitnavn: oh, got ya. it's in the layout. yeah, then a redirect to some 'safe' page would work too |
# |
Aug 7th 2008, 15:20 |
mitnavn |
TommyO: But then if people actually go to /users/login it will (in my case) show two login boxes, one in my menu and another from the view. |
# |
Aug 7th 2008, 15:19 |
cudell |
still no dice |
# |
Aug 7th 2008, 15:19 |
cudell |
i had eaccelarator (a php cache) on but turned that off |
# |
Aug 7th 2008, 15:18 |
TommyO |
mitnavn: I have a view that is simply <?php echo $this->element('login'); ?> even if it never gets called |
# |
Aug 7th 2008, 15:18 |
cudell |
i have also edited core.php to disable the cache |
# |
Aug 7th 2008, 15:18 |
cudell |
yeah, i checked into that, and only the models have things in the cache. |
# |
Aug 7th 2008, 15:18 |
ammadsaleem |
my session values are getting override with images |
# |
Aug 7th 2008, 15:18 |
teknoid |
cudell: your views might be cached on app/tmp/cache/ |
# |
Aug 7th 2008, 15:17 |
Wisp |
hmm |
# |
Aug 7th 2008, 15:17 |
mitnavn |
TommyO: At the moment it's just blank, I am considering routing it back to my frontpage :/ |
# |
Aug 7th 2008, 15:17 |
TommyO |
or to a site they don't have perms on? |
# |
Aug 7th 2008, 15:17 |
cudell |
i know the changes are being saved to the server when i reopen the files |
# |
Aug 7th 2008, 15:17 |
ammadsaleem |
can any one help me |
# |
Aug 7th 2008, 15:17 |
ammadsaleem |
i m using JQuery form plugin with cake and my Session vlaues are getting lost |
# |
Aug 7th 2008, 15:17 |
TommyO |
mitnavn: what happens if someone goes directly to /users/login ? |
# |
Aug 7th 2008, 15:16 |
teknoid |
Wisp: see above |
# |
Aug 7th 2008, 15:16 |
Wisp |
not in $content_for_layout; |
# |
Aug 7th 2008, 15:16 |
cudell |
no changes are reflected on the server |
# |
Aug 7th 2008, 15:16 |
teknoid |
Wisp: use $this->set() |
# |
Aug 7th 2008, 15:16 |
zmonteca |
teknoid: correct. the form goes to itself, /admins/users/student. I'll allow admins_students and see what happens. good god this is weird. |
# |
Aug 7th 2008, 15:16 |
cudell |
i am a rookie baker and have a freshly scaffolded application. when i make changes to the views files and save them |
# |
Aug 7th 2008, 15:16 |
Wisp |
i wanna set variable in my views and render it in my layout |
# |
Aug 7th 2008, 15:16 |
_psychic_ |
ammadsaleem: hey |
# |
Aug 7th 2008, 15:16 |
_psychic_ |
cudell: sup |
# |
Aug 7th 2008, 15:16 |
_psychic_ |
ok |
# |
Aug 7th 2008, 15:15 |
Wisp |
no |