Re: Configure::write('App.baseUrl', env('SCRIPT_NAME')); missing controller

2012-07-14 Thread sb
I have the same problem. I am choosing NOT to use mod_rewrite. I followed the instructions in the blog tutorial, but I get missing controllers. If I don't use mod_rewrite, then I am instructed by the tutorial to delete .htaccess. Do I still need to edit the httpd.conf for the overrides? -sb On

New to CakePHP .. problem with mod_rewrite

2012-07-14 Thread surajmundada
Hi, I am new to CakePHP ... downloaded Cake 2.2.0 and set it up on Apache as given in cookbook. I did all settings as given in cookbook (both mod_rewrite and CakePHP pretty URLs). Still I can not see default cake page in sample blog's webroot. Not sure where to look for errors. I have not

Re: Edit User on second submit

2012-07-14 Thread chuminh
I am having the same problem with edit. I got exactly the same code as above. but when I try to edit and save the data, it does not save, it gives me flash message. I wonder what is wrong with the code because i follow this edit function from blog tutorial. Thanks On Wednesday, July 11, 2012

Newbie: Problem with Blog tutorial

2012-07-14 Thread Kunal Bajpai
As described in the blog tutorial - Also remove these .htaccess files: /.htaccess/app/.htaccess/app/webroot/.htaccess This will make your URLs look like www.example.com/index.php/controllername/actionname/param rather than www.example.com/controllername/actionname/param. I did the same but

Newbie: Problem with Blog tutorial

2012-07-14 Thread AD7six
In what way is that unexpected? AD -- 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

Re: New to CakePHP .. problem with mod_rewrite

2012-07-14 Thread Piotr Beschel
W dniu sobota, 14 lipca 2012 05:24:16 UTC+2 użytkownik surajmundada napisał: I have not installed PHP. Is it necessary to install PHP before CakePHP? Yes it is! Cakephp is PHP framework and to work cake need php compilation. -- Our newest site for the community: CakePHP Video Tutorials

Re: Newbie: Problem with Blog tutorial

2012-07-14 Thread Piotr Beschel
Like! +1 W dniu sobota, 14 lipca 2012 16:19:38 UTC+2 użytkownik AD7six napisał: In what way is that unexpected? AD -- 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

Security Release - CakePHP 2.1.5 2.2.1

2012-07-14 Thread mark_story
CakePHP 2.1.5 and 2.2.1 have just been released. If you are using CakePHP's `Xml` class, you should upgrade as soon as possible. The security issue was recently reported by Paweł Wyleciał. When accepting user provided XML it is possible to read arbitrary files using external entities. This is

Re: Database Config

2012-07-14 Thread euromark
for me this doesnt make much sense the database is switched/selected based on the environment not what action/shell you invoke - normally anyway so for local development you have a local db at all times which will then also be used for baking or what exactly are you asking? I mean, why

Re: Media PLugin

2012-07-14 Thread AppSynergy
Hi all, I just ran into this same problem - I want the image upload to be optional, but don't want to go to the trouble of creating another Model (I had this system originally, and am trying to improve things by bringing the image into the main model!) Anyway, I found a sneaky way to have

Re: Database Config

2012-07-14 Thread Dave Maharaj
I'm baking local, correct so i need to go into database.php and comment out live config, so i can bake local settings because it wont find the local using live server settings, then uncomment / re comment local settings to upload then re-upload database. If im making changes to local db its not

Re: Database Config

2012-07-14 Thread euromark
use some kind of dynamic db switch to always have the right db setting for the corresponding environment like http://www.dereuromark.de/2012/02/25/dynamic-database-switching/ then your problem resolves itself Am Sonntag, 15. Juli 2012 00:49:24 UTC+2 schrieb advantage+: I'm baking local,

Re: 3.0: a peek into CakePHP's future

2012-07-14 Thread mark_story
I'm not aware of any plans to make the good parts of Cake worse. We fully plan on keeping things like Convention over config, and features like bake and scaffolding around, perhaps even make them better. I find it strange that you think arrays are not adequate for configuration, but cite yaml

Re: 3.0: a peek into CakePHP's future

2012-07-14 Thread mark_story
There isn't really an example yet, as no code has been written. Based on this thread it might be a helpful process to go through a public vetting of the proposed model api, and how some common use cases might work. I know that josé has begun implementing basic database abstraction which an

Re: CSS / JS Compression

2012-07-14 Thread mark_story
I wrote one, its on github. http://github.com/markstory/asset_compress. It affords the ability to concatenate and minify files. It also allows you to integrate preprocessors like less, sass and coffee-script into your projects. -Mark On Saturday, 14 July 2012 17:27:34 UTC-4, advantage+

RE: CSS / JS Compression

2012-07-14 Thread Advantage+
Hello Mark, I did see the one you wrote but having to define the specific sets of different css / js files did not seem like the option I was looking for in a separate ini file. I want to be able to say ok let me try using colorbox.js or lightbox.js and add that directly in the view rather

Re: Newbie: Problem with Blog tutorial

2012-07-14 Thread Борислав Събев
Shame on you *AD7six* and *Piotr Beschel*! This group is for helping people not mocking them! Yes the question is kinda silly, but this doesn't mean that you should mock people. What if you end up asking a question that someone better (in Cake) than you considers silly? Would it be nice to get

Re: CSS / JS Compression

2012-07-14 Thread Thiago Belem
Maybe http://code.google.com/p/minify/ ? Regards, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil *Assando Sites* - Curso online de *CakePHP* assando-sites.com.br http://goo.gl/b1EEd thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»*

Admin / Prefix When Baking

2012-07-14 Thread Advantage+
I have 3 different Admin routing defined in core.php Configure::write('Routing.prefixes', array('admin', 'manager' , 'editor')); so when baking it asks would you like to add the routing in controller 1/2/3 but it only bake's one set and doing it again will overwrite the original controller,