All Questions

RSS

1 answer

0 votes

Asked by adeveloperguy, 5 days, 20 hours ago in Views

city list

Hi,

I have a city table and I want to display all the city list in a select html tag.

how to do that ?

I have done this in controller ...

<?php

class CitysController extends AppController {

var $helpers = array('Html', 'Form');

function index()...

1 answer

0 votes

Asked by tiberus, 6 days ago in Controllers

Downloading Files with Media View

Working on a fairly simple site and have a few static pages setup. Got a default template a few files under views/pages and a menu helper. I'm trying to add the ability to download some forms from one of the static pages. I'm about to go...

1 answer

0 votes

Asked by TheKog, 6 days, 2 hours ago in Views

How To View Multiple Tables With Pagination On A Single Page

In CakePHP 1.2 we need to have a single page with multiple tables on it each with their own pagination. For example given People and Tasks controllers, we need to put up a page (as an action from either controller or from a 3rd controller) that...

1 answer

0 votes

Asked by gishdog, 6 days, 4 hours ago in Models

Facebook style message schema/relationships

I'm trying to decide the best way to approach a facebook style message system.

Would the best way to approach it to be a Message belongsTo User (for the sender), User HABTM Message (for the recipient)

Or would it be better to have a User HABTM...

1 answer

0 votes

Asked by nickihm, 6 days, 8 hours ago in Models

how do you theme elements inside of plugins?

I have a few plugins that use elements in their views. I want to use Cake's theming capabilities to theme them. I can theme views and layouts, but not elements? or can i?

1 answer

0 votes

Asked by blacksymmetry, 6 days, 20 hours ago in Controllers

Get values from selected checkboxes into array(only really functionally solutions)

Hello, i would like to ask:

How to GET values from selected checkboxes into array?

I tried this(and many others) solutions:



<?php //echo $form->checkbox('User.id',array('value' => $value['User']['ID'],'multiple' =>  'checkbox')); ?>

But in this...

0 answers

0 votes

Asked by dimis283, 1 week, 1 day ago in Controllers

pear exprot to excel and greek characters

I create excel files via pear and the greek characters are not ok.

The db as I see has 8859-1 set and I set that at config with problem again.

What is wrong?

1 answer

0 votes

Asked by dimis283, 1 week, 1 day ago in Models

install pear excel

I am trying to install pear Spreadsheet at my cakephp vendors but I find errors with the include() of these scripts.

I am trying to set relative path but I found again errors and I do not know if it is ok.

What is the solution?

2 answers

0 votes

Asked by tibit, 1 week, 1 day ago in Views

using ajax to update a field in a form

Hi,

How can i do this, it is possible? using cakephp + ajax

I have a price field, quantity field, and total value field.

I want to update the total field value with price*quantity after i write a quantity value.

I was going to do with the...

0 answers

0 votes

Asked by dimis283, 1 week, 1 day ago in Controllers

pear export excel

I am trying to exmport an excel form a query with no success.

When from the code below I delete the foreach loop the excel is ok.What is wrong?


$result= $this->Machine->find('all', array('conditions' => $search));
          
// Creating a...
2   3   4   5   6   7   8   9   10

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.