appmodel and appcontroller would also allow you to have methods that are
available to everything would it not?
On Fri, Apr 1, 2011 at 1:15 PM, Jeremy Burns | Class Outfit <
jeremybu...@classoutfit.com> wrote:
> H. The model is your business layer really, but if you need something
> else you
I would like to know how you would setup uploadify for cake. Could you
please post instructions?
On Mar 31, 3:49 am, Ravi wrote:
> Hi Rishab,
>
> You can use Uploadify (http://www.uploadify.com/). This is a free
> flash uploading utility for PHP.
>
> And also it is quite easy to implement your ow
I'm trying to see if there is something better to do cakePHP instead
of geany. Which is cool and all but I'd like something a little
better. I actually tried out NetBeans and I like it a lot so I'll
probably use that now.
It has autocomplete, a better interface, and (for lack of better
words) figu
I can, but why should I have to validate the Category in the Post model?
I was just under the assumption cake would handle that with saveAll since
there is nothing mentioning that it can't validate HABTM models. The "ALL"
in saveAll makes it sounds like it would save all related data.
$this->Pos
Couldn't you write a custom validation rule in the Post model that examines the
count of the Category key of the data array passed in?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 1 Apr 2011, at 01:18, Krissy Masters wrote:
> How can you validate the numb
What's the fascination with/usefulness of/relevance of this thread? I haven't
seen trends that might influence anyone, any surprises or any advice. It's like
show and tell from school days.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 1 Apr 2011, at 00:23
H. The model is your business layer really, but if you need something else
you could use a component (http://book.cakephp.org/view/993/Components) simply
because they can be made available to many controllers.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
General PHP? Google PHP Groups I don’t know.
This is CakePHP specifically for CakePHP Framework. Questions related to
using the Framework.
K
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of mae...@yahoo.com
Sent: Friday, April 01, 2011 12
What do you mean??? where should I be
On Mar 31, 7:07 pm, euromark wrote:
> you are in the wrong group, sir! :)
>
> On 31 Mrz., 23:32, "mae...@yahoo.com" wrote:
>
>
>
> > How do I change an existing variable value to another variable value
> > that a user selected from a drop down menu? I h
Overload DataSource::isInterfaceSupported() method to not report
listSources() method as available if you don't like it so much.
On Mar 31, 4:34 pm, Clément Hallet wrote:
> I overloaded the $mydatasource->describe() method to return the
> $model->_schema value ($model comes as a parameter to des
How can you validate the number of "multiple" selected?
I have a Post which hasMany, and HABTM relations so saving with :
if ( $this->Post->saveAll( $this->data, array('validate' => 'only') ) )
{//only testing to get errors
but I never get any validation errors for the HABTM model
Category:
pub
Hi all,
I had been searching for the answer yet I don't find it!
I'm having a 3 steps form so I'm not saving the data in each step, only
validating it and passing it hidden in each step.
In the form I use 2 different models.
So if I try to validate like this:
$this->User->set($this->data);
$th
Mac or Ubuntu
Eclipse/PDT
xDebug
FireBug/FirePHP
FireCake
debug_kit
Smarty
Propel
--
anas mughal
http://anas-mughal.com
On Thu, Mar 31, 2011 at 3:55 PM, euromark wrote:
> @tilen:
> i know
>
> one really annoying bug, though^^
> at home i use two screens, with phpdesigner on the extra one - but
you are in the wrong group, sir! :)
On 31 Mrz., 23:32, "mae...@yahoo.com" wrote:
> How do I change an existing variable value to another variable value
> that a user selected from a drop down menu? I have a dropdown that
> allows a user to select an amount based on ounces. The shopping cart
>
@tilen:
i know
one really annoying bug, though^^
at home i use two screens, with phpdesigner on the extra one - but if
I disconnect it to work somewhere else (without second screen)
the search window etc is still way out of the screen on the "right"
where the second monitor would be (i cannot use
foreach ($posts as $post) //main foreach for displaying posts
{
///somewhere where you want comments do this
foreach ($post['Comment'] as $comment)
{
pr($comment);
}
}
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/3/31 Elguapaul
> I have 2 tables, posts and comments.
WinXP
Eclipse PHP
Yii/Cake
W - Windows
A - Apache
M - MySql
P - PHP
Oracle SQL Developer/Navicat
-Mensagem original-
De: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] Em nome de
Chris
Enviada em: quinta-feira, 31 de março de 2011 13:50
Para: CakePHP
Assunto: Re: You favori
Hi all,
I am having an issue with the cake paginator. When a user comes to my
site and does a search I am using the paginator for the search
results. My code looks like this:
function search() {
$term= '';
if(!empty($this->data)) {
$term = $this->data['Search']['searc
With CakePHP, I wish to have a delegate layer between my models and
controllers.
The delegate would handle business logic for my application. I want
this logic to be available to many controllers.
Could someone kindly guide me on what is the best practice for that.
Thanks.
--
Our newest site fo
I have 2 tables, posts and comments. I have setup posts hasMany
comments and comments belongsTo posts model relations. I am using a
foreign key in the comments table pointing back to the post id.
I want to display the Post and the all related comments. At the
moment I can display the post and a
I made some system for my customer with CakePHP 1.3.6.
It worked as we planned on the test server but it go wrong on the
customer's server.
1. Session does not work.
2. Some garbaged character is shown one moment and after then it is
shown precisely.
That system is in Japanese.
It seems on
Is there a list of deprecated items between versions of CakePHP?
Thanks,
DD
--
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 unsubscrib
On Thu, Mar 31, 2011 at 5:15 PM, euromark wrote:
> "The exact handling of the unload event has varied from version to
> version of browsers. For example, some versions of Firefox trigger the
> event when a link is followed, but not when the window is closed. In
> practical usage, behavior should b
On Thu, Mar 31, 2011 at 3:34 PM, Rishab Jain wrote:
> Hi,
>
> This works fine when I created a non-cakephp based setup. However, when I
> try to use it in a cake based setup, it gives me an error. After almost an
> hour of debugging, I saw that the problem lies in,
>
> $('#file_upload').up
"The exact handling of the unload event has varied from version to
version of browsers. For example, some versions of Firefox trigger the
event when a link is followed, but not when the window is closed. In
practical usage, behavior should be tested on all supported browsers,
and contrasted with th
or unload event...
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/3/31 euromark
> the only way i know is that you use ajax and repeatedly make an ajax
> call as long as he is on the site
> as soon as there is no call anymore (for more than x seconds) you know
> that he either closed the
Model::create() takes an array as the first parameter.
http://api.cakephp.org/class/model#method-Modelcreate
http://book.cakephp.org/view/1031/Saving-Your-Data
On Thu, Mar 31, 2011 at 3:52 PM, cake-learner wrote:
> I have a problem saving model in a loop. I am not sure the problem is
> executing
the only way i know is that you use ajax and repeatedly make an ajax
call as long as he is on the site
as soon as there is no call anymore (for more than x seconds) you know
that he either closed the browser, surfed to another page or simply
lost the connection :)
On 31 Mrz., 23:01, Shashank wrot
Hi Guys,
I want to know is there any way of knowing if a user has left a
particular page.
What i mean is, suppose a user is on a page game/start, and he just
closes his browser without logging out of the game than how do i get
to know if he left the game or not??
Thanks in advance!!!
--
Our new
On Thu, Mar 31, 2011 at 4:34 PM, Krissy Masters
wrote:
> What about 'action' => $this->here if it’s the same url?
Not action, url:
'url' => $this->here
Same as using params['url']['url']. I don't know why I didn't think of this.
--
Our newest site for the community: CakePHP Video Tutorials
h
What about 'action' => $this->here if it’s the same url?
-Original Message-
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of euromark
Sent: Thursday, March 31, 2011 5:49 PM
To: CakePHP
Subject: Re: form, url, and id
you probably just want to post to the same
On Thu, Mar 31, 2011 at 4:19 PM, euromark wrote:
> you probably just want to post to the same url, right?
>
> use 'url'=>'/'.$this->params['url']['url']
> and you are fine!
Right! I hadn't thought of that.
> PS: yes, i opened a ticket for this misbehavior in the current code
> and it is now clos
no, I dont think so
sometimes I find it harder to read but other than that it should
usually work just fine :)
what i really helps with are generic controller actions.
On 31 Mrz., 17:29, "Krissy Masters"
wrote:
> Sometimes because of naming conventions / join tables you might end up with
> a lo
you probably just want to post to the same url, right?
use 'url'=>'/'.$this->params['url']['url']
and you are fine!
PS: yes, i opened a ticket for this misbehavior in the current code
and it is now closed in future versions
2.0 etc
http://cakephp.lighthouseapp.com/projects/42648/tickets/1418-form
I have a problem saving model in a loop. I am not sure the problem is
executing
a query twice in such a short time or how I am calling is the problem.
I tried with $this -> controller -> Notification -> save but didn't
work so i am trying to do with
maunally query instead but still get the same res
Hi,
This works fine when I created a non-cakephp based setup. However, when I
try to use it in a cake based setup, it gives me an error. After almost an
hour of debugging, I saw that the problem lies in,
$('#file_upload').uploadify({
'uploader' : 'path_to_uploadifyswf/uploadify
noo...you can pass an array into 'url' key in $this->Form->create
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/3/31 cricket
> I found the solution. In debugging inside FormHelper, I was paying
> attention to the block of code after:
>
> if (empty($options['url']) || is_array($options['
i will try.
In fact it's strange. Because i don't touch anything and it works from my
home computers.
It doesn't from my work, maybe because of proxy setting but it's weird.
On Thu, Mar 31, 2011 at 8:42 PM, cricket wrote:
> On Thu, Mar 31, 2011 at 10:43 AM, damien d
> wrote:
> > Hi,
> >
>
phpDesigner is one of the best editors i've ever seen...
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/3/31 Chris
> How often do you use NetBeans over geany? I haven't really figured out
> how I want to use Netbeans
>
> On Mar 31, 7:10 am, LipeDjow wrote:
> > Ubuntu
> > NetBeans / Gean
I found the solution. In debugging inside FormHelper, I was paying
attention to the block of code after:
if (empty($options['url']) || is_array($options['url'])) {
... because I was passing an array. It took me awhile to notice that,
if the the url is a string, it's passed unmolested. So:
array(
On Thu, Mar 31, 2011 at 8:15 AM, Jeremy Burns | Class Outfit
wrote:
> If you are returning this data to display on a view you wouldn't want to show
> this much data,
> so you'd use pagination which cuts down the number of rows returned. This
> won't apply if
> you are getting the data for some s
On Thu, Mar 31, 2011 at 1:03 PM, Rishab Jain wrote:
> Hi,
>
> Since cake is taking care of the session, I want to know who all members of
> the site are currently logged in.
>
> Has anybody ever written code something similar to this? It would be great
> if you could help me here.
Rishab, have a
On Thu, Mar 31, 2011 at 10:43 AM, damien d wrote:
> Hi,
>
> I have trouble with the Auth component.
>
> I try something really simple :
> - I create a user db (with name,password field)
> - I use a appcontroler with this code :
>
> var $components = array("Session","Auth");
> function bef
If I'm interpreting it correctly, you have a table 'likes' that has the
following fields:
user_id (unique, represents the user_id of the person who is liked)
count (number of users who indicated that they like this user_id)
so that Like belongsTo User, and conversely, User hasOne Like. Assum
I am having major issues uploading image files. Where is a good
tutorial working for cakephp 1.3 that I could look at to see how to
upload files to the sever(not database) and how I can turn these
images in to thumbnails afterwards?
I've tried looking on the bakery and some other places but everyt
I have two models: Team and Season, these are binded by Membership
model. As explained in book, i've designed it as:
Team and Season hasMany Membership
Membership belongsTo Season and Team
If I want create a membership row:
function add($season_id, $team_id)
{
if(($this->Season->e
Hi,
Since cake is taking care of the session, I want to know who all members of
the site are currently logged in.
Has anybody ever written code something similar to this? It would be great
if you could help me here.
regards,
Rishab
--
Our newest site for the community: CakePHP Video Tutorials
How often do you use NetBeans over geany? I haven't really figured out
how I want to use Netbeans
On Mar 31, 7:10 am, LipeDjow wrote:
> Ubuntu
> NetBeans / Geany
> SVN / Git
> Apache
> MySql
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new
I love phpDesigner. If I was still in windows I would definitely be
using that.
On Mar 31, 11:49 am, Tilen Majerle wrote:
> Windows 7
> phpDesigner
> SVN / Git
> XAMPP (Apache + Mysql)
> Shell Scripts
> --
> Lep pozdrav, Tilen Majerlehttp://majerle.eu
>
> 2011/3/31 Akeda Bagus
>
>
>
>
>
>
>
> >
Windows 7
phpDesigner
SVN / Git
XAMPP (Apache + Mysql)
Shell Scripts
--
Lep pozdrav, Tilen Majerle
http://majerle.eu
2011/3/31 Akeda Bagus
> On Thu, Mar 31, 2011 at 4:38 AM, Shinya Koizumi
> wrote:
> > CentOS
> > Subversion
> > Zend Studio( Remote Server + SVN )
> > Apache/Mysql
> > shell Scr
Sometimes because of naming conventions / join tables you might end up with
a long crazy name or easily misspelled like
$this->EmployersEmployee->doSomething(); (EmployerEmployee is an example so
no answers saying use a different name or change relations, that's not what
the question is about)
or
Hi,
I have trouble with the Auth component.
I try something really simple :
- I create a user db (with name,password field)
- I use a appcontroler with this code :
var $components = array("Session","Auth");
function beforeFilter() {
$this->Auth->fields = array('username
Hi,
Does anybody know how to implement comet in cakephp?
regards,
Rishab
--
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
On Mar 31, 2011, at 02:37, ZAky wrote:
> Why trying to use gettext in the controller is not working?
> function __translate($data){
>foreach ($data as $key => $value) {
>$data[$key] = __($value,true);
>#$data[$key] = $value.'123'; This will work
>}
>
Found my problem: my server sets page expires to 60 seconds by
default. If I wait 60 sec. after the page is loaded to delete an item,
it works correctly.
I have added $this->disableCache() to my admin controller methods (or
you can add it to the beforeFilter if your controller deals only with
admi
If you are returning this data to display on a view you wouldn't want to show
this much data, so you'd use pagination which cuts down the number of rows
returned. This won't apply if you are getting the data for some sort of
processing, but it was worth a mention.
Jeremy Burns
Class Outfit
jer
On Thu, Mar 31, 2011 at 4:38 AM, Shinya Koizumi wrote:
> CentOS
> Subversion
> Zend Studio( Remote Server + SVN )
> Apache/Mysql
> shell Scripts( push to live )
>
Curious how do you guys using shell script to deploy, want to share?
--
regards,
Akeda Bagus
--
Our newest site for the community:
What do you mean?
On 31 Mrz., 14:03, Jeremy Burns | Class Outfit
wrote:
> Pagination?
>
> Jeremy Burns
> Class Outfit
>
> jeremybu...@classoutfit.comhttp://www.classoutfit.com
>
> On 31 Mar 2011, at 13:01, heohni wrote:
>
>
>
> > If I use the contain method I am getting an array like:
> > Array
>
Pagination?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 31 Mar 2011, at 13:01, heohni wrote:
> If I use the contain method I am getting an array like:
> Array
> (
>[0] => Array
>(
>[Member] => Array
>(
>
If I use the contain method I am getting an array like:
Array
(
[0] => Array
(
[Member] => Array
(
[id] => 5
)
[Payment] => Array
(
[0] => Array
(
Windows Vista
PHPDesigner
SVN / Git
WAMP (Apache + Mysql)
Shell Scripts (push delta to live)
On 31 Mrz., 13:10, LipeDjow wrote:
> Ubuntu
> NetBeans / Geany
> SVN / Git
> Apache
> MySql
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePH
If you have that kind of need you are having database architecture
issues... its not a cakephp issue.
Ask yourself how you do that query in plain SQL.
Cheers
2011/3/31 heohni :
> Hi,
>
> I have the following models:
>
> Member hasMany Payments
> Payment belongs to a member
>
> To get now all mem
Hi,
I have the following models:
Member hasMany Payments
Payment belongs to a member
To get now all members and their payments I do the following
statement:
$this->paginate = array(
'fields' => array(.),
'conditions' => array(...),
'contain' => array(
Ubuntu
NetBeans / Geany
SVN / Git
Apache
MySql
--
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
I overloaded the $mydatasource->describe() method to return the $model-
>_schema value ($model comes as a parameter to describe). It would
work but an other issue (at least, it seems to be for me).
My real issue is elsewhere and I wonder if it's a mistake in the
global design. Let's focus on it :
> Does anybody know of a good multiple file upload in cakephp (or even php
> for that matter). I'm not looking for many input tags for upload, but for an
> interface where I can upload many files in one go.
>
> And it should be a freeware.
>
This is multiple file upload in jquery
> http://aquant
Try changing the method of sending data in forms to GET...
$this->Form->create('Model', array('type'=>'get'))
2011/3/31, OldWest :
>
>
> I've hit a roadblock and cannot for the life of me get over.
>
> I have a search() action which is working as expected.
>
> From that function, I pass my paginat
hi friends,
i have a issue which is other than CAKE, i hope some on group will
definitely help me,
Issue:
i have two date picker in on form, one is "START" and another is
"END". in date picker the min date i have given is current date. now i
want to set the min date of "END" date picker as per "S
Thanks Ravi. It worked. And implementing it was pretty easy as well.
regards,
Rishab
On Thu, Mar 31, 2011 at 1:19 PM, Ravi wrote:
> Hi Rishab,
>
> You can use Uploadify (http://www.uploadify.com/). This is a free
> flash uploading utility for PHP.
>
> And also it is quite easy to implement your
Hi,
The exact reason is that the "mod_rewrite" apache module is not
enabled. You need to enable it.
1. Find the httpd.conf file.
2. Find the "mod_rewrite" line.
3. Remove the "#" from front of this line.
4. Restart the apache.
5. Please also search for the "how to enable mod_rewrite" in google
f
Try after setting the debug to "2" or "3". It will show you the exact
reason.
Do let me know if works.
On Mar 31, 1:45 am, lemp wrote:
> I tested on another server and it does work. I suspect this may be an
> Apache configuration problem.
>
> Any suggestion on what to look for?
--
Our newest s
Hi Rishab,
You can use Uploadify (http://www.uploadify.com/). This is a free
flash uploading utility for PHP.
And also it is quite easy to implement your own multiple file
uploading functionality. Do let me know if you need instructions to
implement your own functionality.
Thanks,
Ravi Verma
On
Hi,
Does anybody know of a good multiple file upload in cakephp (or even php for
that matter). I'm not looking for many input tags for upload, but for an
interface where I can upload many files in one go.
And it should be a freeware.
regards,
Rishab
--
Our newest site for the community: CakePH
Why trying to use gettext in the controller is not working?
function __translate($data){
foreach ($data as $key => $value) {
$data[$key] = __($value,true);
#$data[$key] = $value.'123'; This will work
}
return $data
}
The same code as a view helpe
74 matches
Mail list logo