load images with Ajax and use of lightbox

2012-06-18 Thread georgio ch
hi there i am want to load on a static page 10 images with Ajax and use a lightbox for these images can anyone give me some help i have read tutorial but it's not so clear i have cakephp 2.0. thanks -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check

Re: load images with Ajax and use of lightbox

2012-06-18 Thread Naresh Kumar
you can do using jquery. it has everything... On Mon, Jun 18, 2012 at 1:28 PM, georgio ch chatziefstratiougeorg...@gmail.com wrote: hi there i am want to load on a static page 10 images with Ajax and use a lightbox for these images can anyone give me some help i have read tutorial but

Re: load images with Ajax and use of lightbox

2012-06-18 Thread giorgo ch
example ? 2012/6/18 Naresh Kumar reachme.nare...@gmail.com you can do using jquery. it has everything... On Mon, Jun 18, 2012 at 1:28 PM, georgio ch chatziefstratiougeorg...@gmail.com wrote: hi there i am want to load on a static page 10 images with Ajax and use a lightbox for these

Re: load images with Ajax and use of lightbox

2012-06-18 Thread giorgo ch
if you see this is very complex http://book.cakephp.org/1.3/view/1358/AJAX 2012/6/18 giorgo ch chatziefstratiougeorg...@gmail.com example ? 2012/6/18 Naresh Kumar reachme.nare...@gmail.com you can do using jquery. it has everything... On Mon, Jun 18, 2012 at 1:28 PM, georgio ch

Re: Check table for a particular entry

2012-06-18 Thread JonStark
Damn, really stuck with this, any idea ? Many thanks ! Le jeudi 14 juin 2012 14:40:16 UTC+2, JonStark a écrit : I have a table with the following fields : id follower_id following_id So when a user clicks follow on an other user's profile, an entry like this is created : 15 1 3

JsHelper

2012-06-18 Thread Renato Carvalho
Hello guys, I am trying to set the 'value' of a select using the cake 2.x JsHelper, but unlucky so far. I`ve managed to change all options of the select, but I have no clue on how to change only the 'value'. I have 2 selects with constant options (the options doesn`t change). I want to set the

CakePHP2.1.3 does not work on PHP5.4.3?

2012-06-18 Thread тoяisu
Hi, there I set up cakephp2.1.3 with PHP5.4.3 on CentOS 6.2 server. following error message appeared. On PHP 5.3.14 was everything fine. Fatal error: Class 'Debugger' not found in /path/to/Model/Hoge.php on line 10 /path/to/Model/Hoge.php is here. - 1 ?php 2 3 class Hoge extends

cakephp2.1.3 does not work on PHP5.4.3?

2012-06-18 Thread тoяisu
Hi, there I set up cakephp2.1.3 with PHP5.4.3 on CentOS 6.2 server. following error message appeared. On PHP 5.3.14 was everything fine. Fatal error: Class 'Debugger' not found in /path/to/Model/Hoge.php on line 10 /path/to/Model/Hoge.php is here. - 1 ?php 2 3 class Hoge extends

Re: load images with Ajax and use of lightbox

2012-06-18 Thread Alok Mishra
http://krewenki.github.com/jquery-lightbox/ Using light box jquery On Mon, Jun 18, 2012 at 1:32 PM, giorgo ch chatziefstratiougeorg...@gmail.com wrote: if you see this is very complex http://book.cakephp.org/1.3/view/1358/AJAX 2012/6/18 giorgo ch chatziefstratiougeorg...@gmail.com

Core php session with cakephp session

2012-06-18 Thread Vamseedhar
Hi I am trying to convert core php application to cakephp and for time being i want to use both instances in live how can i maintain one session in both instances. The login and registration will be in cakephp instance but i need to access same session in core php instance also. how can i

Re: Manage large multilingual project

2012-06-18 Thread Heidi Anselstetter
@ lubomir lubomir.st...@gmail.com Great, I didn't think about this way that I can copy the .pot and the .po file together into the same directory! I will try this out! Thanks a lot!! 2012/6/9 stork lubomir.st...@gmail.com Workflow is simple. 1. use I18n shell to generate .pot template from

