Re: cant retrive data from database into a table

2012-06-26 Thread Sanfly
Try looking at this page in the Manual

http://book.cakephp.org/1.3/en/view/1018/find

Should give you a good starting point

On Wednesday, 27 June 2012 01:53:46 UTC+12, Ditshwanelo wrote:
>
>  
> Im trying to populate data from database bt isnt,im a begginer sory for a 
> lame question
>  
> function download()
>  {
>
>  $urlquery = $this->Newsletter->query("SELECT url,image_url,year,season 
> FROM newsletters WHERE status='Active'");
>  
>   foreach($urlquery as $URL)
>{  
>   //echo ' src="images/pdf.PNG"/>';
>   // echo 'Newsletters';
>   
>   //variables
>$hyperlink=$URL['Newsletter']['url'];
>$year=$URL['Newsletter']['year']; 
>$season = $URL['Newsletter']['season'];
>$image_url=$URL['Newsletter']['image_url'];
>print_r($season);
>echo'
> YearSeasonDownload Newsletter';
>  
>  echo'';
>  
>  echo"$year";
>   echo"$season";
>echo ' src=".$image_url."/>';
>echo'';
>
>  
>
>echo'';
>
>
>}
>  //print_r($y);
>   
> }
>

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cant retrive data from database into a table

2012-06-26 Thread Sergei
If you use direct query you should write $URL[0]['url'] not 
$URL['Newsletter']['url']. Zero instead of model name.

On Tuesday, June 26, 2012 10:53:46 PM UTC+9, Ditshwanelo wrote:
>
>  
> Im trying to populate data from database bt isnt,im a begginer sory for a 
> lame question
>
>

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Model Associations Question

2012-06-26 Thread Sanfly
Sorry, I'll repost this - my database is Bookingdate not Bookingnight

Hi

Im having some trouble with a model association - yes, I have tried the 
manual!

For each Booking I have, I can have many Bookingnights

*Booking*
Booking.id


*Bookingdate*
Bookingdate.id
Bookingdate.booking_id

In my Booking model, I am able to get all the associated Bookingdates 
without issue.

var $hasMany = array(
'Bookingdate' => array(
'className' => 'Bookingdates',
'foreignKey'=> 'booking_id',
 
)

);

My problem is when I try and go back the other way.  I have my 
Bookingdate.id, and want to get the associated booking.

I would think that it should be belongsTo in my Bookingdate model?

var $belongsTo = array(
'Booking' => array(
'className' => 'Bookings',
'foreignKey' => 'booking_id'
)

); 

==> Doesnt Work

Is there something obvious that I'm missing?

On Wednesday, 27 June 2012 18:26:42 UTC+12, Sanfly wrote:
>
> Hi
>
> Im having some trouble with a model association - yes, I have tried the 
> manual!
>
> For each Booking I have, I can have many Bookingnights
>
> *Booking*
> Booking.id
> 
>
> *Bookingnight*
> Bookingnight.id
> Bookingnight.booking_id
>
> In my Booking model, I am able to get all the associated Bookingnights 
> without issue.
>
> var $hasMany = array(
> 'Bookingdate' => array(
> 'className' => 'Bookingdates',
> 'foreignKey'=> 'booking_id',
>  
> )
> 
> );
>
> My problem is when I try and go back the other way.  I have my 
> Bookingnight.id, and want to get the associated booking.
>
> I would think that it should be belongsTo?
>
> var $belongsTo = array(
> 'Booking' => array(
> 'className' => 'Bookings',
> 'foreignKey' => 'booking_id'
> )
>
> ); 
>
> ==> Doesnt Work
>
> Is there something obvious that I'm missing?
>
> Thanks!
>
>
>
>

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Model Associations Question

2012-06-26 Thread Sanfly
Hi

Im having some trouble with a model association - yes, I have tried the 
manual!

For each Booking I have, I can have many Bookingnights

*Booking*
Booking.id


*Bookingnight*
Bookingnight.id
Bookingnight.booking_id

In my Booking model, I am able to get all the associated Bookingnights 
without issue.

var $hasMany = array(
'Bookingdate' => array(
'className' => 'Bookingdates',
'foreignKey'=> 'booking_id',
 
)

);

My problem is when I try and go back the other way.  I have my 
Bookingnight.id, and want to get the associated booking.

I would think that it should be belongsTo?

var $belongsTo = array(
'Booking' => array(
'className' => 'Bookings',
'foreignKey' => 'booking_id'
)

); 

==> Doesnt Work

Is there something obvious that I'm missing?

Thanks!



-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cant retrive data from database into a table

2012-06-26 Thread Ditshwanelo
no errors,bt doesnt display the values
On Tuesday, June 26, 2012 3:53:46 PM UTC+2, Ditshwanelo wrote:
>
>  
> Im trying to populate data from database bt isnt,im a begginer sory for a 
> lame question
>  
> function download()
>  {
>
>  $urlquery = $this->Newsletter->query("SELECT url,image_url,year,season 
> FROM newsletters WHERE status='Active'");
>  
>   foreach($urlquery as $URL)
>{  
>   //echo ' src="images/pdf.PNG"/>';
>   // echo 'Newsletters';
>   
>   //variables
>$hyperlink=$URL['Newsletter']['url'];
>$year=$URL['Newsletter']['year']; 
>$season = $URL['Newsletter']['season'];
>$image_url=$URL['Newsletter']['image_url'];
>print_r($season);
>echo'
> YearSeasonDownload Newsletter';
>  
>  echo'';
>  
>  echo"$year";
>   echo"$season";
>echo ' src=".$image_url."/>';
>echo'';
>
>  
>
>echo'';
>
>
>}
>  //print_r($y);
>   
> }
>

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Gearman worker as Console command

2012-06-26 Thread Dr. Tarique Sani
On Tue, Jun 26, 2012 at 9:13 PM, baur79  wrote:
> but how to run the function by
> $worker->addFunction("func", "func_my");

Something like

$this->worker = new gearmanworker()

then

$this->worker->addFunction("func", "func_my");

Of course presuming that somewhere you have already added the servers

Tarique

-- 
=
PHP for E-Biz: http://sanisoft.com
=

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Following Simple Authentication and Authorization Application

2012-06-26 Thread michele pierri
Hi I have created a new CakePHP project.
I am at the end of the tutorial but when I type 
localhost/myproject/users/add I have this error:

*Error: *Create the class *myproject *below in file: 
app\Controller\myprojectController.php

http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Advice about design.

2012-06-26 Thread Poyan Nabati
I feel like this is a good match for 
ACL,
 
you should check it out!

On Tuesday, June 26, 2012 7:44:45 PM UTC+2, Janne Johansson wrote:
>
> Hello!
>
> I am pretty much a complete newbie in regards to Cake, so I am looking for 
> advice on how to best go abpuit the design of an app.
>
> Basically, I have a structure where i have:
>
> "Users" that hasMany "Accounts". 
> "Accounts" hasMany "transactions".
>
> No magic there... But, I want a model where a User can assign read access 
> to their "accounts" to another user. And I wonder how to best acheive that 
> within the framework?
>
> I thought about a "HABTM" between users and acounts, but that seem a bit 
> messy?
>

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Image upload with Cake 2.x

2012-06-26 Thread Claudio Santos
Hey man, I had changed the Meioupload from the old cakephp  to 2.1 version.
Check this link:
http://forum.imasters.com.br/topic/456426-usando-meioupload-no-cakephp-20
It works, included update, besides it does not remove the old image from
the folder.


2012/6/26 Florian Krämer 

> https://github.com/burzum/FileStorage
>
> Reading the readme.md is highly recommended.
>
>
> On Monday, June 25, 2012 3:06:49 PM UTC+2, Stefanie wrote:
>>
>> Hey guys,
>>
>> I was looking for a working version for simply uploading user images
>> shown as thumbnail on their profile page.
>> I already found this approach http://www.wilsolutions.com.**
>> br/content/image-upload-**cakephp-20
>> but for some reason I didn't get it to work :-((
>>
>> Has anybody an idea how I can include this functionality?
>>
>> Kind regards,
>> Stefi
>
>  --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Advice about design.

2012-06-26 Thread Janne Johansson


On Tuesday, June 26, 2012 11:33:11 PM UTC+2, cricket wrote:
>
> That seems reasonable to me. To keep things clear, you can assign an 
> alias to the models. So User could become Auditor in the context of 
> reading Accounts which are not theirs, and Account could become, eg. 
> Ledger. You could probably come up with better aliases. 
>
>
THanks!

I had completely overlooked alias as an option. Silly me. 
Ok, that gives me something to fiddle with :) 

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Passing each record of array to other view

2012-06-26 Thread lowpass
If you set separate variables, how will you write the code for the
view without knowing how many variables have been set? Better to pass
the entire array to the view and run a foreach() loop in the view.

On Tue, Jun 26, 2012 at 5:43 AM, Roshan  wrote:
> Hi I have received the following array as a result of var_dump($x).
>
> array(2) {
>             [0]=> array(1)
>                 { ["Driver"]=> array(13)
>                     { ["driver_id"]=> string(1) "4" ["fname"]=> string(13)
> "jack williams"
>                       ["gender"]=> string(4) "male" ["email"]=> string(12)
> "j...@msn.com"
>                       ["state"]=> string(7) "florida" ["city"]=> string(17)
> "Altamonte Springs"
>                       ["zipcode"]=> string(6) "451456" ["address"]=>
> string(14) "st xena street"
>                       ["phone_no"]=> string(9) "984568745" ["car_type"]=>
> string(6) "Luxury"
>                       ["hourly_rate"]=> string(2) "45" ["occasion"]=>
> string(8) "marriage"
>                       ["driver_image"]=> string(0) ""
>                     }
>                 }
>             [1]=> array(1)
>                 { ["Driver"]=> array(13)
>                     { ["driver_id"]=> string(1) "5" ["fname"]=> string(14)
> "Peter Gonzalez"
>                       ["gender"]=> string(4) "male" ["email"]=> string(15)
> "pe...@gmail.com"
>                       ["state"]=> string(7) "Florida" ["city"]=> string(17)
> "Altamonte Springs"
>                       ["zipcode"]=> string(6) "451456" ["address"]=>
> string(22) "626 Kennedy St Jackson"
>                       ["phone_no"]=> string(14) "(941) 866-0530"
> ["car_type"]=> string(6) "Luxury"
>                       ["hourly_rate"]=> string(2) "41" ["occasion"]=>
> string(8) "marriage"
>                       ["driver_image"]=> string(0) ""
>                     }
>                 }
>          }
>
> Now I want to pass each record one by one to 'view2.ctp'.
> Anybody can explain me?
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Advice about design.

2012-06-26 Thread lowpass
That seems reasonable to me. To keep things clear, you can assign an
alias to the models. So User could become Auditor in the context of
reading Accounts which are not theirs, and Account could become, eg.
Ledger. You could probably come up with better aliases.

Account.php:
public $hasAndBelongsToMany = array(
'Auditor' => array (
'className' => 'User',
'joinTable' => 'accounts_users',
'foreignKey' => 'user_id',
'associationForeignKey' => 'account_id'
)
);

User.php:
public $hasAndBelongsToMany = array(
'Ledger' => array (
'className' => 'Account',
'joinTable' => 'accounts_users',
'foreignKey' => 'account_id',
'associationForeignKey' => 'user_id'
)
);

So, for example, if you did a find on a given Account, all of the
Users which have read-only access to it would be under Auditor in the
data array. And, if you did the same for a given User, there would be
an array Ledger with all Accounts to which this User has access.

On Tue, Jun 26, 2012 at 1:44 PM, Janne Johansson  wrote:
> Hello!
>
> I am pretty much a complete newbie in regards to Cake, so I am looking for
> advice on how to best go abpuit the design of an app.
>
> Basically, I have a structure where i have:
>
> "Users" that hasMany "Accounts".
> "Accounts" hasMany "transactions".
>
> No magic there... But, I want a model where a User can assign read access to
> their "accounts" to another user. And I wonder how to best acheive that
> within the framework?
>
> I thought about a "HABTM" between users and acounts, but that seem a bit
> messy?
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Slightly different models, merge or separate?

2012-06-26 Thread Raj Dudi
By model, I assume you mean table. Then I think it is nice to have two
table and have a foreign key to relate them. Also you can have many columns
in the second table so that it could address most of the data.
But yes, if you feel there will be many many columns then you may have more
table with association.

On Mon, Jun 25, 2012 at 10:12 AM, Poyan Nabati wrote:

> I have a question regarding more the design of the back-end rather than
> specifically how to implement it.
>
> I'm creating a life tracker of sorts. The purpose is to have a single
> application to help you keep track of things that are important to you long
> term.
>
> I want to be able to track a wide array of different things.
>
> For instance;
>
>
>- What type of exercise did I do? (Fixed: Gym, Running or Other)
>- Did I meditate today? (Boolean measurement)
>- What was my weight today? (Numeric measurement)
>- What's one good thing about today? (String "measurement")
>
> So for each goal you have a single specific type of measurements.
>
> *How should I implement this on the backend?*
>
>
>- *Two models.* I thought of having two models, Goal and Measurement,
>where Measurement has a corresponding field in the database called "value"
>that's agnostic of it's contents (in other words, a VARCHAR that I
>interpret differently depending on context). I believe, however, that this
>approach will create a lot of special code for each of the different cases
>down the line.
>- *Many models.* Another way to do it would be to create
>NumericMeasurement, BooleanMeasurement etc etc for each of the different
>measurement-types. In Goal I could have a field that indicates the type and
>create the association Goal hasMany (each of the measurement types). Do you
>see any problems with this approach?
>
> Is there another, better approach that I haven't thought about?
>
> How would you solve this?
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Passing each record of array to other view

2012-06-26 Thread Raj Dudi
May be you want to use foreach and then set with variable as data[i] so
that it is available in view seperatly

On Tue, Jun 26, 2012 at 11:43 AM, Roshan  wrote:

> Hi I have received the following array as a result of var_dump($x).
>
> array(2) {
> [0]=> array(1)
> { ["Driver"]=> array(13)
> { ["driver_id"]=> string(1) "4" ["fname"]=> string(13)
> "jack williams"
>   ["gender"]=> string(4) "male" ["email"]=> string(12)
> "j...@msn.com"
>   ["state"]=> string(7) "florida" ["city"]=>
> string(17) "Altamonte Springs"
>   ["zipcode"]=> string(6) "451456" ["address"]=>
> string(14) "st xena street"
>   ["phone_no"]=> string(9) "984568745" ["car_type"]=>
> string(6) "Luxury"
>   ["hourly_rate"]=> string(2) "45" ["occasion"]=>
> string(8) "marriage"
>   ["driver_image"]=> string(0) ""
> }
> }
> [1]=> array(1)
> { ["Driver"]=> array(13)
> { ["driver_id"]=> string(1) "5" ["fname"]=> string(14)
> "Peter Gonzalez"
>   ["gender"]=> string(4) "male" ["email"]=> string(15)
> "pe...@gmail.com"
>   ["state"]=> string(7) "Florida" ["city"]=>
> string(17) "Altamonte Springs"
>   ["zipcode"]=> string(6) "451456" ["address"]=>
> string(22) "626 Kennedy St Jackson"
>   ["phone_no"]=> string(14) "(941) 866-0530"
> ["car_type"]=> string(6) "Luxury"
>   ["hourly_rate"]=> string(2) "41" ["occasion"]=>
> string(8) "marriage"
>   ["driver_image"]=> string(0) ""
> }
> }
>  }
>
> Now I want to pass each record one by one to 'view2.ctp'.
> Anybody can explain me?
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Upload file to server with cakephp 1.2

2012-06-26 Thread Raj Dudi
Error and your code please

On Tue, Jun 26, 2012 at 12:02 PM, Mr. Manager  wrote:

> Dear All,
>
> I want to update file to server and save file name into table with cakephp
> 1.2. And I try to use many tutorials but it doesn't work.
>
> Thanks in advance!
>
> Sincerely Yours,
> Mr. Manager,
>
>
>  --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Advice about design.

2012-06-26 Thread Janne Johansson
Hello!

I am pretty much a complete newbie in regards to Cake, so I am looking for 
advice on how to best go abpuit the design of an app.

Basically, I have a structure where i have:

"Users" that hasMany "Accounts". 
"Accounts" hasMany "transactions".

No magic there... But, I want a model where a User can assign read access 
to their "accounts" to another user. And I wonder how to best acheive that 
within the framework?

I thought about a "HABTM" between users and acounts, but that seem a bit 
messy?

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Is CakePHP 2.x support firebird database

2012-06-26 Thread tony
If yes, how to connect to firebird database?

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Passing each record of array to other view

2012-06-26 Thread Roshan
Hi I have received the following array as a result of var_dump($x). 

array(2) { 
[0]=> array(1) 
{ ["Driver"]=> array(13) 
{ ["driver_id"]=> string(1) "4" ["fname"]=> string(13) 
"jack williams" 
  ["gender"]=> string(4) "male" ["email"]=> string(12) 
"j...@msn.com" 
  ["state"]=> string(7) "florida" ["city"]=> string(17) 
"Altamonte Springs" 
  ["zipcode"]=> string(6) "451456" ["address"]=> 
string(14) "st xena street" 
  ["phone_no"]=> string(9) "984568745" ["car_type"]=> 
string(6) "Luxury" 
  ["hourly_rate"]=> string(2) "45" ["occasion"]=> 
string(8) "marriage" 
  ["driver_image"]=> string(0) "" 
}
} 
[1]=> array(1) 
{ ["Driver"]=> array(13) 
{ ["driver_id"]=> string(1) "5" ["fname"]=> string(14) 
"Peter Gonzalez" 
  ["gender"]=> string(4) "male" ["email"]=> string(15) 
"pe...@gmail.com" 
  ["state"]=> string(7) "Florida" ["city"]=> string(17) 
"Altamonte Springs" 
  ["zipcode"]=> string(6) "451456" ["address"]=> 
string(22) "626 Kennedy St Jackson" 
  ["phone_no"]=> string(14) "(941) 866-0530" 
["car_type"]=> string(6) "Luxury" 
  ["hourly_rate"]=> string(2) "41" ["occasion"]=> 
string(8) "marriage" 
  ["driver_image"]=> string(0) "" 
} 
} 
 }
 
Now I want to pass each record one by one to 'view2.ctp'.
Anybody can explain me?

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Slightly different models, merge or separate?

2012-06-26 Thread Poyan Nabati
Anyone?

On Monday, June 25, 2012 10:12:43 AM UTC+2, Poyan Nabati wrote:
>
> I have a question regarding more the design of the back-end rather than 
> specifically how to implement it. 
>
> I'm creating a life tracker of sorts. The purpose is to have a single 
> application to help you keep track of things that are important to you long 
> term.
>
> I want to be able to track a wide array of different things.
>
> For instance;
>
>
>- What type of exercise did I do? (Fixed: Gym, Running or Other)
>- Did I meditate today? (Boolean measurement)
>- What was my weight today? (Numeric measurement)
>- What's one good thing about today? (String "measurement")
>
> So for each goal you have a single specific type of measurements.
>
> *How should I implement this on the backend?*
>
>
>- *Two models.* I thought of having two models, Goal and Measurement, 
>where Measurement has a corresponding field in the database called "value" 
>that's agnostic of it's contents (in other words, a VARCHAR that I 
>interpret differently depending on context). I believe, however, that this 
>approach will create a lot of special code for each of the different cases 
>down the line. 
>- *Many models.* Another way to do it would be to create 
>NumericMeasurement, BooleanMeasurement etc etc for each of the different 
>measurement-types. In Goal I could have a field that indicates the type 
> and 
>create the association Goal hasMany (each of the measurement types). Do 
> you 
>see any problems with this approach?
>
> Is there another, better approach that I haven't thought about?
>
> How would you solve this?
>

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Which the preview to release the version CakePHP 2.2?

2012-06-26 Thread Lucas Simon Rodrigues Magalhaes
Hmm Thanks!!!

I will do migrating with this release in other app that we have here(small 
app in CakePHP 1.2). If I feel that cakephp is unstable in my app, I wait 
little more...

thanks guys

Em terça-feira, 26 de junho de 2012 13h12min03s UTC-3, Justin Edwards 
escreveu:
>
>
> http://cakephp.lighthouseapp.com/projects/42648-cakephp/milestones/139707-220
>
> It is very stable.  It's technically in beta, but that doesn't mean much. 
>   
>
>
>
> On Tue, Jun 26, 2012 at 10:24 AM, Lucas Simon Rodrigues Magalhaes <
> lucass...@gmail.com> wrote:
>
>> and the 2.2 stable?
>>
>>
>> Em terça-feira, 26 de junho de 2012 12h17min41s UTC-3, Justin Edwards 
>> escreveu:
>>
>>> https://github.com/cakephp/**cakephp/tree/2.2
>>> https://github.com/cakephp/**cakephp/zipball/2.2
>>>
>>>
>>> On Tue, Jun 26, 2012 at 8:58 AM, Lucas Simon Rodrigues Magalhaes <
>>> lucass...@gmail.com> wrote:
>>>
 Hello there!


 I have a system in CakePHP 1.2.7, and I wanna migrate to the new 
 version. 

 So I prefer waiting the new release, than migrate to CakePHP 2.1
  
 -- 
 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 unsubscribe from this group, send email to
 cake-php+unsubscribe@**googlegroups.comFor
  more options, visit this group at 
 http://groups.google.com/**group/cake-php

>>>
>>>  -- 
>> 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 unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
>> at http://groups.google.com/group/cake-php
>>
>
>

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Which the preview to release the version CakePHP 2.2?

2012-06-26 Thread Justin Edwards
http://cakephp.lighthouseapp.com/projects/42648-cakephp/milestones/139707-220

It is very stable.  It's technically in beta, but that doesn't mean much.



On Tue, Jun 26, 2012 at 10:24 AM, Lucas Simon Rodrigues Magalhaes <
lucass...@gmail.com> wrote:

> and the 2.2 stable?
>
>
> Em terça-feira, 26 de junho de 2012 12h17min41s UTC-3, Justin Edwards
> escreveu:
>
>> https://github.com/cakephp/**cakephp/tree/2.2
>> https://github.com/cakephp/**cakephp/zipball/2.2
>>
>>
>> On Tue, Jun 26, 2012 at 8:58 AM, Lucas Simon Rodrigues Magalhaes <
>> lucass...@gmail.com> wrote:
>>
>>> Hello there!
>>>
>>>
>>> I have a system in CakePHP 1.2.7, and I wanna migrate to the new
>>> version.
>>>
>>> So I prefer waiting the new release, than migrate to CakePHP 2.1
>>>
>>> --
>>> 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 unsubscribe from this group, send email to
>>> cake-php+unsubscribe@**googlegroups.comFor
>>>  more options, visit this group at
>>> http://groups.google.com/**group/cake-php
>>>
>>
>>  --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Gearman worker as Console command

2012-06-26 Thread baur79
but how to run the function by 
$worker->addFunction("func", "func_my");


On Tuesday, June 26, 2012 6:11:56 PM UTC+6, Dr. Tarique Sani wrote:
>
> Yes it is possible to use a shell as a worker. Just create the shell 
> start and forget. Also do not try to do a lot in the worker - use your 
> models for that 
>
> HTH 
> Tarique 
>
>
>
> On Mon, Jun 25, 2012 at 9:47 PM, baur79  wrote: 
> > Hi, 
> > 
> > is it possable to use Console/cake some_command as Gearman Worker 
> > please suggest some idea? 
> > 
> > thanks in advance 
> > 
> > -- 
> > 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 unsubscribe from this group, send email to 
> > cake-php+unsubscr...@googlegroups.com For more options, visit this 
> group at 
> > http://groups.google.com/group/cake-php 
>
>
>
> -- 
> = 
> PHP for E-Biz: http://sanisoft.com 
> = 
>

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Which the preview to release the version CakePHP 2.2?

2012-06-26 Thread Lucas Simon Rodrigues Magalhaes
and the 2.2 stable?


Em terça-feira, 26 de junho de 2012 12h17min41s UTC-3, Justin Edwards 
escreveu:
>
> https://github.com/cakephp/cakephp/tree/2.2
> https://github.com/cakephp/cakephp/zipball/2.2
>
>
> On Tue, Jun 26, 2012 at 8:58 AM, Lucas Simon Rodrigues Magalhaes <
> lucass...@gmail.com> wrote:
>
>> Hello there!
>>
>>
>> I have a system in CakePHP 1.2.7, and I wanna migrate to the new version. 
>>
>> So I prefer waiting the new release, than migrate to CakePHP 2.1
>>  
>> -- 
>> 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 unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
>> at http://groups.google.com/group/cake-php
>>
>
>

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Which the preview to release the version CakePHP 2.2?

2012-06-26 Thread Justin Edwards
https://github.com/cakephp/cakephp/tree/2.2
https://github.com/cakephp/cakephp/zipball/2.2


On Tue, Jun 26, 2012 at 8:58 AM, Lucas Simon Rodrigues Magalhaes <
lucass...@gmail.com> wrote:

> Hello there!
>
>
> I have a system in CakePHP 1.2.7, and I wanna migrate to the new version.
>
> So I prefer waiting the new release, than migrate to CakePHP 2.1
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cant retrive data from database into a table

2012-06-26 Thread Mike Griffin
On Tue, Jun 26, 2012 at 2:53 PM, Ditshwanelo  wrote:
>
> Im trying to populate data from database bt isnt,im a begginer sory for a
> lame question
>
> function download()
>  {
>
>  $urlquery = $this->Newsletter->query("SELECT url,image_url,year,season FROM
> newsletters WHERE status='Active'");
>
>   foreach($urlquery as $URL)
>    {
>   //echo ' src="images/pdf.PNG"/>';
>   // echo 'Newsletters';
>
>   //variables
>    $hyperlink=$URL['Newsletter']['url'];
>    $year=$URL['Newsletter']['year'];
>    $season = $URL['Newsletter']['season'];
>    $image_url=$URL['Newsletter']['image_url'];
>    print_r($season);
>    echo'
>     YearSeasonDownload Newsletter';
>
>  echo'';
>
>  echo"$year";
>   echo"$season";
>    echo ' src=".$image_url."/>';
>    echo'';
>
>
>
>    echo'';
>
>
>    }
>  //print_r($y);
>
>     }

I think you should look again at how to query using cake. You should
look at find for a start instead of creating your own query.

Also, are you using this function in a controller, a model or a view
because there seems to be a mix of everything in there. Take the
output part at the end (the table) and put it in a view. Maybe even
the whole foreach section.

What are you seeing when you try to run this? What are your errors?

Mike.

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Which the preview to release the version CakePHP 2.2?

2012-06-26 Thread Lucas Simon Rodrigues Magalhaes
Hello there!


I have a system in CakePHP 1.2.7, and I wanna migrate to the new version. 

So I prefer waiting the new release, than migrate to CakePHP 2.1

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


cant retrive data from database into a table

2012-06-26 Thread Ditshwanelo
 
Im trying to populate data from database bt isnt,im a begginer sory for a 
lame question
 
function download()
 {
   
 $urlquery = $this->Newsletter->query("SELECT url,image_url,year,season 
FROM newsletters WHERE status='Active'");
 
  foreach($urlquery as $URL)
   {  
  //echo '';
  // echo 'Newsletters';
  
  //variables
   $hyperlink=$URL['Newsletter']['url'];
   $year=$URL['Newsletter']['year']; 
   $season = $URL['Newsletter']['season'];
   $image_url=$URL['Newsletter']['image_url'];
   print_r($season);
   echo'
YearSeasonDownload Newsletter';
 
 echo'';
 
 echo"$year";
  echo"$season";
   echo '';
   echo'';
   
 

   echo'';
   
   
   }
 //print_r($y);
  
}

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Anyone in the group from North East England?

2012-06-26 Thread phpMagpie

On Tuesday, June 26, 2012 10:22:32 AM UTC+1, georgio ch wrote:
>
>
> I am  from Greece but i would be interested can you explain me what are 
> you looking for maybe i can help.
>
>  
I am looking for someone to work closely with as I develop my business, 
eventually as an employee or maybe even a partner.  I ideally want to be 
able to meet up with them in person fairly regularly, hence why I am 
looking for someone a bit more local than Greece.

Thanks for replying though, Paul.

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cakephp user session in web service

2012-06-26 Thread Dr. Tarique Sani
With a web service your authentication system should be stateless -
that is not dependent on session

Start at 
http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html#creating-stateless-authentication-systems

HTH
Tarique

On Fri, Jun 22, 2012 at 5:18 PM, Kiran Ambati  wrote:
> Hi All,
>
> In cakephp 2.1, I am developing a cakephp application , also web service for
> third party application to access data. Output is json.
>
> First time when user logs in through web service we create some
> authentication token and for every next call client will send the
> authentication token and I have to check authentication token available to
> allow other actions of app.
>
> I wrote a login function. when user tries to logs in , it returns success or
> failure message. This is where I stuck. How to create this authentication
> token? Where does cakephp store user related session? Can I write session
> like
>
>> $this->Session->Write('check.session','random string')
>
> and then read it in second client call using
>
> $this->Session->read('check.session').
>
> Or is there any other better way to achieve this.
>
> --
> Thank you,
> Kiran.
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php



-- 
=
PHP for E-Biz: http://sanisoft.com
=

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Looking for a CakePHP Developer ASAP

2012-06-26 Thread Dr. Tarique Sani
Have you not found any or you found some which did not fit your budget
/ skill requirement?

Cheers
Tarique

On Mon, Jun 25, 2012 at 4:09 PM, Ryan Crabbe  wrote:
> Hi all,
>
> Could anyone recommend a good CakePHP developer based in London? I've been
> looking for months now and really in need of help.
>
> Exciting project and great opportunities moving forward.
>
> Skills required: Cake, MySQL, HTML, CSS, Javascript + Jquery, JSON,
> experience working with Facebook + Foursquare APIs.
>
> Start date: ASAP.
>
> Thanks for your help in advance.
>
> Cheers,
> Ryan
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php



-- 
=
PHP for E-Biz: http://sanisoft.com
=

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP Image Upload and Remote Delete

2012-06-26 Thread Dr. Tarique Sani
Create an authenticated API on B which you can call from A

HTH
Tarique

On Mon, Jun 25, 2012 at 8:09 PM, GerarD  wrote:
> Hi there...
>
> Right now, I have two system using CakePHP on two different servers. System
> A, is on a local server, while System B is hosted remotly. I need to upload
> an image in System B and be able to see it on System A. I managed to do this
> using http://milesj.me/code/cakephp/uploader uploader component, works like
> a charm.
>
> Now, the problem is that in some point, I need A to delete that image from B
> after doing something on my controller. I have no idea how to do this,
> because there is no way to call an action controller of B from A.
>
> Any ideas.?
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php



-- 
=
PHP for E-Biz: http://sanisoft.com
=

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Gearman worker as Console command

2012-06-26 Thread Dr. Tarique Sani
Yes it is possible to use a shell as a worker. Just create the shell
start and forget. Also do not try to do a lot in the worker - use your
models for that

HTH
Tarique



On Mon, Jun 25, 2012 at 9:47 PM, baur79  wrote:
> Hi,
>
> is it possable to use Console/cake some_command as Gearman Worker
> please suggest some idea?
>
> thanks in advance
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php



-- 
=
PHP for E-Biz: http://sanisoft.com
=

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Simply refresh page with Js helper.

2012-06-26 Thread JonStark
Is there a way to simply make a refresh button with Js helper so it does 
not refresh the page, but only reload the content of the page/div ?

Sorry I mis-explained.

Le mardi 26 juin 2012 13:50:04 UTC+2, JonStark a écrit :
>
> Is there a way to simply make a refresh button with Js helper so it does 
> not refresh the page/a div in the page ?
>
> Similar than what Ajax painator button "first" does ? But on a content 
> with no pagination ?
>
> Thanks a lot for your time.
>
>

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Simply refresh page with Js helper.

2012-06-26 Thread JonStark
Is there a way to simply make a refresh button with Js helper so it does 
not refresh the page/a div in the page ?

Similar than what Ajax painator button "first" does ? But on a content with 
no pagination ?

Thanks a lot for your time.

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: One model, multiple pagination in a single view with conditions?

2012-06-26 Thread JonStark
I don't think it's possible with cake.

Le mardi 26 juin 2012 05:41:16 UTC+2, 42startups a écrit :
>
> As the title suggests, is there a simple way to do this?
>
> Or should I create a separate model?
>
> Here's the code:
>
> $this->paginate = array('limit'=>30); 
> $this->Hashtag->Pin->bindModel(array('hasOne' => array('HashtagsPin')), 
> false);
> $this->set('hashtag', $this->paginate('Pin', 
> array('HashtagsPin.hashtag_id' => $id)));
> $this->set('thought', $this->paginate('Pin', 
> array('HashtagsPin.hashtag_id' => $id,'Pin.url'=>null))); 
>
> So I need to paginate 'hashtag' and 'thought' separately. I'll be 
> attaching infinite scroll jquery to both.
>
> Any ideas?
>
> Cheers
>

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Anyone in the group from North East England?

2012-06-26 Thread giorgo ch
Hi there

I am  from Greece but i would be interested can you explain me what are you
looking for maybe i can help.

2012/6/26 phpMagpie 

> Hi,
>
> If you're reading this then hopefully you are from the North East of
> England and a CakePHP developer (at any level).  If so, I would love to
> chat with you online/offline about potential collaboration on CakePHP
> developments.
>
> I am a freelance web developer and want to expand my business, but in
> order to do that I need to spend more time marketing, selling and project
> managing then I am developing, so I'm looking for someone to be able to
> take the development role on for me in some capacity.
>
> Even if you are just learning CakePHP, it would be worth us having a chat
> as there's no better way to learn than on a real project with someone who
> has already gone through (most of) the learning curve.
>
> If you are not in the North East, but think we could still work something
> out, then by all means get in touch.
>
> Regards, Paul.
>
> --
> 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 unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Anyone in the group from North East England?

2012-06-26 Thread phpMagpie
Hi,

If you're reading this then hopefully you are from the North East of 
England and a CakePHP developer (at any level).  If so, I would love to 
chat with you online/offline about potential collaboration on CakePHP 
developments.  

I am a freelance web developer and want to expand my business, but in order 
to do that I need to spend more time marketing, selling and project 
managing then I am developing, so I'm looking for someone to be able to 
take the development role on for me in some capacity.

Even if you are just learning CakePHP, it would be worth us having a chat 
as there's no better way to learn than on a real project with someone who 
has already gone through (most of) the learning curve. 

If you are not in the North East, but think we could still work something 
out, then by all means get in touch.

Regards, Paul.

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Image upload with Cake 2.x

2012-06-26 Thread Florian Krämer
https://github.com/burzum/FileStorage 

Reading the readme.md is highly recommended.

On Monday, June 25, 2012 3:06:49 PM UTC+2, Stefanie wrote:
>
> Hey guys, 
>
> I was looking for a working version for simply uploading user images 
> shown as thumbnail on their profile page. 
> I already found this approach 
> http://www.wilsolutions.com.br/content/image-upload-cakephp-20 
> but for some reason I didn't get it to work :-(( 
>
> Has anybody an idea how I can include this functionality? 
>
> Kind regards, 
> Stefi

-- 
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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php