Re: Cake Bake Model Template - Access Field Data Within Template

2012-03-15 Thread dtemes
a quick and dirty solution, add this 3 lines to the bake task in the model to push the fields (line 746): $data['useDbConfig'] = $name-useDbConfig; $data['name'] = $name = $name-name; } else { $data['name'] = $name; } *

CakeDC Search Plugin - AND conditions search fields

2012-03-15 Thread YBin
Hello guys, Cracking my head over this. I have no problem using the CakeDC search following the example, however how does one specify that all the search fields in $filterArgs should be in 'AND' conditions ? by default it is 'field1' or 'field2' or 'field3', how do I make it 'field1' AND

Re: (Cake2.1) Missing AppModel.php

2012-03-15 Thread Rico
Hehe, typical case of rtfm Sorry! :) On Wednesday, March 14, 2012 5:27:31 PM UTC+1, euromark wrote: http://book.cakephp.org/2.0/en/appendices/2-1-migration-guide.html Am Mittwoch, 14. März 2012 15:44:03 UTC+1 schrieb Rico: And /lib/Cake/View/Helper/AppHelper.php too actually On

Re: (Cake2.1) Read from RSS Feed and output in view

2012-03-15 Thread heohni
?php App::uses('Xml', 'Utility'); class RssController extends AppController{ var $feed_url = 'http://www..'; function index(){ $xml = Xml::build($this-feed_url); $parsed_xml = Set::reverse($xml); return $parsed_xml['rss']['channel']['item']; } } -- Our newest site

if i delete webroot/htaccss for debuging in eclipse,Internal Server Error!

2012-03-15 Thread cx
someone says del webroot/.htaccss, but i got: Internal Server Error apache error is : [Thu Mar 15 11:10:15 2012] [error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary.

Re: if i delete webroot/htaccss for debuging in eclipse,Internal Server Error!

2012-03-15 Thread Thomas
I'm also struggling with debugging via xdebug and Eclipse PDT - tried several links I found via Google but nothing worked so far. Most likely this is related to fancy URLs as I'm able to debug simple php pages without problems... Could someone point me to a working tutorial on how to set up

generateTreeList starting from an id

2012-03-15 Thread Ernesto
Hi all. i'm using TreeBehavior in one of my Models and everything is working ok. just one question: generateTreeList returns a list containing ALL the entries in the table. i want the treeList just for the category with id = 20 and his childrens how can i do? -- Our newest site for the

Re: generateTreeList starting from an id

2012-03-15 Thread Ernesto
i forgot to say i've already tried the conditions argument but the function will return just the first layer of results Il giorno giovedì 15 marzo 2012 16:49:30 UTC+1, Ernesto ha scritto: Hi all. i'm using TreeBehavior in one of my Models and everything is working ok. just one question:

Re: Cannot login in cake 2.0 app

2012-03-15 Thread murciano
Hi Ernesto, When you asked your question you expected a solution? Or just you wanted someone to tell you : I know what is wrong with your code. and then not telling you anything more. Because I came here with the same question as you on the beginning and when I see your second reply

Re: Filling in a drop down box - comments on code please

2012-03-15 Thread andrewperk
Muka, you are correct, it was just a copy/paste from some of my code and I changed somethings to Choice but forgot to change the $this-Article On Wednesday, March 14, 2012 12:57:41 AM UTC-7, muka wrote: Il 14/03/2012 08:07, andrewperk ha scritto: Whenever I want to access a tables data from

Paginate a containable association

2012-03-15 Thread Alan Wagstaff
Hi, I have a Topic model, which in turn $hasMany Post. In my TopicsController, I am doing a find() on the Topic ID to retrieve a single topic and then using Containable to get all the posts for the topic. I would like to use the Paginate component to limit the number of posts returned when

PDF Excel generation in CakePHP 2.0

2012-03-15 Thread konda
Thanks to all. I want to generate reports using PDF and Excel format. Please help me how can I achieve this. -- 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