Re: Tree Behavior Issue

2012-04-28 Thread Michael Gaiser
Yep... that would cause an issue. Thanks. On Fri, Apr 27, 2012 at 9:12 PM, lowpass zijn.digi...@gmail.com wrote: public $actsAs = array('Tree'); Notice the lowercase s you left out. On Fri, Apr 27, 2012 at 7:39 PM, Michael Gaiser mjgai...@gmail.com wrote: I want to use the Tree Behavior on

Interacting with a cakephp rest service using jquery - problem with PUT

2012-04-28 Thread Greg Skerman
Hi all, Building a simple tool which uses a cakephp rest service. The client application is the webpage generated by the application, and it reacts to user input such as dragging and dropping things around. I've extended the jquery ajax helper methods to include methods for PUT and DELETE, and

Re: Interacting with a cakephp rest service using jquery - problem with PUT

2012-04-28 Thread Greg Skerman
I will add, that POST and GET works fine... data is passed back and forth as expected and cakephp's magic takes care of saving of data perfectly fine. On Sat, Apr 28, 2012 at 6:24 PM, Greg Skerman gsker...@gmail.com wrote: Hi all, Building a simple tool which uses a cakephp rest service. The

Re: Interacting with a cakephp rest service using jquery - problem with PUT

2012-04-28 Thread Greg Skerman
hmmm disregard.. JSON.stringify to the rescue :S On Sat, Apr 28, 2012 at 6:25 PM, Greg Skerman gsker...@gmail.com wrote: I will add, that POST and GET works fine... data is passed back and forth as expected and cakephp's magic takes care of saving of data perfectly fine. On Sat, Apr 28,

CakePHP 2.1 Pagination Helper

2012-04-28 Thread gmwebs
There is a bit of a change between the way PaginatorHelper::next() behaves in v1.3 and v2.1 which I just can't get my head around. Take the following snippet: echo $this-Paginator-next('Next', array('tag'='div', 'class'='next_page', 'rel'='next'), null, array('class'='next_page disabled'));

Re: CakePHP 2.1 Pagination Helper

2012-04-28 Thread gmwebs
Seems as if this is the reason - Ticket 1759http://cakephp.lighthouseapp.com/projects/42648/tickets/1759-inconsistent-class-placement-for-paginator-prevnext - so I guess my question is how to apply a class to the link contained in the wrapping tag? -- Our newest site for the community:

Re: Implementing jQuery File Upload in CakePHP 2.1.x

2012-04-28 Thread Hugo Dias
Changed the source code for a single plugin . Now much easy to implement. Link: https://github.com/hugodias/FileUpload -- 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

Paginating cached data

2012-04-28 Thread Jeremy Burns
I have a function that does a whole bunch of complex finds and calculations to produce an array, which is then cached. Some of the array keys contain meta data about how the calculation was done and some high level contents of the results. One of the array keys contains the actual results that

Re: Paginating cached data

2012-04-28 Thread lowpass
How about using array_slice()? I guess you'd also need your own ArrayPaginatorComponent|Helper. On Sat, Apr 28, 2012 at 8:49 AM, Jeremy Burns jeremybu...@classoutfit.com wrote: I have a function that does a whole bunch of complex finds and calculations to produce an array, which is then cached.

Re: CakePHP 2.1 Pagination Helper

2012-04-28 Thread lowpass
Or just change your CSS to div.next_page a { ... } On Sat, Apr 28, 2012 at 5:54 AM, gmwebs gmw...@gmail.com wrote: Seems as if this is the reason - Ticket 1759 - so I guess my question is how to apply a class to the link contained in the wrapping tag? -- Our newest site for the community:

Re: CakePHP 2.1 Pagination Helper

2012-04-28 Thread gmwebs
Proper dumb moment! Works fine, thanks. -- 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: Interacting with a cakephp rest service using jquery - problem with PUT

2012-04-28 Thread lowpass
Browser support for PUT and DELETE is sketchy. http://annevankesteren.nl/2007/10/http-method-support http://amundsen.com/examples/put-delete-forms/ On Sat, Apr 28, 2012 at 4:25 AM, Greg Skerman gsker...@gmail.com wrote: I will add, that POST and GET works fine... data is passed back and forth

