Re: Error: The requested address was not found on this server.

2012-07-25 Thread Andy Gale
On Wed, Jul 25, 2012 at 10:49 AM, Luís de Sousa
luis.a.de.so...@gmail.com wrote:

  IfModule mod_rewrite.c
RewriteEngine on
RewriteRule^$ app/webroot/[L]
RewriteRule(.*) app/webroot/$1 [L]
 /IfModule

Things to check -

1. Is your web server running Apache?
2. Does your apache server allow .htaccess

http://httpd.apache.org/docs/current/mod/core.html#allowoverride

3. Does your apache server have mod_rewrite enabled?

http://httpd.apache.org/docs/current/mod/mod_rewrite.html

Cheers,

Andy

-- 
Andy Gale
http://andy-gale.com
http://twitter.com/andygale

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Archive old data from model's table

2012-07-25 Thread Andy Gale
On Wed, Jul 25, 2012 at 6:04 PM, baur79 bau...@gmail.com wrote:
 i have model Report with table reports
 it contain report of last month. (50 000 records every month)

 please give some suggestions

These are called partitions. A quick Google came up with this:

https://github.com/deeeki/cakephp-partitionable

I haven't tried it but maybe this will help you.

-- 
Andy Gale
http://andy-gale.com
http://twitter.com/andygale

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: LESS CSS

