Logs for

Page 194 of 211,273, showing 20 records out of 4,225,449 total, starting on record 3,861, ending on 3,880

# At Username Text
# Aug 7th 2008, 20:04 Chezz how do I call a function in a controller from another controller ?
# Aug 7th 2008, 20:05 markstory Chezz: you don't.
# Aug 7th 2008, 20:05 gwoo Chezz: you know what the first question is right?
# Aug 7th 2008, 20:05 gwoo WHY?
# Aug 7th 2008, 20:05 markstory if you need functionality in more than one controller perhaps that functionality is better placed in a model.
# Aug 7th 2008, 20:05 Chezz gwoo i have a custom function in the controller i need to call..
# Aug 7th 2008, 20:06 markstory then you can reuse it in all your controllers via the model.
# Aug 7th 2008, 20:06 markstory or put it in app_controller.
# Aug 7th 2008, 20:06 Chezz how can i resuse it via model ?
# Aug 7th 2008, 20:07 markstory well if the code is inside the model you can just do $this->model->relatedModel->doStuff()
# Aug 7th 2008, 20:07 Chezz alright
# Aug 7th 2008, 20:07 Chezz for somereason i forgot to put ->model-> and i was expecting it to work
# Aug 7th 2008, 20:08 Chezz hmm
# Aug 7th 2008, 20:10 Chezz I am in the controller for model X i need to call a function in the controller in model Y.. i am doing this .. $this->Y->CustomFunc() but that isnt working.. its false.. i also tried $this->X->Y->CustomFunc() ... i have $uses on top.. but the models are not really related.. each model fetches from a different DB I cannot relate them.
# Aug 7th 2008, 20:12 polywog hey
# Aug 7th 2008, 20:13 jezek how do i do validation on a input so that it can be left blank, but if it is not blank, then check if it is a url.
# Aug 7th 2008, 20:13 polywog does anyone know if I how I can do __('actions_phone', true) => array_sum(Set::extract($incidents, '{n}.Action.{n}.actions_phone')),
# Aug 7th 2008, 20:13 polywog woops, i meant Set::extract($incidents, '{n}.Action.{n}.actions_phone')
# Aug 7th 2008, 20:14 polywog jezek you might have to write a custom validation
# Aug 7th 2008, 20:15 SamuraiDio hi