Did it using:
$keys = array();
$values = array();
foreach($question['Choice'] as $choice) {
array_push($keys, $choice['id']);
array_push($values, $choice['choice']);
}
$choices = array_combine($keys, $values);
The above code is located inside the view... would the controller be a
more ap
@jeremy
I'll kick it around a bit more sometime later today. I tried a few
variations of your suggestion and although I think it *might* work as well,
I only created a whole different set of issues. I don't have the patience
for it right now :)
On a side note, here are a couple really easy ones f
Try using Containable, it may help you:
http://book.cakephp.org/view/1323/Containable
Try doing something like: $this->Category->find('all', array('contain' =>
array('Post' => array('order' => 'CategoriesPost.postorder';
On Sat, May 15, 2010 at 1:25 PM, ashok.b wrote:
> If I add a order col
I second this. though i found the github code for code_check and
autotest. i think having 1 for Php_codesniffer would be a very good
idea to increase cake usage as well.
Braindead wrote:
> Hi Achilleas,
>
> you are right that CodeSniffer validates your code to make sure that
> it follows certain c
If I add a order column in Posts, then I won't be able to order the
posts per category... What ever order I set to a post will be
applicable across all categories that post is linked to... I'm looking
for per category ordering of posts.
On May 15, 8:55 am, Bogdan Bursuc wrote:
> Add in your Post
Didn't work :(
More over, $this->Post->find('all') starts throwing an SQL error
'CategoriesPost.postorder' not found...
On May 15, 8:55 am, Bogdan Bursuc wrote:
> Add in your Post Model
>
> class Post extends AppModel {
> var $order = 'CategoriesPost.postorder';
>
> }
>
> Anyway I wouldn't
So could you do a nested loop that:
Steps through your images until they are are processed
foreach $num_of_cols (or remaining images if less) adds a value to an array
(the new value being your td contents)
Adds blank cells if this row is only half full because the images are processed
echo $this-
Do you have any debug tools running to see if your javascript is being
loaded/executed correctly?
It appears your link should work, although I'm surprised even if it
does reload the page that it comes up with a proper cake page as your
URL array should be
array('controller'=>'users', 'action' =>
@jeremy,
The script creates a dynamic table containing images pulled from the
database. The number of columns are adjustable depending on space
requirements and the line in question ends the row and starts another when
it reaches the designated number of columns.
[code]
$num_of_cols = 6;
echo
$
Hi all
I tried to make a ajax login form which is loaded inside a JQuery Thickbox.
but the problem is after entering correct username and password the
Thickbox returns to the homepage!!! how can I close the Thickbox and
redirect the parent to the homepage?
Any idea?
here is my code:
f
I think you should consider taking a better look at the HtmlHelper, if you
want all cake. It's now laughable I use it myself.
http://api13.cakephp.org/class/html-helper
On Sat, May 15, 2010 at 9:26 AM, Ed Propsner wrote:
> For most of you this is going to seem so trivial that it's almost laughab
Add in your Post Model
class Post extends AppModel {
var $order = 'CategoriesPost.postorder';
}
Anyway I wouldn't do it like so. I would just add an order field on the Post
model. It's easier.
On Sat, May 15, 2010 at 1:24 AM, ashok.b wrote:
>
>
> Hello Cake Gurus, here's my problem:
>
> T
I do like a challenge...
Can you give a bit more context around what you are trying to do?
Jeremy Burns
jeremybu...@me.com
On 15 May 2010, at 07:26, Ed Propsner wrote:
> For most of you this is going to seem so trivial that it's almost laughable
> so laugh if you must :)
>
> I wanted to se
Please can any one reply.
is it possible to validate a form by javascript in cake 1.3.0 . i have
used validation rules in model, but want a client side checking???
On May 14, 4:47 pm, Nandan Jana wrote:
> Hi,
>
> I am a php developer and i never use a frame work. Nowaday's
> frame work is
Please can any one reply.
is it possible to validate a form by javascript in cake 1.3.0 . i have
used validation rules in model, but want a client side checking???
On May 14, 4:47 pm, Nandan Jana wrote:
> Hi,
>
> I am a php developer and i never use a frame work. Nowaday's
> frame work is
15 matches
Mail list logo