Quantcast

How to show latest comments (sitewide)?

classic Classic list List threaded Threaded
5 messages Options
Nvp
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

How to show latest comments (sitewide)?

Nvp
Hi!
I need to have a sitewide sidebar which will contain 5 latest comments to articles. 
Should I use elements with requestAction + cache in default layout or it can be achieved in more simple way?

I use CakePHP 2.2.1.

Thanks.

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: How to show latest comments (sitewide)?

John Hardy
Get and Set the data in your app_controller


On Aug 16, 2012, at 12:12 PM, Nvp <[hidden email]> wrote:

Hi!
I need to have a sitewide sidebar which will contain 5 latest comments to articles. 
Should I use elements with requestAction + cache in default layout or it can be achieved in more simple way?

I use CakePHP 2.2.1.

Thanks.

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Nvp
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: How to show latest comments (sitewide)?

Nvp
I'm new to CakePHP, can you please provide me some example or expand the idea? 

On Thursday, August 16, 2012 11:27:38 PM UTC+4, ibejohn818 wrote:
Get and Set the data in your app_controller


On Aug 16, 2012, at 12:12 PM, Nvp  wrote:

Hi!
I need to have a sitewide sidebar which will contain 5 latest comments to articles. 
Should I use elements with requestAction + cache in default layout or it can be achieved in more simple way?

I use CakePHP 2.2.1.

Thanks.

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="jpt41ORERBIJ">cake...@....
To unsubscribe from this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="jpt41ORERBIJ">cake-php+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: How to show latest comments (sitewide)?

Dr. Tarique Sani
In reply to this post by Nvp
I would go with elements + requestAction + caching. This is easier to
test and probably more correct

OR

If you have a custom helper in your project - use the comments model
and write a helper function

Tarique

On Fri, Aug 17, 2012 at 12:42 AM, Nvp <[hidden email]> wrote:

> Hi!
> I need to have a sitewide sidebar which will contain 5 latest comments to
> articles.
> Should I use elements with requestAction + cache in default layout or it can
> be achieved in more simple way?
>
> I use CakePHP 2.2.1.
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [hidden email].
> To unsubscribe from this group, send email to
> [hidden email].
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>



--
=============================================================
PHP for E-Biz: http://sanisoft.com
=============================================================

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: How to show latest comments (sitewide)?

Chetan Patel
Hello Friends,

For example of requestaction + cache,Please refer below link,

http://bakery.cakephp.org/articles/digitalspaghetti/2007/04/10/optimizing-your-cakephp-elements-and-views-with-caching





Thanks & Regards

Chetan Patel

--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [hidden email].
To unsubscribe from this group, send email to [hidden email].
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 
Loading...