Re: 3.0: a peek into CakePHP's future

2012-07-07 Thread tigr
No, that is not nice. The strength of the CakePHP design is in being very straightforward when it comes to working with the data. I have seen other frameworks and I think that object-oriented ways are not suitable for working with data. Well, of course, you can, but would you want to, given a

Re: Login problem

2012-07-07 Thread tigr
I have a feeling that you are mixing together two concepts. YOu can do the authorization with the standard authorization mechanisms, without isAuthorized(), controlling the access through the normal $this-Auth-Allow() and Deny() functions. You use this:

Re: Issues with edits and afterSave in Cake 2.2

2012-07-07 Thread tigr
Could it be that the data was not COMMITed yet? Check the SQL log? On Friday, 6 July 2012 12:06:03 UTC+2, Ernesto wrote: Hi all i'm having a weird issue with Cake 2.2 model's afterSave() i need to update some csv files after any order has been saved or updated. to achieve this i made a

What is the impact of returning true or false in a component startup method?

2012-07-07 Thread Greg Skerman
Hi, I'm playing around with my own 'simple' ACL implementation, and building a new component to handle it. Essentially the component is 'invisible' - simply including it in the AppController will invoke its magic. Naturally this means putting a bunch of logic inside of the startup method.

Ajax Pagination with Filter Plugin Problem

2012-07-07 Thread sanjeev
Hello, I am using Ajax Pagination with the help of livequery.js with following code in layout $('a[href*=sort:],a[href*=page:],#searchButton').livequery('click', function(){ $('#content').load($(this).attr('href')); return false; }); I put #searchButton with help of Js::submit() function for

Re: Page hit Statistic

2012-07-07 Thread Ilie
Hello, Why is far better to keep those outside of app? What if you need a list of most read items on your website, or you need to track some other actions? On Friday, July 6, 2012 2:28:52 PM UTC+3, Mike Karthauser wrote: hi mr manager On 6 Jul 2012, at 12:02, Mr. Manager wrote:

Re: Create an admin console

2012-07-07 Thread David Lozzi
THANK YOU On Thursday, July 5, 2012 11:38:54 PM UTC-4, Dr. Tarique Sani wrote: http://book.cakephp.org/2.0/en/development/routing.html#prefix-routing Start here Tarique On Fri, Jul 6, 2012 at 8:19 AM, David Lozzi da...@lozzi.net wrote: Hi There, I'm new to CakePHP, and

Did you know?

2012-07-07 Thread zuha
Did you know that CakePHP has a limit of 1,254 records to be returned in an array? Maybe its a server or database setting and not CakePHP, but let me tell you it was a real chore to debug why a query was returning results but the data array was empty. Figured I'd post it somewhere in case it

TinyMCE for CakePHP help

2012-07-07 Thread David Lozzi
Hi There, I've downloaded and installed the TinyMCE plug in for CakePHP. Briefly, my install went like: put files into app\plugin; enabled CakePlugin::loadAll() in config/bootstrap.php; updated my controller like public $helpers = array('TinyMce', 'Html', 'Form'); I did get an error at this

Re: Did you know?

2012-07-07 Thread lowpass
Where is this limit set? On Sat, Jul 7, 2012 at 1:38 PM, zuha rich...@razorit.com wrote: Did you know that CakePHP has a limit of 1,254 records to be returned in an array? Maybe its a server or database setting and not CakePHP, but let me tell you it was a real chore to debug why a query was

Re: Ajax Pagination with Filter Plugin Problem

2012-07-07 Thread lowpass
Please define doesn't work. On Sat, Jul 7, 2012 at 7:44 AM, sanjeev sanjeevdive...@gmail.com wrote: Hello, I am using Ajax Pagination with the help of livequery.js with following code in layout $('a[href*=sort:],a[href*=page:],#searchButton').livequery('click', function(){

Re: Login takes away the slug from my URL

