# |
Aug 7th 2008, 03:44 |
alkemann |
Martz: yea that is sorta what i do in my Logable behavior as well |
# |
Aug 7th 2008, 03:44 |
achew22 |
stevieboy: too bad its 404'd |
# |
Aug 7th 2008, 03:44 |
alkemann |
poluta1: right. then there is your answer |
# |
Aug 7th 2008, 03:43 |
poluta1 |
alkemann: i don't understand what u mean. i don't find any session property in model class |
# |
Aug 7th 2008, 03:43 |
stevieboy |
achew22: what about customizing this? http://ajaxian.com/archives/datepicker-using-prototype-and-scriptaculous |
# |
Aug 7th 2008, 03:43 |
alkemann |
achew22: here use my helper http://bin.cakephp.org/view/1905778472 |
# |
Aug 7th 2008, 03:42 |
achew22 |
alkemann: but I just need input on time :( |
# |
Aug 7th 2008, 03:42 |
Martz |
poluta1, alkemann: Heres what I think (not necessarily the best way to do it - but the way *I* did it) - session should be passed by the controller to the model, can be done with like beforeFiler() { $this->{$modelClass}->captcha = $session->read(); } and then in your app_model do var $captcha = null; and then in your model method $this->captcha should be populated with the session date you wrote |
# |
Aug 7th 2008, 03:41 |
alkemann |
http://bakery.cakephp.org/articles/view/using-the-unobtrusive-date-picker-widget-in-cakephp |
# |
Aug 7th 2008, 03:41 |
achew22 |
well.. I only need one ;) |
# |
Aug 7th 2008, 03:41 |
alkemann |
many good ones :) |
# |
Aug 7th 2008, 03:40 |
achew22 |
does anyone know of any good js time pickers? |
# |
Aug 7th 2008, 03:40 |
stevieboy |
Session->check('myProp') |
# |
Aug 7th 2008, 03:40 |
alkemann |
http://api.cakephp.org/1.2/class_model.html |
# |
Aug 7th 2008, 03:40 |
poluta1 |
yes.. how to check if the model object has a session property? |
# |
Aug 7th 2008, 03:39 |
alkemann |
AppModel extends Model :) |
# |
Aug 7th 2008, 03:39 |
poluta1 |
alkemann: i'am in app_model.php |
# |
Aug 7th 2008, 03:39 |
alkemann |
poluta1: im sure there are some made allready |
# |
Aug 7th 2008, 03:38 |
alkemann |
polutan: easy to find out. check if the Model object has a Session property |
# |
Aug 7th 2008, 03:38 |
poluta1 |
possible? |
# |
Aug 7th 2008, 03:38 |
poluta1 |
i want to create custom validation that validating captcha |
# |
Aug 7th 2008, 03:38 |
poluta1 |
is it possible if we call $this->Session from AppModel ? |
# |
Aug 7th 2008, 03:37 |
Martz |
polymorphic rules =) |
# |
Aug 7th 2008, 03:37 |
alkemann |
Martz: thanks :) |
# |
Aug 7th 2008, 03:37 |
alkemann |
heh hardly surprising :) |
# |
Aug 7th 2008, 03:37 |
Martz |
nice alkemann, i made something similar, but nowhere near as clean =) |
# |
Aug 7th 2008, 03:37 |
Lemon|work |
apache crashed |
# |
Aug 7th 2008, 03:36 |
Lemon|work |
no idea |
# |
Aug 7th 2008, 03:36 |
alkemann |
and how long did it take? |
# |
Aug 7th 2008, 03:36 |
Lemon|work |
and i use containable contantly |
# |
Aug 7th 2008, 03:36 |
Lemon|work |
it was a fun test to check how long it takes |
# |
Aug 7th 2008, 03:36 |
Lemon|work |
i dont do 40 recursive |
# |
Aug 7th 2008, 03:36 |
Lemon|work |
again |
# |
Aug 7th 2008, 03:36 |
Martz |
ACTION wonders if Lemon|work could live without containable |
# |
Aug 7th 2008, 03:36 |
alkemann |
My new LogableBehavior for adding automagic logging of user activity : http://bin.cakephp.org/view/463467244 Take a look and give me some feedback |
# |
Aug 7th 2008, 03:36 |
Lemon|work |
its just for fun |
# |
Aug 7th 2008, 03:36 |
Martz |
lol.. |
# |
Aug 7th 2008, 03:36 |
Lemon|work |
i never do a 40 recursive lol |
# |
Aug 7th 2008, 03:35 |
alkemann |
no kidding? 150 models and 40 recursive? you sure you havent over done seperation a bit? |
# |
Aug 7th 2008, 03:34 |
Lemon|work |
doing a find() with recursive on 40 is fun |
# |
Aug 7th 2008, 03:33 |
Lemon|work |
hippykayee, reached the 150 models milestone in my cakephp application |