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
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
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
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
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.
--~--~-~--~
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.
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
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
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@
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.
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
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
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
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
14 matches
Mail list logo