2012-07-07 Thread lowpass
I think Cake might be redirecting to Auth's loginAction that is set in AppController. Maybe you should drop the slug part from the URL and just fetch the company slug after login and redirect. Presumably, once logged in you'll need to implement isAuthorized() in the controller to match the

Re: TinyMCE for CakePHP help

2012-07-07 Thread lowpass
You need to include the plugin name: public $helpers = array('TinyMce.TinyMce', 'Html', 'Form'); On Sat, Jul 7, 2012 at 1:51 PM, David Lozzi da...@lozzi.net wrote: Hi There, I've downloaded and installed the TinyMCE plug in for CakePHP. Briefly, my install went like: put files into

Extending the Form-Input

2012-07-07 Thread David Lozzi
Hi There, I am trying to create my own input so I can use some of my own custom controls, i.e. a date picker. I've got this in my MyFormHelper.php. class MyFormHelper extends Helper{ public function myInput($fieldName, $options = array()) { $this-setEntity($fieldName); and the rest of the

Re: TinyMCE for CakePHP help

2012-07-07 Thread David Lozzi
Thanks, that seem to move me one step closer. Now I get error Create the class *TinyMceHelper* below in file: C:\xampp\htdocs\insight\app\Plugin\TinyMCE\View\Helper\TinyMceHelper.php When I look in the plugin folder, I see the path TinyMCE\views\helpers\tin_mce.php. I renamed that path to

Re: TinyMCE for CakePHP help

2012-07-07 Thread Sam Sherlock
Use the 2.0 branch. - S On 7 Jul 2012 20:41, David Lozzi da...@lozzi.net wrote: Thanks, that seem to move me one step closer. Now I get error Create the class *TinyMceHelper* below in file: C:\xampp\htdocs\insight\app\Plugin\TinyMCE\View\Helper\TinyMceHelper.php When I look in the plugin

Re: TinyMCE for CakePHP help

2012-07-07 Thread David Lozzi
This plugin works better, didn't have to rename anything. However still no editor. I did have to add jQuery, as it kept yelling at me to add it first. Thanks-David On Saturday, July 7, 2012 3:47:54 PM UTC-4, sams wrote: Use the 2.0 branch. - S On 7 Jul 2012 20:41, David Lozzi

Re: TinyMCE for CakePHP help

2012-07-07 Thread David Lozzi
Got it working!! Thank you!! Added $this-TinyMCE-editor(array('theme' = 'advanced', 'mode' = 'textareas')); to my view On Saturday, July 7, 2012 4:59:38 PM UTC-4, David Lozzi wrote: This plugin works better, didn't have to rename anything. However still no editor. I did have to add

Pages and Auth

2012-07-07 Thread David Lozzi
Hi there, I'm new to CakePHP, and falling in love it with. A question on how this all works. I have setup a route for admin, so domain/admin/news, and domain/admin/users work. I have added authentication using the CakePHP tutorial, but it's added to a single controller, my users. I want it

No cases in url parameters ?

2012-07-07 Thread JonStark
Hi ! I have an app where user profiles can be found thanks to their username or hash as parameter : public function view($username) { $user = $this-User-find('first', array( 'conditions' = array( or = array( 'User.hash' = $username,

How to load all fixture in CakeTestCase ?

2012-07-07 Thread Điển vũ
Do it end up $fixtures = array('User, 'Image', all model); Because all models relate to others model. When you have a new model then all test will fail because new model relate with a exist model. How to solve this problem, i want a way to load all fixtures ? My solve , I created abstract

Re: 3.0: a peek into CakePHP's future

2012-07-07 Thread j0n4s.h4rtm...@googlemail.com
On Saturday, 7 July 2012 11:35:08 UTC+2, tigr wrote: No, that is not nice. The strength of the CakePHP design is in being very straightforward when it comes to working with the data. I have seen other frameworks and I think that object-oriented ways are not suitable for working with