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
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:
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
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.
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
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:
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 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
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
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
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(){
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
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
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
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
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
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
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
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
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,
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
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
22 matches
Mail list logo