Re: Render XML

2009-02-10 Thread czarcrab
Many ways to do it; I am explaining the one I use. I retrieve XML based on extension. So my URL looks like http://localhost/entries/index.xml Here are my steps: 1. Add an XML directory under you views, for eg. in my case app\views\entries\xml 2. Create an index.ctp with the following code

Re: Not so elegant implementation of mysql SQL_CACHE

2009-02-05 Thread czarcrab
BTW the implementation looks clean. Cake has a Model.cacheSource directive. May be your code can read that directive and based on that both enable or disable DB side cache. I ran into an issue trying to disable cache as data was updating in real-time in the background. On Feb 4, 1:26 pm,

Re: Query using LEFT()

2009-02-04 Thread czarcrab
2 ways about it. One, switch on debug=1 (atleast) in core.php. This should give you the query and some indication on how to fix it. Two, if the idea is to limit the amount of characters displayed in the view, then handle it in the index.ctp like this echo