All Questions

RSS

1 answer

1 vote

Asked by Alejandro, 3 days, 23 hours ago in Models

How can I set Paginator to last page?

So, How can I set Paginator to go to the last page?

I have the following code:


$paginator->options(array('update' => 'usuarios',
						  'url' => array('controller' => 'Users',
										 'action' => 'admin_index',
										 'page' => '2') //Last...

1 answer

0 votes

Asked by blacksymmetry, 4 days, 17 hours ago in Helpers

How to add different label into this form?

Hello I would like to ask, how can i to add different label into this form?



<div class="search_box">
<?php echo $form->create('Company', array('url' => array('action' => 'search'))); ?>
<?php echo $form->inputs(array( 'legend' => 'Personal...

1 answer

0 votes

Asked by zephyr7, 4 days, 17 hours ago in Models

cake doesn't display validation errors

For some reasons, when I press the button, validation errors are not shown... Could you please help me somehow?

here are my files:

users_controller.php

<?php

class UsersController extends AppController {

var $name = 'Users';

var $helpers =...

0 answers

0 votes

Asked by baskerville, 4 days, 18 hours ago in Models

Set::Combine - Sort of bug?

This is my first post to the CakePHP community, so my apologies if this sounds a bit clumsy.

I have a table films, a table countries, and they have a HABTM relationship (i.e. there is a table countries_films). Most films have one country, some...

0 answers

0 votes

Asked by deckleberryfrye, 4 days, 22 hours ago in Helpers

How can I extend the onClick event with Ajax Helper?

I'm using the Ajax helper to submit a form from a popup window. The form is being submitted properly, but I would like the submit button to also close the popup window. I can close it with a call to Popup.hide(), where Popup is a Javascript...

3 answers

0 votes

Asked by blacksymmetry, 5 days, 4 hours ago in Helpers

Import JS file to default.ctp for all views

Hello, I would like to ask, how can I import JS file in default.ctp, to be usable in all views that i use.

If i try:


echo($javascript->link("myscrip.js")); 

Get error call to a member function link on a non-object cakephp

In appcontroller i have...

1 answer

0 votes

Asked by bottomless, 5 days, 7 hours ago in Models

Complex find condition query encapsulating values in single quotes

Hi,

I'm moving a mysql query from 1.1 to 1.3-RC1


 $conditions = array("OR" => array(
      'Item.expiration'       => 0,
      'Item.expiration >'     => "NOW()"
    )
 );
 $params = array(
   'conditions'    => $conditions
);
 $items =...

2 answers

0 votes

Asked by blacksymmetry, 5 days, 8 hours ago in Models

Jquery in Cake, calling method

Hello, i would like to ask, what is simplest way to use JQuery in cake?

I would like use JQuery in sense, send form data to any contoller and function and put result into DIV on page without page refresh.

Something like:


<script...

2 answers

0 votes

Asked by cshinnimin, 5 days, 11 hours ago in Components

Reverse Hash a Password

Hi everyone,

I can't seem to find information on Google or anywhere about how you reverse hash a password in CakePHP. I am making a "forgotten password" function so that users can enter their email and have their login info sent to them. The...

2 answers

0 votes

Asked by imasubmarine, 5 days, 18 hours ago in Views

is there a way to display mysql SET datatype as multiple checkboxes on views ?


CREATE TABLE set_test(
    id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
    myset SET('Travel','Sports','Dancing','Fine Dining')
  );

Form Helper automagic renders it as textarea (cakephp 1.2.6).

Is there a way to render myset as multiple...

1   2   3   4   5   6   7   8   9

How does CakePHP Questions work?

CakePHP Questions is easy to use: Register and login or directly login using OpenID and just ask your question!

After you ask your question you just need to wait until you have got some answers and pick the correct answer.

Other users might help you by finding the right answer by voting and giving comments.