Can you dynamically change CSS for a layout per user?

2012-04-28 Thread bs28723
I see in the documentation how to change the layout in the controller. I also see how to include CSS files. So, is it possible to include either inline CSS or create a temp File with CSS info that is specific to a user? For example, lets say I somehow allow user to change background and font

Re: Mock and test uploads

2012-04-28 Thread Matteo Landi
I asked more or less the same question some months ago, and the best solution I come up with was to populate $_FILES by hand and wrap move_uploaded_file into a controller method, so that it can be easily mocked inside your tests. Matteo On Apr/26, jeremyharris wrote: I would take cues from the

Re: Table name with no meaning in eglish

2012-04-28 Thread jmn2k1
You can always use useTable = 'yourtablename'; The same goes for foreing keys. Check: http://book.cakephp.org/2.0/en/models/model-attributes.html On Friday, April 27, 2012 4:41:48 PM UTC-3, Mamdouh wrote: Hi I'm new to CakePHP and I'm wondering if I can use as table name a words that has no

Re: Can you dynamically change CSS for a layout per user?

2012-04-28 Thread Michael Gaiser
Would it be possible to just put a test in your app_controller.php and then make use of it in your \View\Layouts\default.ctp file? That way all your pages get it by default and you do not need to drive yourself crazy with placing that code everywhere. ~Michael -- Our newest site for the

Re: Cakephp 2.0 Missing Database Connection Solved

2012-04-28 Thread 香柱元
thanks for your share! 在 2011年10月25日星期二UTC+8上午5时00分40秒,Ben D'Angelo写道: This took me hours to figure out. When I started a new CakePHP 2.0 app. I couldn't connect to the mysql database. I finally figured out you have to enable the php_pdo_extension in php.ini. This was posted no where in

CakePHP 2 + JQuery Easy UI

2012-04-28 Thread wchopite
Hi people, I´m from Venezuela sorry my english. I have a little problem and I need your help I need to work with Jquery Easy UI (http://www.jeasyui.com) and with Cakephp together. But I can´t do it work. I make the query in the controller and return the data in Json format: function

Re: Can you dynamically change CSS for a layout per user?

2012-04-28 Thread bs28723
Thanks Michael. nbsp; nbsp;nbsp; I think I could solve the problem of having the code in every controller by doing... class AppController extends Controller { nbsp;nbsp; public function beforeRender() { nbsp;nbsp;nbsp; nbsp;nbsp;nbsp; nbsp;nbsp;nbsp;

How can I pass parameters to controller/action not in URL?

2012-04-28 Thread bs28723
I looked at routing, but I did not see a way to solve my problem. I am looking for a way to create links to controller/actions and pass large or 'hidden' parameters. I could use a from and post, but seems like a lot of work for 1 or 2 links in a view. I understand the simple link call with 1

Re: How can I pass parameters to controller/action not in URL?

2012-04-28 Thread Alejandro Gómez Fernández
Did you try with session variables? Enviado desde mi iPad El 28/04/2012, a las 21:23, bs28723 bill.sto...@boosterwebsolutions.com escribió: I looked at routing, but I did not see a way to solve my problem. I am looking for a way to create links to controller/actions and pass large or

Re: Best IDE for CakePHP 2.1

2012-04-28 Thread Điển vũ
I forgot to mention Sublime Text 2 , is a fast , cross-platform editor . It is good for coding too . Read this : http://net.tutsplus.com/tutorials/tools-and-tips/sublime-text-2-tips-and-tricks/ . -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out

Re: Best IDE for CakePHP 2.1

2012-04-28 Thread Timothy O'Reilly
Did anyone mention JetBrains? I'm liking it, at the moment. Tim On Apr 28, 2012, at 7:30 PM, Điển vũ meotimdi...@gmail.com wrote: I forgot to mention Sublime Text 2 , is a fast , cross-platform editor . It is good for coding too . Read this :