Re: cache is always cached ?

2007-04-10 Thread feelexit
sorry, mistype the title, shoud be " session always cached ???" --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from th

cache is always cached ?

2007-04-10 Thread feelexit
this is one of my element, I check session to show different links. and theres a time at bottom. when I login or logout, links never change, stay same. but timer is changing everytime when you refresh the page. what happens. check('User')){ echo "logout "; }else{ echo "Logi

caching problem, need help to debug my code.

2007-04-08 Thread feelexit
here's my code. If I comment out var $cacheAction = array('view/' => 86400); and using var $cacheAction = "1 hour"; it works fine, but if I am using var $cacheAction = array('view/' => 86400); then, it stops working, nothing cached, and I checked cache folder, no file generated there. I

caching problem, need help to debug my code.

2007-04-08 Thread feelexit
here's my code. If I comment out var $cacheAction = array('view/' => 86400); and using var $cacheAction = "1 hour"; 86400); //var $cacheAction = "1 hour"; function view(){ $this->set('CSS', 'style'); } } ?> --~--~-~--~~~---~--~~ You received this me

how to select data from 3 tables, need help.

2007-04-03 Thread feelexit
I have table, users, posts and comments 1 user has many posts, each post has many comments. on my view page, I want to see that user's all hte posts with comments. hasMany just for 2 tables, how can I go 1 more level to get all the comments as well ? thanks for help. --~--~-~--~

cakephp and template

2007-03-29 Thread feelexit
I plan to rewrite my multi-user blog using cakephp. I was using smarty and pear to write this app. and users can change their blog template. I am not really sure how to do it in cakephp. I saw some1 doing that using smarty and cakephp, I am wondering if theres a solution just using cakephp.

Re: HABTM saving problem

2007-03-27 Thread feelexit
I got it work now --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For

Re: HABTM saving problem

2007-03-27 Thread feelexit
another question is , in the posts with tags example, when I am doing save, only save post table or posts_tags will be saved as well ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to t

Re: Newbie questions

2007-03-27 Thread feelexit
make new file, header.thtml in hte component folder. and in ur layout, renderElement('header'); ?> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@

HABTM saving problem

2007-03-27 Thread feelexit
I have 3 tables tags resources resources_tags in my controller, i use " print_r ($this->data); " to print out data structure Array ( [Resource] => Array ( [title] => hhh [description] => [user_id] => 1 ) ) it only has data for Resource, there's no data for Tag. here's my HTML code.

how to name my model file?

2007-03-27 Thread feelexit
Got table called "posts_tags", I need to have model for this table, should I name it to post_tag.php or posttag.php or postTag.php and what about class file class Post_tag extends AppModel{} or class Post_Tag extends AppModel{} --~--~-~--~~~---~--~~ You received

Re: R: where to put my functions ?

2007-03-26 Thread feelexit
hi, M. thanx. I am using echo checktags(); this gives me error. after I change it to echo $this->checktags(); it works now.. thanx alot. On Mar 26, 6:02 pm, <[EMAIL PROTECTED]> wrote: > hello feelexit > Are you calling your function like this? > > function checktags

where to put my functions ?

2007-03-26 Thread feelexit
in the posts_controller.php file, I have a function called funcation add() to add new posts. inside add function, i want to call another function checktags(), where do i write this function. I place it in the posts_controllers.php file, and get this error message. Fatal error: Call to undefi

new to cake php, need help on tag clouds database design

2007-03-22 Thread feelexit
I just start a simple web application. Need to make tag clouds for it, so it will look more like web 2.0 here's the problem, I have this table called "tags". tags has id, tag, users_id, posts_id, I dont want to have id to be my primary key, I only want 3 columns, tag, users_id, posts_id, and I