# |
Aug 7th 2008, 02:11 |
thestaff |
what do you mean kinda ? |
# |
Aug 7th 2008, 02:11 |
achew22 |
thestaff: yes, kind of |
# |
Aug 7th 2008, 02:11 |
thestaff |
achew22, can I put a view in the ThickBox ? |
# |
Aug 7th 2008, 02:11 |
Martz|grrr |
the "plugin controller" should I say |
# |
Aug 7th 2008, 02:11 |
Martz|grrr |
Kitara: well as long as the other controllers extended the plugin class, it will work |
# |
Aug 7th 2008, 02:11 |
Kitara |
app/plugins/admin/admin_app_controller.php |
# |
Aug 7th 2008, 02:11 |
Kitara |
Martz|grrr: i want to set it in a plugin and use it over the controllers in that plugin |
# |
Aug 7th 2008, 02:10 |
achew22 |
TonkaTruck: you really should bake them though |
# |
Aug 7th 2008, 02:10 |
TonkaTruck |
achew22: thanks, heh. |
# |
Aug 7th 2008, 02:10 |
Kitara |
Martz|grrr: same counts for $myvarthatisnotused |
# |
Aug 7th 2008, 02:10 |
thestaff |
gimme 10 min |
# |
Aug 7th 2008, 02:10 |
achew22 |
TonkaTruck: yes |
# |
Aug 7th 2008, 02:10 |
Martz|grrr |
Kitara: so you set it in app/app_controller.php and you're trying to access it in AdminAppController? |
# |
Aug 7th 2008, 02:10 |
thestaff |
I'm workin on it |
# |
Aug 7th 2008, 02:10 |
thestaff |
yeah |
# |
Aug 7th 2008, 02:10 |
achew22 |
thestaff: lets get back to your modal problem though |
# |
Aug 7th 2008, 02:10 |
Martz|grrr |
Kitara: $test *might* be reserved, be careful with that. |
# |
Aug 7th 2008, 02:10 |
TonkaTruck |
So if model is named Category its database table is named categories and its controller is named categories_controller.php? |
# |
Aug 7th 2008, 02:10 |
achew22 |
no worries |
# |
Aug 7th 2008, 02:10 |
thestaff |
yeah I know I just assumed, I didn't realised you were actually from there |
# |
Aug 7th 2008, 02:09 |
thestaff |
nvmd |
# |
Aug 7th 2008, 02:09 |
achew22 |
thestaff: I never said that |
# |
Aug 7th 2008, 02:09 |
Kitara |
Martz|grrr: class AdminAppController extends AppController { var $test = 'test'; } howcome that this does not get passed then ? :S |
# |
Aug 7th 2008, 02:09 |
thestaff |
I thought you were goin to UColorado |
# |
Aug 7th 2008, 02:08 |
achew22 |
UNC |
# |
Aug 7th 2008, 02:08 |
thestaff |
achew22 you said you're a student, so I was just wondering which school you go |
# |
Aug 7th 2008, 02:08 |
achew22 |
I was mocking you. My dad is a harvard grad its in the bylaws of being alum's children |
# |
Aug 7th 2008, 02:08 |
Martz|grrr |
Kitara: yep should do, since the plugin extends AppController ultimately |
# |
Aug 7th 2008, 02:08 |
thestaff |
wait what |
# |
Aug 7th 2008, 02:08 |
achew22 |
nevermind |
# |
Aug 7th 2008, 02:08 |
achew22 |
to colorado? |
# |
Aug 7th 2008, 02:08 |
thestaff |
what do you mean how ? |
# |
Aug 7th 2008, 02:07 |
thestaff |
well I take my bike and ride there.... |
# |
Aug 7th 2008, 02:07 |
achew22 |
;) |
# |
Aug 7th 2008, 02:07 |
Kitara |
Martz|grrr: ah, okay, but does this also work in a plugin? |
# |
Aug 7th 2008, 02:07 |
Martz|grrr |
joungjuang: this is a nice guide on ACL: http://mark-story.com/Posts/view/auth-and-acl-an-end-to-end-tutorial-pt-1 |
# |
Aug 7th 2008, 02:07 |
achew22 |
thestaff: you said you go to MIT right? how? |
# |
Aug 7th 2008, 02:07 |
batcoder-7 |
lol |
# |
Aug 7th 2008, 02:07 |
thestaff |
do you go to Univ of Colorado ? |
# |
Aug 7th 2008, 02:07 |
Kitara |
joungjuang: if you find out, plz yell ;) |
# |
Aug 7th 2008, 02:07 |
Martz|grrr |
Kitara: just set it in your app_controller to = null, somewhere like your beforeFilter() method set it to a real value. And then you can use it in your other controllers |