Dynamic Div styling question

2012-11-18 Thread Michael Gaiser
So I am working on a helper which I want to dynamically set the div's size. I am using this: echo $this->Html->style(array('height' => '200px',)); But only getting this: height: 200px; Where as I want something like this: div#mycontainer{ height: 200px; } Does anyone know how to use the HTML-

Re: pagination problem, please help

2012-11-18 Thread Chris
thank you Ivan,... I have tried that by the book,... and probably missed something on its way in a first place,... well,... this is what I got now, and it's working, function category($id = null) { if($this->is_user()) { $this->set('user_obj', $user = $this->User->findBy

Re: Cake php

2012-11-18 Thread Greg Skerman
write the stored proceedure, use $this->model->query() to invoke it? On Mon, Nov 19, 2012 at 1:11 AM, John james wrote: > i want to use storedprocedure in cake php can any body tell me how to do > it ? > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://tw

Re: how to implement Smarty 3?

2012-11-18 Thread romel javier gomez herrera
hi, for cool views can use this framework http://twitter.github.com/bootstrap/ and cakephp views. And check this to http://angularjs.org/ regards 2012/11/17 Martin Aguilar > For years I've been working on my own framework but now I wan't to migrate > to cakephp. > On my framework I used smart

Accessing fields of 'Events' model to compare user_id.

2012-11-18 Thread Daniel Toppin
Hi all I am fairly new to CakePHP, I am trying to only allow those users who created an event to be able to edit or delete an event, so I am comparing the current user id, with the 'user_id' field of the event the current event (saved when a user creates an event). Any help would be appreciated

Re: Tab index

2012-11-18 Thread Jeff Couturier
This is a really old post, but just in case anyone else is searching and finds this (like I did)... Here's how you add *tabindex* with the Form Helper: $this->Form->input('foo', array(*'tabindex' => '1'*, [other options...])); $this->Form->input('bar', array(*'tabindex' => '2'*, [other options..

Cake php

2012-11-18 Thread John james
i want to use storedprocedure in cake php can any body tell me how to do it ? -- 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 g

how to implement Smarty 3?

2012-11-18 Thread Martin Aguilar
For years I've been working on my own framework but now I wan't to migrate to cakephp. On my framework I used smarty for themes and to separate code from views. I always find smarty clean, nice and with a very good performance. Now I want to use it on cake but I found people saying that it has n

Re: Calling MySQL5 Stored Procedures

2012-11-18 Thread John james
I have to call a store procedure on my cakephp can anybpdy tell me how to do it ? On Tuesday, October 16, 2007 8:11:46 PM UTC+5, beverly.guillermo wrote: > > Hi all, > > Just thought I'd post my workaround based on some of the posts here > but I didn't see a consistent answer to the issue. My e

Re: pagination problem, please help

2012-11-18 Thread Ivan Rimac
i think this is your answer: function category($id = null){ if($this->is_user()) { $this->set('user_obj', $user = $this->User->findById($this->user['id'])); } $category = $id; $cat_id = array_search($category, Configure::read('Blog.blog_category')); $this->paginate = ar

pagination problem, please help

2012-11-18 Thread Chris
hi guys,... I have a problem with pagination in a controller,... can someone help me please,... I'm getting an error: SQL Error: 1054: Unknown column 'limit' in 'where clause' how can I do this,...? function category($id = null) { if($this->is_user()) { $this->set('user_obj

Re: Session is not expiring when browser is closed

2012-11-18 Thread euromark
you really should not rely on that! this is a browser-specific setting and most people have their browser in "default" mode - meaning: the session will not expire anyway so there is no point in forcing this - IMO Am Sonntag, 18. November 2012 15:33:47 UTC+1 schrieb Chandru M: > > Thanks for the

Re: Session is not expiring when browser is closed

2012-11-18 Thread Chandru M
Thanks for the response. However the issue is only with the settings. Set "On Startup" setting to "Continue where I left off" (chrome://chrome/settings/) But I am using the setting "On Startup" setting to "Open the New Tab page" I am not sure where the problem starts. I didn't get much supp

Re: Bad Request "URL not found" - after an JQuery change event

2012-11-18 Thread Rob M
A. To debug, I'd insert the line: console.log(load + _this.find('option:selected').val()); just above your $.ajax() call. Then watch your Javascript console when running the page to see what URL is being submitted and try submitting it manually. - Rob On Friday, November 16, 2012 1:53:13 AM UTC-