Re: browser compatibility: the weirdest thing ever with IE. throws flash message all the time!!!

2012-06-01 Thread johnny
If it only occurs on IE it might be a prolem with the user session. Try setting Session.checkAgent to false in core.php and see if that helps. I had problems with sessions getting dropped in IE, with this setting on. On May 31, 9:33 pm, luftlinie thomasfuch...@googlemail.com wrote: hi everyone,

Re: Missing Controller Error

2012-06-01 Thread Mike Griffin
On Fri, Jun 1, 2012 at 3:13 AM, Kid Noire thiskidno...@gmail.com wrote: I've just installed CakePHP and trying to get myself through Andrewperk's blog tutorial but I get this error  after the second video... Missing Controller Error: PostsController could not be found. Error: Create the

Best approach for handling group by query

2012-06-01 Thread luca capra
Hi, I'm planning to add a group by to an index action (like by date('F Y') ) The query could be a first one to find out the groups then loop the results to create subqueries for the single group. Then I would move the main table in index view to an element and then loop the groups = records

XML does not work anymore (changed from one server to another)

2012-06-01 Thread heohni
Hi! I just have the problem, that I do extract from a xml feed and display it in a view. It works fine on server1 but not on server2. I get this error message: 2012-06-01 11:02:08 Warning: Warning (2): SimpleXMLElement::__construct(http://www.domain.com/?feed=rss2) [a

Action is running twice because of ckeditor link

2012-06-01 Thread mebibyte
Hey I'm using ckeditor as wysiwyg editor. In the first line of my view for 'edit' I wrote echo $javascript-link('ckeditor/ckeditor', false); Everything is running fine but the edit function is running twice and that is giving me some problems. Is this normal or am I doing something wrong?

Re: Missing Controller Error

2012-06-01 Thread AD7six
On Friday, 1 June 2012 04:13:09 UTC+2, Kid Noire wrote: I've just installed CakePHP and trying to get myself through Andrewperk's blog tutorial but I get this error after the second video... Missing Controller Error: PostsController could not be found. Error: Create the class

Re: Custom Find with Paging Problem - Cake 2.1.3

2012-06-01 Thread Glauco Custódio
I have changed it, but still does not work.. I still get this error: *Notice* (8) http://superabelha/code/comparacao/NjMxNQ==/Lata-DVD-O-Fantastico-Jaspion-Vol-1-5-DVDs: Undefined index: popularity [*CORE\Cake\Model\Model.php*, line *2734*] *Notice* (8)

Re: Custom Find with Paging Problem - Cake 2.1.3

2012-06-01 Thread Glauco Custódio
I have changed it, but still does not work.. I still get this error: *Notice* (8) http://superabelha/code/comparacao/NjMxNQ==/Lata-DVD-O-Fantastico-Jaspion-Vol-1-5-DVDs: Undefined index: popularity [*CORE\Cake\Model\Model.php*, line *2734*] *Notice* (8)

A session problem using database(cake-sessions)

2012-06-01 Thread Murray
I'm planning to use the database session mode in cake 1.3 for load balance through servers. However, in one of my servers, the session expires immediately while i write a session value, and the records in the database is odd and very very long.(The records from other servers are short). It's

Re: Missing Controller Error

2012-06-01 Thread Chetan Patel
Hello Please share your code here. Thanks On Friday, 1 June 2012 07:43:09 UTC+5:30, Kid Noire wrote: I've just installed CakePHP and trying to get myself through Andrewperk's blog tutorial but I get this error after the second video... Missing Controller Error: PostsController

Re: Missing Controller Error

2012-06-01 Thread 王瑞
is that controller in app/controllers? and try to add var $name = Posts; in the class On Fri, Jun 1, 2012 at 1:16 PM, ying yang yingyang99...@gmail.com wrote: ?php class PostsController extends AppController { } ? On Fri, Jun 1, 2012 at 10:13 AM, Kid Noire thiskidno...@gmail.com wrote:

Form Action Controller Camel Case | Cake 2.1

2012-06-01 Thread TonyCharlotteCakePHP
Sorry if this has been asked already but I have a controller that is uppercase camelcase and when I create a form, the controller part of the action for the form is not camelcase. Instead cake separates the camelcase controller with an underscore and all lowercase. For example: my controller

change default tags

2012-06-01 Thread scs
I'm in the process of update a few cake applications and have come to a problem I have not been able to fix. In the older version of cakePHP we have been able to change the default tags of links by adding 'link' = 'a href=%s %s onClick=loadingScreen()%s/a' to a file in the config folder called

Re: Form Action Controller Camel Case | Cake 2.1

2012-06-01 Thread DiabloGeto
by convention Action needs to be Underscored for default(as its easier to call such URL in browser. However u can change it through Routing settings if u like that way. Which version of Cake ur using? On Friday, June 1, 2012 7:30:02 PM UTC+5:30, TonyCharlotteCakePHP wrote: Sorry if this has

Re: Missing Controller Error

2012-06-01 Thread DiabloGeto
Read the Naming Convention Chapter for Cake 2.x which is diff from 1.3. Andrew Perkins Tutorial is for 1.3 However he had added a Video for changes is Cake 2.x. Follow that. IN ur Problem , just rename ur Posts_Controller file to PostsController(remove Underscore). It will Work. If ur using

Implementing factory patterns in CakePHP

2012-06-01 Thread elitalon
Hi, I've been reading a couple of articles about implementing factory patterns in CakePHP but I can't find a hint to solve my actual problem. There is one that tries to mimic these kind of patterns using

Comparing fields in the controller

2012-06-01 Thread Cody Sortore
Ok, I've got a system where users can create their own blogs. The blogs belong to the users, the blogposts belong to the blogs. I was trying to create a comparison for editing blogposts that compares the users user ID from their session to the Blog ID (which is the same as their User ID).

Re: Comparing fields in the controller

2012-06-01 Thread stork
$this-Blogpost-find(null, array(...)); Find type must be a string. Use $this-Blogpost-find('first', array(...)) or $this-Blogpost-read(array('Blogpost.blog_id'), $id); -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions

Re: Comparing fields in the controller

2012-06-01 Thread stork
By the way, read whole chapter about model associations http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html and follow cake conventions for primary/foreign keys - that means NOT User.id == Blog.id BUT User.id == Blog.user_id. -- Our newest site for the community:

Re: change default tags

2012-06-01 Thread stork
In controller: public $helpers = array( 'Html' = array('configFile' = 'tags') ); Constructor of HtmlHelper will call $this-loadConfig('tags'): http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#changing-the-tags-output-by-htmlhelper -- Our newest site for the community:

Re: Comparing fields in the controller

2012-06-01 Thread Cody Sortore
I know I didn't post all or even much code so you probably misunderstood me. With my blog table I do have an `id` and a `user_id` column it's just that instead of using auto_increment for the `id` column I set it the same as the users `id` with $this-request-data['Blog']['id'] =

$this-request-data not storing radio button values

2012-06-01 Thread Daniel Fisher
Dear all, I am having a problem with radio boxes in CakePhP - specifically $this- request-data is not holding the values that the user inputs when the page is reloaded; e.g. when the form has invalid inputs. This is a considerable problem because its a very large form. Code is here:

ave does not work properly

2012-06-01 Thread Jeff Huang
I already sent two days tried to solve this problem but havent found out the solution. Basically the problem is, when I followed the Blog tutorial on CakePHP cookbook, my add() action didn't actually insert title and body from the add.ctp view to the posts database. Other fields like created and