Re: Cake becomes super-slow when loading assets from Plugins

2012-06-03 Thread #2Will
Me too. Debug kits jquery takes 5 seconds to load. - blocking page load. On Tuesday, 29 May 2012 17:58:25 UTC+10, Ernesto wrote: > > i forgot to say i'm usign Cake 2.2.0-RC1 on a Win7 server > > Il giorno martedì 29 maggio 2012 09:51:28 UTC+2, Ernesto ha scritto: >> >> Hi all! >> >> i noticed th

Re: Infinite scroll, anyone knows how to do it using Paginator?

2012-06-03 Thread Afif Abu Bakar
I used infinite scroll jQuery plugin by Paul Irish. http://www.infinite-scroll.com/ Currently its working fine. :) -- 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 C

Pagination, how to change default url generate?

2012-06-03 Thread Afif Abu Bakar
Hi, Is there a way to change default URL for pagination? Right now the URL is like localhost/index/page:2. Can we change the default URL to like localhost/index/2 or something? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Ques

Re: cakePHP v2.1 and urls generated by $this->Html->css from default.ctp

2012-06-03 Thread glk
Sorry... The sample code:echo $this->Html->css('ezshoot_common'); It should read: echo $this->Html->css('cake.generic'); -- 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

issue with table not being found...

2012-06-03 Thread Devario Johnson
Really quick question, maybe im missing something...but i have a table and it is there, all naming conventions are good etc ... but im getting this when i do a params in the error.php Array ( [className] => Tag [table] => tags [code] => 500 ) class name is the same, table is present...eveythin

Re: Is there a way to generate the excel spreadsheet using cakephp?

2012-06-03 Thread Devario Johnson
http://bakery.cakephp.org/articles/melgior/2010/01/26/simple-excel-spreadsheet-helper On Sunday, June 3, 2012 6:22:49 AM UTC-5, alvin567 wrote: > > Is there a way to generate the excel spreadsheet using cakephp? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: Is there a way to generate the excel spreadsheet using cakephp?

2012-06-03 Thread Daniel Baird
There's probably a "proper" way, but I've previously had good success with: - generate a bare html table with your data (no need for any surrounding page layout) - serve the html content with a mime-type of application/vnd.ms-excel - set a header of: Content-Disposition: attachment; filename="name

Acl alternative

2012-06-03 Thread Juan Ezquerro LLanes
Hi, I'm using cakephp 2.0 and cassandra as database, so i can't work with default acl implementation, any suggestions, options, ...? 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

cakePHP v2.1 and urls generated by $this->Html->css from default.ctp

2012-06-03 Thread glk
I'm converting from 1.3 to 2.1. I'm having problems getting any of my stylesheets to load properly from any link other than home! //sitename:8080/ using home.ctp, then one time through default.ctp (in App/View/ Layouts) the code "echo $this->Html->css('ezshoot_common');" generates //sitename:80

setting up cakephp 2.x to free webhosting

2012-06-03 Thread Muhammad Shidiq
hallo, i'm new in cakephp. i wanna ask you something, how to setting up cakephp 2.x to free web hosting like 000webhost or co branded hosting? i always redirect to 404 not found :( i've set htaccess 'rewritebase / ' or moving webroot to root of cakephp folder but its not working please help me, t

Stragne warning

2012-06-03 Thread Dahan Mamdouh
Hello I'm getting this warning in my application. *Warning* (2): Parameter 2 to MultipleDisplayFieldsBehavior::beforeFind() expected to be a reference, value given [*CORE\Cake\Utility\ObjectCollection.php*, line *130*] Does any one know what that means? I made a google search but with no interes

Re: Hiding empty categories

2012-06-03 Thread Paul Willis
On 3 Jun 2012, at 18:30, stork wrote: > Add counterCache field to categories table and then use that field in > find('list') conditions. > http://book.cakephp.org/1.3/en/view/1033/counterCache-Cache-your-count Very quick and neat, thanks for that. I added the product_count field to my product_c

Re: Hiding empty categories

2012-06-03 Thread stork
Add counterCache field to categories table and then use that field in find('list') conditions. http://book.cakephp.org/1.3/en/view/1033/counterCache-Cache-your-count -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site htt

Hiding empty categories

2012-06-03 Thread Paul Willis
I'm on CakePHP 1.3 On my products/index.ctp view I show a menu of categories and list all the products from the selected category. However I don't want to show categories where there are no products. Currently the data comes from my products_controller.php function index($id = 1) {

Ajax Slider - onStop update div

2012-06-03 Thread Mir Adnan
Hi, I am using an Ajax Slider with Ajax Helper from http://www.cakephp.4uk.pl/ajax/slider I need to have the slider work as http://www.uswitch.com/mobiles/compare/contract_phones/#products=cost%3D30%26minutes%3D300%26texts%3D400 Slider OnStop it should update another div id. Can anyone plea

Re: Looking for MVC & CakePHP Best practice doc, examples for Med to large sites

2012-06-03 Thread John Hardy
Fat model, skinny controller. Separation of presentation and data A couple Core concepts in building a mote maintainable app. However nothing is ever 100 perfect for all situations, learn from writing your own shitty code and do not get caught in the spiral of over engineering. Keep it simple and

Is there a way to generate the excel spreadsheet using cakephp?

2012-06-03 Thread alvin567
Is there a way to generate the excel spreadsheet using cakephp? -- 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 g