Re: Core php session with cakephp session

2012-06-18 Thread Vamseedhar
I found the solution for this session_name('CAKEPHP'); session_start(); print_r($_SESSION); the print_r gave me all the session set in the cakephp On Monday, June 18, 2012 11:09:23 AM UTC+5:30, Vamseedhar wrote: Hi I am trying to convert core php application to cakephp and for time

Re: load images with Ajax and use of lightbox

2012-06-18 Thread giorgo ch
This is from jquey .This has nothing to do with cakephp i thought there is another way 2012/6/18 Alok Mishra aloksoft2...@gmail.com http://krewenki.github.com/jquery-lightbox/ Using light box jquery On Mon, Jun 18, 2012 at 1:32 PM, giorgo ch chatziefstratiougeorg...@gmail.com wrote:

Re: Return a certain value from an array

2012-06-18 Thread Steve Found
$records = Set::extract('/UsersUser[follower_id=' . $logged_user_id . ']', $data ); foreach( $records as $record ){ $id = $record['UsersUser']['id']; ... Do something with the ID ... } On 18/06/12 12:34, JonStark wrote: Lets say this is my array : array( (int) 0 = array(

Re: Return a certain value from an array

2012-06-18 Thread JonStark
It worked like a charm, thanks a lot ! Le lundi 18 juin 2012 13:34:03 UTC+2, JonStark a écrit : Lets say this is my array : array( (int) 0 = array( 'UsersUser' = array( 'id' = '38', 'follower_id' = '1',

Controller render different view and pass var

2012-06-18 Thread iFemke
Hi, I have two controllers. - In one controller (OptionsController) you can create, edit, add and delete your own options. This is working as it is supposed to. - Next to that I have a different controller (let's name that one SecondController) that needs a view from the first controller

Associate an array with a variable ?

2012-06-18 Thread JonStark
Here is the function I use to display posts that have a User.id equal to $id : Code: php 1. $data = $this-paginate('Post', array http://www.php.net/array( 2. 'User.id' = $id, 3. ) 4. ); 5. $this-set('posts', $data) I have an array

Re: Associate an array with a variable ?

2012-06-18 Thread Tilen Majerle
before you call $this-paginate('Post') do this $this-paginate = array('Post' = array('conditions = array('User.id' = $id))); -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/6/18 JonStark jean...@gmail.com Here is the function I use to display posts that have a User.id equal to $id :

Re: actAs Tree : generatetreelist error

2012-06-18 Thread Ish
Had the same problem in cakephp 2.0 Later realized *generatetreelist* function got renamed to *generateTreeList* On Thursday, January 27, 2011 9:44:58 PM UTC-5, raymond wrote: Hi. I have tried Tree behavior just according to manual, but it reports error following: Warning (512): SQL

Re: Associate an array with a variable ?

2012-06-18 Thread JonStark
You mean something like this ? $id = $myArray; $this-paginate = array('Post' = array('conditions' = array('User.id' = $id))); $data = $this-paginate('Post'); $this-set('posts', $data); ? Many thanks. Le lundi 18 juin 2012 17:26:21 UTC+2, JonStark a écrit : Here is the

Re: Associate an array with a variable ?

2012-06-18 Thread JonStark
Seems to work perfectly, Thanks a lot ! Le lundi 18 juin 2012 17:26:21 UTC+2, JonStark a écrit : Here is the function I use to display posts that have a User.id equal to $id : Code: php 1. $data = $this-paginate('Post', array http://www.php.net/array( 2. 'User.id' =

Re: Problem associating models with linux (working fine on windows using xampp)

2012-06-18 Thread Flo ßbau
Hi, as a member of the team that discovered the problem above, I'm happy to tell you that the problem was caused by different Apache settings on the Windows and Linux system. In some models we used SHORT OPENING PHP TAGS while these tags were not enabled in the Apache config on the Linux box.

Re: Return a certain value from an array

2012-06-18 Thread stork
$path = '/UsersUser[follower_id=' . $logged_user_id . ']/id'; debug(Set::extract($path, $data)); -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related

Problem with CakeEmail - rewrite default config and bcc delivery does not work

2012-06-18 Thread Anna P
Hello. I have set following default config in app/Config/email.php : public $default = array( 'transport' = 'Mail', 'charset' = 'utf-8', 'headerCharset' = 'utf-8', 'layout' = 'default', 'emailFormat' = 'both',

Re: conditions in $belongsTo

2012-06-18 Thread lowpass
Thanks, Jeremy. I'll give that a try, although I'm not sure it will help in this case. I'm working with a legacy DB schema and all of the tables have a deleted_at column. I want only the data where this value is 0. If Cake is ignoring the conditions in the one instance, I'm not sure it'll pay any

Re: Check table for a particular entry

2012-06-18 Thread lowpass
On Sun, Jun 17, 2012 at 2:50 PM, JonStark jean...@gmail.com wrote: Ok, almost there, just need a little help with Set:: I'm using Set::extract('/Follower/UsersUser', $user) to get all the data from the association table of a given user, wich when debugged produces an array like this one :

Jquery mobile+Phonegap mobile app and authentication

2012-06-18 Thread Arash
Hi, We are working on a mobile app for our SAAS website which uses Cake 1.3, we've decided to use Jquery mobile+ Phonegap so we will use the HTML5 power for building a mobile app. The whole app is an HTML page with a few js ans css files which will be running natively on the mobile and will

Count (return as a number) associated data.

2012-06-18 Thread JonStark
Let's say USer hasMany Post. If i debug my user it will produce an array like : User -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To

Re: Count (return as a number) associated data.

2012-06-18 Thread JonStark
Sorry, incomplete : It will produce an array like : array( 'User' = array( 'password' = '*', 'id' = '2', 'username' = 'test', ), 'Post' = array( (int) 0 = array( 'id' = '36',

Re: Count (return as a number) associated data.

2012-06-18 Thread Max Dörfler
You could get the size of $result['Post'] if you already have the $result like you wrote. See count() or sizeof(). Or you could do a find('count') on the Post Model like $this-User-Post-find('count', array('conditions' = array('Post.user_id' = 2))); On 06/19/2012 12:24 AM, JonStark wrote:

Re: What is the proper way of testing controllers in CakePHP 2.0

2012-06-18 Thread merovinq
Did you ever figure this out? My $this-header is always returning an empty array an empty array as well, I've been stuck on this for a couple days now.. Please help me if you figured this out On Thursday, August 25, 2011 12:33:08 AM UTC-5, Christophe Roblin wrote: No, $this-headers seems to

how to generate this sql

2012-06-18 Thread elogic
Hi All, How do I go about generating the following SQL line using cakePHP from the timesheets controller? SELECT user_id, date, count(id) as count_name FROM `timesheets`GROUP BY user_id, date HAVING count_name 1 ORDER BY count_name; Basically it is just checking for double up records

Re: Security::cipher() and mysqldump

2012-06-18 Thread etipaced
I was never able to convert the encoding of my ciphered data back to its original form. I was able to find a random backup I didn't realize I had and used that to restore the corrupted fields. Just wanted to report back for anyone following this thread. On Wednesday, April 11, 2012 7:03:11 PM

Caching part of view and user-specific sidebar problem

2012-06-18 Thread Joris Vaesen
I've build an application with a where where users can see multiple items. These items are sorted by pagination. Because of the big amount of items per page would i like to do some caching. Because the page is using pagination, I can't cache the query. So I was thinking about caching the view,

Re: Count (return as a number) associated data.

2012-06-18 Thread Joris Vaesen
count($var['Post']) On Tuesday, 19 June 2012 00:24:15 UTC+2, JonStark wrote: Sorry, incomplete : It will produce an array like : array( 'User' = array( 'password' = '*', 'id' = '2', 'username' = 'test', ), 'Post' =