2012-07-19 Thread Andy Gale
On Thu, Jul 19, 2012 at 1:25 PM, André Luis cavall...@live.com wrote:

 Hi people, i dont know if here is the right place to ask for this, but it
 would be nice if the HTML helper detects if the desired css file is a .css
 or .less, them it doesnt put a .css in front of the file, i always need to
 change my core files to accept the less files. And the less script doesnt
 accepts .css files =(

You're not serving .less files to the browser though are you? If you
are you won't be too popular with Internet Explorer users.

This is how to do it anyway:

http://www.syahzul.com/cakephp/how-to-use-less-css-in-cakephp-application/

-- 
Andy Gale
http://andy-gale.com
http://twitter.com/andygale

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: 3.0: a peek into CakePHP's future

2012-07-06 Thread Andy Gale
On Fri, Jul 6, 2012 at 2:17 PM, Marsson C. marss...@gmail.com wrote:

 Does it mean Cake 3.0´s Model will return objects instead of arrays ?

Yes

Model layer rewrite:

Models to return objects from queries


--
Andy Gale
http://andy-gale.com
http://twitter.com/andygale

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 1.3 :: What does if block do in cake/lib/controller.php ?

2011-11-23 Thread Andy Gale
Hi,

On Wed, Nov 23, 2011 at 4:09 AM, mmhan mmha...@gmail.com wrote:

 I was just curiously checking out some of the core code in github and
 stumbled upon this.. I'm just wondering the reasoning behind it.In PHP4...

Yes, in PHP4...

$obj2 = $obj;

... would assign a copy of $obj to $obj2. i.e. an entirely different
object which is a copy of $obj.

So in PHP4, = is need to assign a reference to $obj to $obj2.

In PHP5...

$obj2 = $obj;

... assigns $obj2 as a reference of $obj by default so = is not required.

Cheers,

Andy

-- 
Andy Gale
http://andy-gale.com
http://twitter.com/andygale

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 2.0.3 out of the oven

2011-11-17 Thread Andy Gale
On Thu, Nov 17, 2011 at 10:16 AM, Davor Ilic webfa...@gmail.com wrote:

 does any of you have this error message when you calling wrong controller or
 action:
 Fatal error: Call to a member function flash() on a non-object
 in /srv/www/htdocs/web843/html/schaetzmal/lib/Cake/View/Layouts/default.ctp on
 line 44

You need to include the Session helper I'd imagine.

-- 
Andy Gale
http://andy-gale.com
http://twitter.com/andygale

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Se Ya Cake..bake a dick cake frosting on your face...............

2011-09-11 Thread Andy Gale
This is CLASSIC trolling. Congratulations on a job well done.

On Sun, Sep 11, 2011 at 7:45 AM, Krissy Masters
naked.cake.ba...@gmail.comwrote:

 Cake is falling apart,  everyone wants Drupal .

 Kill me hate me but its true.

 Cake is an ass in the pan going where?

 Cake fest eat it up cause the cake tastes better when someone cares, 

 Don’t see any Cake jobs no one want cake devs, they want Wordpress and
 Drupal and ROR.

 ** **

 1 in 1 want cakePHP .  Why? Because they make $$$ cake makes
 nothing! Put up a big name studio vs Cake Studio…who has more $$$ profits?
 Not Cake.

 Yes  I watched the  Cake community and you see the names asking questions
 then no more……where did the go I wonder..they moved on. Cake is a joke to
 the real dev world. 

 It’s for people who can spell, if my name is Steve the steve _ it is, Cake
 was a good thing and it has lost it all. Yes I’m full of it but 3 years to
 release a stable php 5 framework where others have surpassed, What have you
 to show? Miss America or Buy me a beer?  In 4 years I have not seen a single
 Cake site.

 I was shit this is good its all amature bullshit and that why cake sucks.
 No movement no future no ideas….lets play catch up and 1 day you will see no
 one cares.

 ** **

 Peace CakePHP officially signing off and CakeSucks ass! Fuck all you gay
 fuckers sucking Mark Story’s Cock! Cake is an ass eaters anal shit hole suck
 that nasty ass losers ball sack and enjoy it., losers no girlfriends playing
 with each others nuts,,ohh yes PHPNut who else would put nut in their name
 unless they like sucking them…phpMy Ass fag

 ** **

 Bake on Suckers going no where! Bake a cock cake and eat
 it!!!Emm yuymmy I like cocks !

 ** **

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php




-- 
Andy Gale
http://andy-gale.com
http://twitter.com/andygale

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Memcached not working on default settings

2010-09-21 Thread Andy Gale
On Tue, Sep 21, 2010 at 4:02 PM, j.blotus j.blo...@gmail.com wrote:
 I recently set up memcached as well, it's too bad that it doesn't give
 you a great idea of how things are working behind the scenes.

Run memcached with the -vv option and it will tell you exactly what's going on.

-- 
Andy Gale
http://andy-gale.com
http://twitter.com/andygale

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Backend best option

2010-08-03 Thread Andy Gale
On Mon, Aug 2, 2010 at 6:27 PM, mike karthauser mi...@brightstorm.co.uk wrote:

 hi hugo
 making one application with front end and backend functionality is far
 superior to creating and maintaining two apps.
 it seems you might benefit from reading book.cakephp.org
 mikek

Definitely from a code generation point of view but maybe not from a
performance point of view. Depends how important performance is
really.

-- 
Andy Gale
http://andy-gale.com
http://twitter.com/andygale

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Display images outside webroot folder

2010-07-26 Thread Andy Gale
On Mon, Jul 26, 2010 at 12:37 PM, rez...@gmail.com rez...@gmail.com wrote:
 In my application I upload images in folder outside webroot called
 userFiles - in the same level of webroot - and I can't display these
 images using html helper
 ?php echo $html-image('/userFiles/my_pic.png')?
 as cake consider all images url in webroot img
 Any help plz

They are outside the document root so your web server can't serve them.

-- 
Andy Gale
http://andy-gale.com
http://twitter.com/andygale

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Element caching using memcache

2010-07-26 Thread Andy Gale
On Mon, Jul 26, 2010 at 1:31 PM, majna majna...@gmail.com wrote:
 Andy Gale,
 you can't cache elements  and views in cache engine (1.2 or 1.3,
 because Cache::read() and Cache::Write is not even used here).
 It requires refactoring cache() and clearCache() functions
 (basics.php) to implement memcache.

 Also, clearCache() calls form Model class deletes all cached elements
 and views which contains Model name (or associated models names)
 in a cache key. Let userland code decide that!?

Of course it uses a file cache for that whatever you put in for the
cache engine. Which is why we bypassed the requestAction stuff when we
implemented our caching system. What are the reasons why the cache
engine isn't used there? Seems a bit of a no-brainier to me.

-- 
Andy Gale
http://andy-gale.com
http://twitter.com/andygale

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Element caching using memcache

2010-07-25 Thread Andy Gale
On Sun, Jul 25, 2010 at 5:15 PM, DragonI dragonc...@gmail.com wrote:

 Are there any plans for an option to enable element caching via
 memcache?

You can already cache elements via requestAction. If memcache is set
as your caching engine it'll surely cache said elements in memcache.

http://book.cakephp.org/view/434/requestAction

-- 
Andy Gale
http://andy-gale.com
http://twitter.com/andygale

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en