Re: is this a threadsafe code?

2014-03-19 Thread Eugenio
Why not; $myBoolean=(boolean) something; 2014-03-18 9:29 GMT-03:00 Kamal Deol : > YES It is Thread Safe : 100% Sure > > > On Tue, Mar 18, 2014 at 6:33 AM, Gary Kremmer wrote: > >> class SomeController extends AppController { >> >> public function index() { >> if(something) { >>$

Re: Jquery and Internet Explorer compatibility in cake1.3

2013-04-13 Thread Eugenio
Can you try this code? $(document).ready(function() { $('a.report').click(function(e) { e.preventDefault(); var t = $(this); var dialog = $('
').load(t.attr('href')).dialog({ autoOpen: false, width: 500, modal: true, title: 'Report Photo', }); }); }); and the link: 201

Using $this->requestAction from shell is breaking the links

2012-03-21 Thread Eugenio
Hi, i am using the requestAction feacture to generate the cache of heavy traffic pages, the only problem is that the base param of the urls is /usr/share/php/cake/console/ instead of /, is there any way of solve this? now i am usign a str_replace to change de links but i want a better way to solve

Re: Nginx cache in cakephp app

2011-09-08 Thread Eugenio
mcurry/html_cache > > On Sep 7, 4:42 pm, Eugenio wrote: > > Hi to everyone, i have a nginx question... the app is written in cakephp, > > maybe you could help me. > > > > Right now im working on a heavy app written in php. > > > > The app knows what pages to ca

Nginx cache in cakephp app

2011-09-07 Thread Eugenio
Hi to everyone, i have a nginx question... the app is written in cakephp, maybe you could help me. Right now im working on a heavy app written in php. The app knows what pages to cache a cron job delete the old cache pages, the cache is saved doing a md5 to the url to get a hash, then puts a / ev

Re: cakephp 1.3 loading page is slow

2011-07-27 Thread Eugenio
Try with the html cache plugin; http://bakery.cakephp.org/articles/mattc/2009/03/20/html-cache-helper It will really speed it up, just be careful and remember to clean cache after updates. 2011/7/27 leafchild > I notice loading page is extremely slow. > > Those pages are not connected to DB. Ju

Re: Contain and SQL Statement Question

2011-03-31 Thread Eugenio
If you have that kind of need you are having database architecture issues... its not a cakephp issue. Ask yourself how you do that query in plain SQL. Cheers 2011/3/31 heohni : > Hi, > > I have the following models: > > Member hasMany Payments > Payment belongs to a member > > To get now all mem

Re: Does the CakePHP ready for 'Large Scale' web applications?

2011-02-10 Thread Eugenio
Hi Okto, have you try using the view cache helper = its really great, or perhaps you could use the plain html cache plugin, that really will speed up, of course it have some cons... http://bakery.cakephp.org/articles/mattc/2009/03/20/html-cache-helper http://book.cakephp.org/view/348/Clearing-the