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
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
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
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
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
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
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
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
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
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
@ 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
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
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:
$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(
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',
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
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
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 :
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
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
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' =
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.
$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
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',
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
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 :
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
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
Sorry, incomplete :
It will produce an array like :
array(
'User' = array(
'password' = '*',
'id' = '2',
'username' = 'test',
),
'Post' = array(
(int) 0 = array(
'id' = '36',
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:
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
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
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
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,
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' =
35 matches
Mail list logo