Re: display by categories from bootstrap

2012-11-08 Thread Chris
opps,... db blogs, field categories getting numbers from bootstrap on 
categories select:  

On Thursday, November 8, 2012 5:00:41 PM UTC-8, Chris wrote:
>
> hi cricket,  thank you for your response,... ok this is what I have 
> now,... 
> in bootstrap: 
>  Configure::write('Blog.blog_category', array('select categry', 
> 'realestate', 'autos', 'appliances', 'antique')); 
> which gives me categories in a url: my_site.com/blogs/category/autos 
>
> and the blogs db I have field categories array: (I have pulled it by debug)
>
> Array
> (
> [0] => select categry
> [1] => realestate
> [2] => autos
> [3] => appliances
> [4] => antique
> )
>
>
> now I want to display blogs for that categories
>
>   function category($id = null)
>   {
> $category = $id;
>
> $cat_id = Configure::read('Blog.blog_category');
>
> $cat = $this->Blog->find('list', array('conditions' => 
> array('Blog.categories' => 'category')));
>
>
> debug($cat_id);
>
> debug($cat); 
>
> and no response on debug $cat,... 
>
>
>
> On Thursday, November 8, 2012 3:29:56 PM UTC-8, cricket wrote:
>>
>> I don't understand quite what you're trying to do (what is 
>> array_search for?) but there's a typo: 'select categry' 
>>
>> Instead of hard-coding your categories, why not just get them from the 
>> DB? You can always write the list to cache and update it whenever the 
>> categories change. 
>>
>> On Thu, Nov 8, 2012 at 4:20 PM, Chris  wrote: 
>> > hi guys,... 
>> > I have a problem of displaying blogs by categories,... can someone help 
>> me 
>> > please,... 
>> > I'm in cake 1.3 
>> > 
>> > have a categories setup in db from bootstrap: 
>> >  Configure::write('Blog.blog_category', array('select categry', 
>> > 'realestate', 'autos', 'appliances', 'antique')); // etc,... 
>> > 
>> > I want to display blogs by categories, and I got to the point of 
>> reading 
>> > category in URL,... but can not display blogs by categories,... here is 
>> my 
>> > controller: 
>> > 
>> >   function category($id = null) 
>> >   { 
>> > $category = $id; 
>> > 
>> > $conditions = array(array_search('category', 
>> > Configure::read('Blog.blog_category') )); 
>> > 
>> > debug($conditions); 
>> > 
>> >   $scope = array('Blog.id' => $conditions); 
>> > 
>> >   $blogs = $this->paginate('Blog', $scope); 
>> > 
>> >   $this->set('blogs', $blogs); 
>> > 
>> >   } 
>> > on debug conditions I'm getting 
>> > 
>> > Array 
>> > ( 
>> > [0] => 
>> > ) 
>> > 
>> > 
>> > thank you in advance 
>> > 
>> > -- 
>> > Like Us on FaceBook https://www.facebook.com/CakePHP 
>> > Find us on Twitter http://twitter.com/CakePHP 
>> > 
>> > --- 
>> > You received this message because you are subscribed to the Google 
>> Groups 
>> > "CakePHP" group. 
>> > To post to this group, send email to cake...@googlegroups.com. 
>> > To unsubscribe from this group, send email to 
>> > cake-php+u...@googlegroups.com. 
>> > Visit this group at http://groups.google.com/group/cake-php?hl=en. 
>> > 
>> > 
>>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: display by categories from bootstrap

2012-11-08 Thread Chris
hi cricket,  thank you for your response,... ok this is what I have now,... 
in bootstrap: 
 Configure::write('Blog.blog_category', array('select categry', 
'realestate', 'autos', 'appliances', 'antique')); 
which gives me categories in a url: my_site.com/blogs/category/autos 

and the blogs db I have field categories array: (I have pulled it by debug)

Array
(
[0] => select categry
[1] => realestate
[2] => autos
[3] => appliances
[4] => antique
)


now I want to display blogs for that categories

  function category($id = null)
  {
$category = $id;

$cat_id = Configure::read('Blog.blog_category');

$cat = $this->Blog->find('list', array('conditions' => 
array('Blog.categories' => 'category')));


debug($cat_id);

debug($cat); 

and no response on debug $cat,... 



On Thursday, November 8, 2012 3:29:56 PM UTC-8, cricket wrote:
>
> I don't understand quite what you're trying to do (what is 
> array_search for?) but there's a typo: 'select categry' 
>
> Instead of hard-coding your categories, why not just get them from the 
> DB? You can always write the list to cache and update it whenever the 
> categories change. 
>
> On Thu, Nov 8, 2012 at 4:20 PM, Chris > 
> wrote: 
> > hi guys,... 
> > I have a problem of displaying blogs by categories,... can someone help 
> me 
> > please,... 
> > I'm in cake 1.3 
> > 
> > have a categories setup in db from bootstrap: 
> >  Configure::write('Blog.blog_category', array('select categry', 
> > 'realestate', 'autos', 'appliances', 'antique')); // etc,... 
> > 
> > I want to display blogs by categories, and I got to the point of reading 
> > category in URL,... but can not display blogs by categories,... here is 
> my 
> > controller: 
> > 
> >   function category($id = null) 
> >   { 
> > $category = $id; 
> > 
> > $conditions = array(array_search('category', 
> > Configure::read('Blog.blog_category') )); 
> > 
> > debug($conditions); 
> > 
> >   $scope = array('Blog.id' => $conditions); 
> > 
> >   $blogs = $this->paginate('Blog', $scope); 
> > 
> >   $this->set('blogs', $blogs); 
> > 
> >   } 
> > on debug conditions I'm getting 
> > 
> > Array 
> > ( 
> > [0] => 
> > ) 
> > 
> > 
> > thank you in advance 
> > 
> > -- 
> > Like Us on FaceBook https://www.facebook.com/CakePHP 
> > Find us on Twitter http://twitter.com/CakePHP 
> > 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "CakePHP" group. 
> > To post to this group, send email to cake...@googlegroups.com. 
>
> > To unsubscribe from this group, send email to 
> > cake-php+u...@googlegroups.com . 
> > Visit this group at http://groups.google.com/group/cake-php?hl=en. 
> > 
> > 
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: form password default value

2012-11-08 Thread euromark
and if possible use an alias for your form field "password" like "pwd" as 
well as some kind of "pwd_repeat" field to confirm the password (since you 
cant see it very often it is mistyped rendering the registration invalid 
then by accident):
http://www.dereuromark.de/2011/08/25/working-with-passwords-in-cakephp/


Am Freitag, 9. November 2012 00:33:18 UTC+1 schrieb cricket:
>
> See here: 
>
> http://lecterror.com/articles/view/cakephp-password-hash-issue 
>
> On Thu, Nov 8, 2012 at 4:26 PM, and > 
> wrote: 
> > Hi all, 
> > I have a form for registration and i have some rules that the field must 
> > respect.If i insert the wrong email format,for example,the form says 
> that it 
> > is incorrect.The thing that happen is that the password field is filled 
> with 
> > md5 password.I have the following view: 
> > 
> > Please fill out the form below to register an account. 
> >  > echo $form->create('User',array('action'=>'register'));?> 
> > 
> >  > echo $form->input('first_name'); 
> > echo $form->input('last_name'); 
> > echo 
> > 
> $form->input('username',array('after'=>$form->error('username_unique','Username
>  
>
> > esistente.'))); 
> > echo 
> $form->input('email',array('after'=>$form->error('email_unique','Email 
> > esistente'))); 
> > echo $form->input('password'); 
> > ?> 
> > end('Register');?> 
> > 
> > In the file attached you can see a password that i have nerver 
> > inserted.Could you hel me? 
> > 
> > -- 
> > Like Us on FaceBook https://www.facebook.com/CakePHP 
> > Find us on Twitter http://twitter.com/CakePHP 
> > 
> > --- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "CakePHP" group. 
> > To post to this group, send email to cake...@googlegroups.com. 
>
> > To unsubscribe from this group, send email to 
> > cake-php+u...@googlegroups.com . 
> > Visit this group at http://groups.google.com/group/cake-php?hl=en. 
> > 
> > 
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: form password default value

2012-11-08 Thread lowpass
See here:

http://lecterror.com/articles/view/cakephp-password-hash-issue

On Thu, Nov 8, 2012 at 4:26 PM, and  wrote:
> Hi all,
> I have a form for registration and i have some rules that the field must
> respect.If i insert the wrong email format,for example,the form says that it
> is incorrect.The thing that happen is that the password field is filled with
> md5 password.I have the following view:
>
> Please fill out the form below to register an account.
>  echo $form->create('User',array('action'=>'register'));?>
>
>  echo $form->input('first_name');
> echo $form->input('last_name');
> echo
> $form->input('username',array('after'=>$form->error('username_unique','Username
> esistente.')));
> echo $form->input('email',array('after'=>$form->error('email_unique','Email
> esistente')));
> echo $form->input('password');
> ?>
> end('Register');?>
>
> In the file attached you can see a password that i have nerver
> inserted.Could you hel me?
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: display by categories from bootstrap

2012-11-08 Thread lowpass
I don't understand quite what you're trying to do (what is
array_search for?) but there's a typo: 'select categry'

Instead of hard-coding your categories, why not just get them from the
DB? You can always write the list to cache and update it whenever the
categories change.

On Thu, Nov 8, 2012 at 4:20 PM, Chris  wrote:
> hi guys,...
> I have a problem of displaying blogs by categories,... can someone help me
> please,...
> I'm in cake 1.3
>
> have a categories setup in db from bootstrap:
>  Configure::write('Blog.blog_category', array('select categry',
> 'realestate', 'autos', 'appliances', 'antique')); // etc,...
>
> I want to display blogs by categories, and I got to the point of reading
> category in URL,... but can not display blogs by categories,... here is my
> controller:
>
>   function category($id = null)
>   {
> $category = $id;
>
> $conditions = array(array_search('category',
> Configure::read('Blog.blog_category') ));
>
> debug($conditions);
>
>   $scope = array('Blog.id' => $conditions);
>
>   $blogs = $this->paginate('Blog', $scope);
>
>   $this->set('blogs', $blogs);
>
>   }
> on debug conditions I'm getting
>
> Array
> (
> [0] =>
> )
>
>
> thank you in advance
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




form password default value

2012-11-08 Thread and
Hi all,
I have a form for registration and i have some rules that the field must 
respect.If i insert the wrong email format,for example,the form says that 
it is incorrect.The thing that happen is that the password field is filled 
with md5 password.I have the following view:

Please fill out the form below to register an account.
create('User',array('action'=>'register'));?>

input('first_name');
echo $form->input('last_name');
echo 
$form->input('username',array('after'=>$form->error('username_unique','Username 
esistente.')));
echo $form->input('email',array('after'=>$form->error('email_unique','Email 
esistente')));
echo $form->input('password');
?>
end('Register');?>

In the file attached you can see a password that i have nerver 
inserted.Could you hel me?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.


<>

display by categories from bootstrap

2012-11-08 Thread Chris
hi guys,... 
I have a problem of displaying blogs by categories,... can someone help me 
please,... 
I'm in cake 1.3 

have a categories setup in db from bootstrap: 
 Configure::write('Blog.blog_category', array('select categry', 
'realestate', 'autos', 'appliances', 'antique')); // etc,... 

I want to display blogs by categories, and I got to the point of reading 
category in URL,... but can not display blogs by categories,... here is my 
controller: 

  function category($id = null)
  {
$category = $id;

$conditions = array(array_search('category', 
Configure::read('Blog.blog_category') ));

debug($conditions);

  $scope = array('Blog.id' => $conditions);

  $blogs = $this->paginate('Blog', $scope);

  $this->set('blogs', $blogs);

  }
on debug conditions I'm getting 

Array
(
[0] => 
)


thank you in advance 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Problem with "cake i18n extract"

2012-11-08 Thread AD7six
Looks like you have a file named Model/User.php - which doesn't contain a 
class named User

AD

On Tuesday, 6 November 2012 11:44:32 UTC+1, Tommaso wrote:
>
> Hello, 
>
> I'm trying to use the "cake i18n extract" shell in cakephp 2.2.2 and 
> 2.2.3 but I've got a problem. 
>
> After answered the questions the process starts with the message: 
>
> = 
> Extracting... 
> --- 
> Paths: 
>/Users/tom/wwwroot/cakephp/app/ 
> Output Directory: /Users/tom/wwwroot/cakephp/app/Locale/ 
> --- 
> Processing /Users/tom/wwwroot/cakephp/app/index.php... 
>  (Processing many files) ... 
> Processing /Users/max/wwwroot/cakephp/app/webroot/test.php... 
> Error: Class User does not exist 
> #0 /Users/tom/wwwroot/cakephp/lib/Cake/Console/Command/Task/ 
> ExtractTask.php(446): ReflectionClass->__construct('User') 
> #1 /Users/tom/wwwroot/cakephp/lib/Cake/Console/Command/Task/ 
> ExtractTask.php(281): ExtractTask->_extractValidationMessages() 
> #2 /Users/tom/wwwroot/cakephp/lib/Cake/Console/Command/Task/ 
> ExtractTask.php(232): ExtractTask->_extract() 
> #3 /Users/tom/wwwroot/cakephp/lib/Cake/Console/Shell.php(390): 
> ExtractTask->execute() 
> #4 /Users/tom/wwwroot/cakephp/lib/Cake/Console/Shell.php(387): Shell- 
> >runCommand('execute', Array) 
> #5 /Users/tom/wwwroot/cakephp/lib/Cake/Console/ 
> ShellDispatcher.php(201): Shell->runCommand('extract', Array) 
> #6 /Users/tom/wwwroot/cakephp/lib/Cake/Console/ 
> ShellDispatcher.php(69): ShellDispatcher->dispatch() 
> #7 /Users/tom/wwwroot/cakephp/app/Console/cake.php(33): 
> ShellDispatcher::run(Array) 
> #8 {main} 
> = 
>
> So the process ends without extraction because of the "Error: Class 
> User does not exist" error. 
>
> If I try to use the tool in this form: 
>
> cake i18n extract --plugin Users 
> (so extracting strings from Users plugin) 
> it works perfectly 
>
> Any hint? 
>
> Thanks in advance 
> Tom 
>
>
>
>
>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Place a verification file http://example.com/verificationfile.html

2012-11-08 Thread Justus Kersey
Yep, thats worked. Thank You!

On Thursday, November 8, 2012 9:12:49 AM UTC-8, Alex Bovey wrote:
>
> Just put it in the app/webroot folder
>
> On Thu, Nov 8, 2012 at 1:34 AM, Justus Kersey 
> 
> > wrote:
>
>> To verify my website on pinterest, I need to place an html file in my 
>> root.
>>
>> This is the message I keep getting:
>>
>> *Your server responded with a status code of 404 (file not found). We 
>> tried to visit the file at http://wallshops.com/pinterest-.html.*
>>
>> Where should I place the file, and what do I need to do so that file can 
>> be seen by pinterest???
>>
>> -- 
>> Like Us on FaceBook https://www.facebook.com/CakePHP
>> Find us on Twitter http://twitter.com/CakePHP
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "CakePHP" group.
>> To post to this group, send email to cake...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to 
>> cake-php+u...@googlegroups.com .
>> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>>  
>>  
>>
>
>
>
> -- 
> Alex Bovey
> Web Developer | Alex Bovey Consultancy Ltd
> Registered in England & Wales no. 6471391 | VAT no. 934 8959 65
> al...@bovey.co.uk  | t 0844 567 8995 | m 07828 649386 | f 
> 0870 288 9533
> PHP | CakePHP | MySQL | jQuery | HTML5 | CSS3 | Drupal | Wordpress | 
> Hosting
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Place a verification file http://example.com/verificationfile.html

2012-11-08 Thread Alex Bovey
Just put it in the app/webroot folder

On Thu, Nov 8, 2012 at 1:34 AM, Justus Kersey wrote:

> To verify my website on pinterest, I need to place an html file in my root.
>
> This is the message I keep getting:
>
> *Your server responded with a status code of 404 (file not found). We
> tried to visit the file at http://wallshops.com/pinterest-.html.*
>
> Where should I place the file, and what do I need to do so that file can
> be seen by pinterest???
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
Alex Bovey
Web Developer | Alex Bovey Consultancy Ltd
Registered in England & Wales no. 6471391 | VAT no. 934 8959 65
a...@bovey.co.uk | t 0844 567 8995 | m 07828 649386 | f 0870 288 9533
PHP | CakePHP | MySQL | jQuery | HTML5 | CSS3 | Drupal | Wordpress | Hosting

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Order by field containing aggregate function result (MIN)

2012-11-08 Thread Ivan Rimac
try like this

$this->paginate = array(
   'conditions' => array('Game.time !=' => NULL,  'Game.visible' =>
1, 'Game.end_time !=' => NULL, 'Game.moves !=' => NULL),
'group' => array('Game.uid'),
'order' => array('Game.time' => 'DESC'),
'limit' => 3
);






On Wed, Nov 7, 2012 at 11:01 PM, Ivan Švaljek wrote:

> Hi, I'm having trouble with sorting during pagination. I'm trying to list
> users with lowest solvetime, but order key in paginate method doesn't seem
> to like order field if it's a result of aggregate function like MIN().
>
> This is my action:
>
> public function index() {
> $this->paginate = array(
> 'fields' => array('*, MIN(Game.time AS mintime'),
> 'conditions' => array('Game.time IS NOT NULL AND Game.visible
> = 1 AND Game.end_time IS NOT NULL AND Game.moves IS NOT NULL'),
> 'order' => array('mintime' => 'ASC'),
> 'group' => array('Game.uid'),
> 'limit' => 3
> );
> $games = $this->paginate('Game');
>
> $this->set('games', $games);
> }
>
> ...it doesn't even add an ORDER BY clause in the debug. If some other
> field is set as order argument it works.
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
>



-- 
*Ivan Rimac***
mail: ivn...@gmail.com
*tel: +385 95 555 99 66*
*http://ivanrimac.com*

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: New CakePHP Queue Plugin, Comments welcome

2012-11-08 Thread Panutat Khunachak
the plugin has been working awesome.. but sometimes randomly my task will 
get a job and connection to database via models will fail and i get 

2006: MySQL server has gone away

anyone else experience this and have a fix/workaround?

thanks!

On Tuesday, June 9, 2009 8:27:56 AM UTC-4, David Persson wrote:
>
> Hi MGriesbach, 
>
> I like the idea of having a simple-to-setup queue system. This way 
> it's much more easy to get into the queuing and parallel/deferred 
> processing topic. Relying on the database for doing all the locking is 
> also ok in regards that it should be easy to setup, requiring no 
> additional daemons to run as (most) users are already using a 
> database. 
>
> As you know I've created a queue plugin (which uses beanstalkd) a few 
> months ago, too. It's still in a very early state and basically just a 
> first implementation. 
>
> What I thought is if it would be possible to create a cakephp plugin 
> abstracting all the different queue system's (beanstalkd, kestrel, 
> dropr, database, ...) specialities. While this could be possible by 
> creating a data source (analog to the core DboSource) or something 
> else, I'm unsure if this really would make sense. 
>
> The positive aspects of this approach are: 
> 1. You only have to learn how this one data source works 
> 2. One could change the underlying queue system (i.e. when moving from 
> development env to production) 
>
> Another way would be to have the plugin contain several data sources 
> for the different systems so that users would've to learn how to use 
> each data source. 
>
> Anyway it would be great having a plugin promoting and facilitating 
> parallel/deferred processing, combining all different approaches to 
> queuing. 
>
> -David 
>
> My Queue Plugin: https://github.com/davidpersson/queue 
> Beanstalkd: http://github.com/kr/beanstalkd/tree/master 
> Kestrel: http://github.com/robey/kestrel/tree/master 
> Dropr: https://www.dropr.org/ 
>
>
> On 9 Jun., 13:37, MGriesbach  wrote: 
> > Hi 
> > 
> > I'm currently implementing a Plugin for CakePHP, which enables a 
> > developer to Queue up any kind of Script execution (for example 
> > Sending Emails, uploads/downloads etc.) and would like to ask for 
> > feedback. 
> > 
> > The Plugin is aimed to be a simple to setup, simple to use alternative 
> > to systems like Gearman or dropr, while only implementing very basic 
> > features (no network transport layer for instance). 
> > 
> > Overall it works very well at the moment, and I would like to hear 
> > some feedback mostly to see if there is any interest in this tool, and 
> > of course suggestions about the implementation. 
> > 
> > The code can be found athttp://github.com/MSeven/cakephp_queue/ 
> > 
> > Thanks in advance. ;)

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Place a verification file http://example.com/verificationfile.html

2012-11-08 Thread Justus Kersey
To verify my website on pinterest, I need to place an html file in my root.

This is the message I keep getting:

*Your server responded with a status code of 404 (file not found). We tried 
to visit the file at http://wallshops.com/pinterest-.html.*

Where should I place the file, and what do I need to do so that file can be 
seen by pinterest???

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Order by field containing aggregate function result (MIN)

2012-11-08 Thread Ivan Švaljek
Hi, I'm having trouble with sorting during pagination. I'm trying to list 
users with lowest solvetime, but order key in paginate method doesn't seem 
to like order field if it's a result of aggregate function like MIN().

This is my action:

public function index() {
$this->paginate = array(
'fields' => array('*, MIN(Game.time AS mintime'),
'conditions' => array('Game.time IS NOT NULL AND Game.visible = 
1 AND Game.end_time IS NOT NULL AND Game.moves IS NOT NULL'),
'order' => array('mintime' => 'ASC'),
'group' => array('Game.uid'),
'limit' => 3
);
$games = $this->paginate('Game');

$this->set('games', $games); 
}

...it doesn't even add an ORDER BY clause in the debug. If some other field 
is set as order argument it works.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




How to place a verification file >>>> http://wallshops.com/verify.html

2012-11-08 Thread Justus Kersey
To verify my website on pinterest, I need to place an html file in my root.

This is the message I keep getting:

*Your server responded with a status code of 404 (file not found). We tried 
to visit the file at http://wallshops.com/pinterest-.html.*

Where should I place the file, and what do I need to do so that file can be 
seen by pinterest???

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Software Development Lead Opportunity in Atlanta!

2012-11-08 Thread Liz Czuper
 

Our client is looking for a *Software Development Lead *who has a passion 
for architecting and building great software.  Our client has exciting, 
hard problems to solve and need a proven leader to help us to do. 
 Applicants should have the background of managing small development teams, 
complete code reviews and code themselves.  Any Architecture experience 
would be a nice plus, along with Marketing Industry/ Marketing Software 
experience.  This Team Lead will need to be a self-starter with the 
motivation and enthusiasm to contribute in a creative company.

 

*Responsibilities of the role include: *

* Designing and developing rapid prototype concepts 

* Writing server-side code for web-based applications 

* Maintaining and extending our client-facing SaaS offering 

* Working closely and providing leadership to product strategy team 

* Troubleshooting and resolving application issues identified by users 

 

*Requirements: *

* 5+ years’ experience as a software developer using an object-oriented 
dynamic interpreted language (Ruby, Python, *PHP*) 

* Solid background in a web framework / MVC (e.g. Rails, Django, Cake, 
CodeIgniter) 

* Javascript and jQuery 

* Experience both leveraging and implementing RESTful web services 

* Database design and architecture 

* Team player but able to work independently with minimal supervision 

* *

*Nice to have: *

* Implementation of feature metrics and cohort analysis 

* Knowledge of Git version control system 

* Hands-on experience with data integration/ETL 

* Comfort on CentOS Linux, Apache, and MySQL stack 

* Open source contributions and interesting personal projects 

* *

*About the company: *

Our client offers competitive salary, the best equipment (e.g. MacBook Air, 
big screens, etc.) and training. It is also a unique growth opportunity to 
become a key influencer on a small team. This is a full-time on-site 
position in Buckhead, Georgia.
 
Please send resumes to lczu...@corus360.com!
 
Thank you,
Liz Czuper
Manager of Recruiting
Corus360
www.corus360.com

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Acl::check() the $action parameter and the default vals , what does that mean?

2012-11-08 Thread alaxos

Some explanation here: 
http://stackoverflow.com/questions/9063617/cakephp-acl-action-mode-vs-crud-mode



Le jeudi 8 novembre 2012 03:41:53 UTC+1, polutan polution at all a écrit :
>
> anybody? Please help me
>
>
> 2012/11/5 polutan polution at all >
>
>> Hello folks :)
>> I don't understand what does $action param and its default values mean? 
>> Because i can directly write $this->Acl->check("warriors/Aragorn", 
>> "ControllerNames/myMethodName") then it works, i don't need to supply 
>> $action param.
>>
>> Then if i do something like at the manual $this->Acl->check(
>> 'warriors/Aragorn', 'Weapons', 'create'); which method in my 
>> WeaponsController class categorized as 'create' ? .
>> Then suppose i have reloadAmmunition() method in my WeaponsController 
>> class. So what reloadAmmunition() is? a create or read or update or a 
>> delete? Please somebody help me, i need your enlightenment.
>>
>> Thank You :)
>>
>> -- 
>> Like Us on FaceBook https://www.facebook.com/CakePHP
>> Find us on Twitter http://twitter.com/CakePHP
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "CakePHP" group.
>> To post to this group, send email to cake...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to 
>> cake-php+u...@googlegroups.com .
>> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>>  
>>  
>>
>
>
>
> -- 
> *Coklat Stroberi -- Web Dev Training Centre*
> http://www.facebook.com/pages/Coklat-Stroberi/249514251728226  (info 
> lebih lanjut)
> http://coklatstroberi.net 
> Jl. Raya Padang Luwih (Dalung) No.141 - Telp. (0361) 9006118 atau 
> 08174128301 - Badung, Bali. Sebelah timur traffic light pertigaan 
> perumahan dalung permai.
>
>
> 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Installing an existing site locally on MAMP

2012-11-08 Thread euromark
did you restart MAMP?
the help offered by Michael Connors is complete and correct. if you follow 
it you should be fine


Am Donnerstag, 8. November 2012 11:24:24 UTC+1 schrieb Neil Berrow:
>
> When I added http://bundle.local it kept going to my root folder 
> /applications/mamp/htdocs, I have other sites set there.
>
> Do you think pick somewhere else on my machine?
>
> Thanks for your help!
>
> On Thursday, November 8, 2012 11:36:16 AM UTC+2, euromark wrote:
>>
>> why are you then still trying to access it via localhost?
>>
>> the url would then be `http://bundle.local/`  - 
>> which then would correctly call the webroot index.php and dispatch 
>> accordingly
>>
>>
>> Am Donnerstag, 8. November 2012 07:19:44 UTC+1 schrieb Neil Berrow:
>>>
>>> I've gotten this far (see image), here's my conf:
>>>
>>> 
>>> DocumentRoot "/Applications/MAMP/htdocs/bundle/app/webroot"
>>> ServerName bundle.local
>>> RewriteEngine on
>>> 
>>> AllowOverride All
>>> Order deny,allow
>>> Allow from All
>>> 
>>> 
>>>
>>> Here's my url:
>>> http://localhost:/bundle
>>>
>>> Am I on the right track?
>>>
>>> Cheers!!
>>>
>>> On Thursday, November 1, 2012 4:53:13 PM UTC+2, Neil Berrow wrote:

 Followed these directions but it's not working, it may be the .htaccess 
 file, can you upload a copy so I can see if it is that.

 Thanks for your help!
 Neil

 On Thursday, October 4, 2012 7:31:39 AM UTC+2, Michael Connors wrote:
>
> Make a directory somewhere on your drive, say its 
> /user/me/projects/site. Download and unzip cakephp and put its contents 
> in 
> that folder site.
>
> open MAMP/conf/apache/httpd.conf
>
> add a virtual host at the bottom
>
> 
> DocumentRoot "*/user/me/projects/site/app/webroot*"
> ServerName *mysite.local*
> RewriteEngine on
> 
> AllowOverride All
> Order deny,allow
> Allow from All
> 
> 
>
> Open a terminal and edit host file
>
> sudo vi /etc/hosts
>
> add the line 
> *127.0.0.1 *  *mysite.local*
>
> Restart MAMP. You should be able to open a browser and go to *
> http://mysite.local *and use that as a working directory. From there 
> go through the instructions if there are errors, you will most likely 
> have 
> to add .htaccess files. I also highly recommend get a git account 
> somewhere 
> and commit your files to git.
>
>
>
> On Wednesday, October 3, 2012 5:07:03 AM UTC-4, Neil Berrow wrote:
>>
>> Hi
>>
>> I've searched and searched but all I can find is how to install a 
>> Cake environment from scratch locally on a mac.
>>
>> I have an existing site which my developer built for me months ago, 
>> I'm no Cakephp programmer but I have basic php skills.
>>
>> Can anyone suggest where I can get info from or if they've been in 
>> the same boat?
>>
>> Any help will be much appreciated!
>>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Installing an existing site locally on MAMP

2012-11-08 Thread Neil Berrow
 

When I added http://bundle.local it kept going to my root folder 
/applications/mamp/htdocs, I have other sites set there.

Do you think pick somewhere else on my machine?

Thanks for your help!

On Thursday, November 8, 2012 11:36:16 AM UTC+2, euromark wrote:
>
> why are you then still trying to access it via localhost?
>
> the url would then be `http://bundle.local/`  - 
> which then would correctly call the webroot index.php and dispatch 
> accordingly
>
>
> Am Donnerstag, 8. November 2012 07:19:44 UTC+1 schrieb Neil Berrow:
>>
>> I've gotten this far (see image), here's my conf:
>>
>> 
>> DocumentRoot "/Applications/MAMP/htdocs/bundle/app/webroot"
>> ServerName bundle.local
>> RewriteEngine on
>> 
>> AllowOverride All
>> Order deny,allow
>> Allow from All
>> 
>> 
>>
>> Here's my url:
>> http://localhost:/bundle
>>
>> Am I on the right track?
>>
>> Cheers!!
>>
>> On Thursday, November 1, 2012 4:53:13 PM UTC+2, Neil Berrow wrote:
>>>
>>> Followed these directions but it's not working, it may be the .htaccess 
>>> file, can you upload a copy so I can see if it is that.
>>>
>>> Thanks for your help!
>>> Neil
>>>
>>> On Thursday, October 4, 2012 7:31:39 AM UTC+2, Michael Connors wrote:

 Make a directory somewhere on your drive, say its 
 /user/me/projects/site. Download and unzip cakephp and put its contents in 
 that folder site.

 open MAMP/conf/apache/httpd.conf

 add a virtual host at the bottom

 
 DocumentRoot "*/user/me/projects/site/app/webroot*"
 ServerName *mysite.local*
 RewriteEngine on
 
 AllowOverride All
 Order deny,allow
 Allow from All
 
 

 Open a terminal and edit host file

 sudo vi /etc/hosts

 add the line 
 *127.0.0.1 *  *mysite.local*

 Restart MAMP. You should be able to open a browser and go to *
 http://mysite.local *and use that as a working directory. From there 
 go through the instructions if there are errors, you will most likely have 
 to add .htaccess files. I also highly recommend get a git account 
 somewhere 
 and commit your files to git.



 On Wednesday, October 3, 2012 5:07:03 AM UTC-4, Neil Berrow wrote:
>
> Hi
>
> I've searched and searched but all I can find is how to install a Cake 
> environment from scratch locally on a mac.
>
> I have an existing site which my developer built for me months ago, 
> I'm no Cakephp programmer but I have basic php skills.
>
> Can anyone suggest where I can get info from or if they've been in the 
> same boat?
>
> Any help will be much appreciated!
>


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Installing an existing site locally on MAMP

2012-11-08 Thread euromark
why are you then still trying to access it via localhost?

the url would then be `http://bundle.local/` - which then would correctly 
call the webroot index.php and dispatch accordingly


Am Donnerstag, 8. November 2012 07:19:44 UTC+1 schrieb Neil Berrow:
>
> I've gotten this far (see image), here's my conf:
>
> 
> DocumentRoot "/Applications/MAMP/htdocs/bundle/app/webroot"
> ServerName bundle.local
> RewriteEngine on
> 
> AllowOverride All
> Order deny,allow
> Allow from All
> 
> 
>
> Here's my url:
> http://localhost:/bundle
>
> Am I on the right track?
>
> Cheers!!
>
> On Thursday, November 1, 2012 4:53:13 PM UTC+2, Neil Berrow wrote:
>>
>> Followed these directions but it's not working, it may be the .htaccess 
>> file, can you upload a copy so I can see if it is that.
>>
>> Thanks for your help!
>> Neil
>>
>> On Thursday, October 4, 2012 7:31:39 AM UTC+2, Michael Connors wrote:
>>>
>>> Make a directory somewhere on your drive, say its 
>>> /user/me/projects/site. Download and unzip cakephp and put its contents in 
>>> that folder site.
>>>
>>> open MAMP/conf/apache/httpd.conf
>>>
>>> add a virtual host at the bottom
>>>
>>> 
>>> DocumentRoot "*/user/me/projects/site/app/webroot*"
>>> ServerName *mysite.local*
>>> RewriteEngine on
>>> 
>>> AllowOverride All
>>> Order deny,allow
>>> Allow from All
>>> 
>>> 
>>>
>>> Open a terminal and edit host file
>>>
>>> sudo vi /etc/hosts
>>>
>>> add the line 
>>> *127.0.0.1 *  *mysite.local*
>>>
>>> Restart MAMP. You should be able to open a browser and go to *
>>> http://mysite.local *and use that as a working directory. From there go 
>>> through the instructions if there are errors, you will most likely have to 
>>> add .htaccess files. I also highly recommend get a git account somewhere 
>>> and commit your files to git.
>>>
>>>
>>>
>>> On Wednesday, October 3, 2012 5:07:03 AM UTC-4, Neil Berrow wrote:

 Hi

 I've searched and searched but all I can find is how to install a Cake 
 environment from scratch locally on a mac.

 I have an existing site which my developer built for me months ago, I'm 
 no Cakephp programmer but I have basic php skills.

 Can anyone suggest where I can get info from or if they've been in the 
 same boat?

 Any help will be much appreciated!

>>>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Can share common functions across different tables?

2012-11-08 Thread euromark
yes, in your app controller

so if you dont want your global AppController to be that generic, use a 
plugin and its plugin AppController.
this way you will get what you want without effecting the rest of the site.

plugin Webservice for example with WebserviceAppController (having 
add/edit/... actions) and its controllers inheriting those then.


Am Donnerstag, 8. November 2012 04:06:43 UTC+1 schrieb Sam:
>
> Dear CakePHP gurus,
>
> I am using CakePHP ver2.2.1
>
> The different tables in my database share similar functions which I am 
> using for web services. For example, the add, edit, view and delete 
> functions are similar across different tables. The only changes to be made 
> is that the table or object names are different. I want to avoid repetitive 
> code. Write once, use everywhere and not make one simple change, got to 
> change everywhere. Hope you understand what I mean. Is it possible to 
> "centralize" the similar functions like add, edit, view, delete?
>
> Thank you for your help in advance.
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Example with ajax

2012-11-08 Thread kani
www.cakephp.4uk.pluse this helper very easy

On Tuesday, November 6, 2012 1:39:32 AM UTC+8, Marco.Segura wrote:
>
> Hey, someone can help me with a simple example with ajax in cakephp
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.