look at elements
On Fri, May 15, 2009 at 2:50 PM, seanislegend
wrote:
>
> *bump*
> >
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.co
Thought of another one.
Paginate settings, and paginate call. Why do they have the same
name? When learning how Cake works, although it's proper OOP to do
so, it's a bit confusing to see:
$this->paginate = array('contain' => 'User');
$this->set('posts', $this->paginate());
I think it would be
Help?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.co
bump
--
View this message in context:
http://www.nabble.com/Problems-with-belongTo-and-hasMany-tp23567941p23568933.html
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G
Hello hahmadi82,
Maybe using a code like this:
$schools = $this->find("all", array("recursive" => 2));
The option recursive take more info in the models.
On May 15, 8:19 pm, hahmadi82 wrote:
> Hi, I'm new to cakephp and I'm confused about the model setup...
>
> I have class kids "belongsTo" p
Hi, I'm new to cakephp and I'm confused about the model setup...
I have class kids "belongsTo" parents and class school "hasMany" kids. Now
in my index for kids I can retrieve all parent information based on the
foreign key. However in school, i have access to the kid information but not
the pa
Great guys! Thanks a lot!
Claudiu Apetrei wrote:
>
>
> In the app>config>routes.php. You will find the default /pages/
> setting, you can change it to what controller and action you want.
>
> On May 15, 6:46 pm, mig_akira wrote:
>> Hello!
>>
>> I'm making a website where the first home page
Indeed it helped! Thanks!
Kyo-4 wrote:
>
>
> This might help:
>
> http://groups.google.ch/group/cake-php/browse_thread/thread/ee9456de93d2eece/7c930c0b46b7eafc?lnk=gst&q=isAuthed#7c930c0b46b7eafc
> >
>
>
--
View this message in context:
http://www.nabble.com/Auth--%3E-How-to-show-a-mess
*bump*
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.c
I'm sorry that i can't help you with an issue, but if you have got a
moment could you , please clarify the advantage of using UUID instead
of ID?
Thank you in advance.
On 15 май, 22:42, tcornett wrote:
> I am trying to migrate data from a schema that used auto_increment
> integers in a MySQL da
I have a problem installing CakePHP(v. 1.2.3.8166) to MT(dv)
I created "cake" directory and uploaded all files there and if I tried
to access mydomain.com/cake then browser tries to download "download"
file.
What is the problem and how I can fix it?
--~--~-~--~~~-
I have a multi language site where people can change language using
the P28nController and P28nComponent.
I bootstrap.php I set a default language.
The problem right now is that somehow I got an invalid Config.language
setting.
If I in my code do:
---
print_r($this->Session->read("Confi
I am trying to migrate data from a schema that used auto_increment
integers in a MySQL database to a newly built CakePHP framework
application which will use UUIDs for the primary keys. I am having
issues updating the previous records and replacing the old ids ('1',
'2', '3', etc.) with generated
I'm seeing it in FF3.0.10/linux (I guess that's what I get for being a
linux fan-boy)
On Fri, May 15, 2009 at 2:21 PM, mark_story wrote:
>
> The issue with Firefox is bound to Windows only. Its an issue with
> how windows actually functions. Because the UI elements are 16bit
> they cannot exce
Say what? LOL. Sorry Mark, I truly am interested to understand what
the issue was, I just don't think I really understood your
explanation. Would you be willing to explain it further? A "nope"
will suffice too, of course. :)
On May 15, 2:21 pm, mark_story wrote:
> The issue with Firefox is
The issue with Firefox is bound to Windows only. Its an issue with
how windows actually functions. Because the UI elements are 16bit
they cannot exceed the pixel dimensions of the 16bit space. So
mozilla is bound by shoddy windows widgets, and the Api was bound by
that implementation. I'm goin
I'm offended that you think that's how I would respond to the tickets.
Firstly you put them in the wrong place, secondly, they've been fixed.
So there.
-Mark
On May 14, 11:58 pm, Mr-Yellow wrote:
> Anyone want to place bets on how long it is before the tickets are
> deleted and ignored?
>
> -B
I had the same problem with FF cutting off the model page at line
1820. Disabling Firebug for the API pages fixed it for me.
-Matt
http://www.pseudocoder.com
On May 15, 6:27 am, John Andersen wrote:
> Hi Burzum
>
> Can you open the following location in FF 3.0.10 (which I have), as I
> do have
Great thanks!
On May 14, 10:02 pm, Kyo wrote:
> Use require_once() before the class statement and it'll do the trick.
>
> require_once LIBS . 'view'. DS . 'helpers' . DS . 'ajax.php';
> class MyAjaxHelper extends AjaxHelper {
>
> }
>
> hth
--~--~-~--~~~---~--~~
Yo
On Thu, May 14, 2009 at 11:49 PM, Mr-Yellow wrote:
>
> Yeah guys dropping IE is the best bet. Seeing FF doesn't work either.
>
> What I should really do is stop testing in the browser that the VAST
> majority of my surfers use.
>
> Take your browser fanboy crap elsewhere, I just want the document
It does not fail for me. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-
US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)
As suggested, perhaps it's caused by a rogue extension?
On May 15, 7:29 am, "oliver.pra...@googlemail.com"
wrote:
> "http://api.cakephp.org/view_source/mod
Perfect!!! Many thanks. This is what I was looking for.
Best regards,
Roman
brian wrote:
> Set $this->Auth->loginError in AppController::beforeFilter().
>
> On Fri, May 15, 2009 at 10:57 AM, Roman Brunnemann
> wrote:
>
>> Hi,
>>
>> short question and I guess pretty easy for Pros.
>>
>> How
I haven't understand .
Can you make me and example?
Many Thanks
On 15 Mag, 17:56, AD7six wrote:
> On May 15, 5:32 pm, "marco.rizze...@gmail.com"
>
> wrote:
> > Hi
> > I have three model that have a triple relation between them.
> > How can I manage this triple relation between Model in CAKEPHP?
Thanks a lot for the answer! That kind of database selection is indeed
perfect for me and much simpler.. don't have to do any custom db
"drivers". Thanks again!
I have couple questions though, as this is the first time I'm using
CakePHP and don't know much about it yet.
> > 1. Can I link tables
Sweet deal!
Thanks man! Great job on the book lots of great tips and tricks indeed.
Thanks for sharing your insight.
Dave
-Original Message-
From: Matt Curry [mailto:m...@mcurry.net]
Sent: May-15-09 1:57 PM
To: CakePHP
Subject: Re: Routes regarding -> e-book by Matt Curry
Hey Dave,
G
Hey Dave,
Great question. Something I will definitely add to the next version.
Try:
Router::connect('/:prefix/:controller/add', array('action' =>
'edit'));
-Matt
http://www.pseudocoder.com
On May 14, 6:57 pm, "Dave Maharaj :: WidePixels.com"
wrote:
> In the section regarding the add / edit f
And, if you have three habtm relations between model 1 and model2?
On May 15, 5:56 pm, AD7six wrote:
> On May 15, 5:32 pm, "marco.rizze...@gmail.com"
>
> wrote:
> > Hi
> > I have three model that have a triple relation between them.
> > How can I manage this triple relation between Model in CAK
> I would really appreciate any thoughts that anyone has on this.
can you put the code of the behavior in a pastebin ?
i use imagecreatefrom* in a behavior without any problem..
--
pietro
--~--~-~--~~~---~--~~
You received this message because you are subscribed
In the app>config>routes.php. You will find the default /pages/
setting, you can change it to what controller and action you want.
On May 15, 6:46 pm, mig_akira wrote:
> Hello!
>
> I'm making a website where the first home page should be the news page. I
> would like to change the default /pages
> How can I do that?
modifying config/routes.php where there is a line like:
Router::connect('/', array('controller' => 'Name of your controller',
'action' => 'Name of your action'));
more info: http://book.cakephp.org/view/341/Routes
--
pietro
--~--~-~--~~~---~--~
For example,Usually, we write
[code]
$result = $this->Model->save();
if(!$result){
//...
}
[/code]
This way ,we will write the model error handle code everywhere we use model
save or update function. I mean is there a way that we can write a function
in app_controller or other places than can he
For example, we usually write these code in our app$result =
$this->model->save();
if($result){
$this->log->(//);
}
--
Thanks
Joshua
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post
On May 15, 5:32 pm, "marco.rizze...@gmail.com"
wrote:
> Hi
> I have three model that have a triple relation between them.
> How can I manage this triple relation between Model in CAKEPHP?
via belongsTo, hasMany and a model for each table - the usual way.
hth,
AD
--~--~-~--~~-
Hello!
I'm making a website where the first home page should be the news page. I
would like to change the default /pages/index.ctp to another one, like
/news/index.ctp or /news/viewNews.ctp, etc.
How can I do that?
Thanks!!!
--
View this message in context:
http://www.nabble.com/changing-th
Actually I tried displayfield earlier when I was searching, but it
didn't work, presumably because: "The model will use name or title, by
default." and I am trying to output "name" (so it should be doing that
anyway).
On May 15, 4:33 pm, number9 wrote:
> OK, so I tried setting recursive to two a
Yes is related to cake, well all I want to know is if there is a
solution to this in cake.
I have Categories like
Array(
[0] => Array(
[Category] => Array(
[id] => 1,
[parent_id] => null,
[name] => '
OK, so I tried setting recursive to two again (didn't work earlier)
and it worked!
Is there a better method to do this for future reference as it seems
to place a bit of a load of the database...
On May 15, 4:12 pm, number9 wrote:
> Hi all,
>
> Apologies for this newbish question, I've searched
set $displayField in the model..
http://book.cakephp.org/view/438/displayField
--
pietro
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.c
Hi
I have three model that have a triple relation between them.
How can I manage this triple relation between Model in CAKEPHP?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, s
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups
Set $this->Auth->loginError in AppController::beforeFilter().
On Fri, May 15, 2009 at 10:57 AM, Roman Brunnemann wrote:
>
> Hi,
>
> short question and I guess pretty easy for Pros.
>
> How can I customize the message from the Auth component. Everything
> works fine but in case the login fails I
Hi all,
Apologies for this newbish question, I've searched for hours trying to
resolve this with no joy so would appreciate it if you could point me
in the right direction.
I'm trying to setup a simple website (my first cakephp project, having
become OKish at PHP/MYSQL).
Basically there are thr
On 15 Mag, 00:10, emmexx wrote:
(cut)
> I created a model for segment with a belongsTo variable:
>
> var $belongsTo = array(
> 'Car' => array(
> 'className' => 'Parameter',
> 'foreignKey' => 'par1_id',
>
supposed i want to build an application that only permit a user only login
once in a time.
how to check the users session to ensure that a user currently offline or
already use the application from a certain host?
--
---
I Don't Know Who/What I Am Yet, But I Know Who/What I Am Not!
-
Hi folks,
I am creating a pretty straightforward application and am using the
image behaviour plugin to manage news splash images. This all works
well on my development server (PHP5, sensible set up) but when I
installed on the staging server (PHP4, unknown and weird set up) the
image upload was
Hi,
short question and I guess pretty easy for Pros.
How can I customize the message from the Auth component. Everything
works fine but in case the login fails I got "Login failed. Invalid
username or password". But I need to change this message. I have to make
it shorter to fit in my layout.
Sorry to bother minor oversight.
$this->Auth->autoRedirect = true; was the problem
changed to
$this->Auth->autoRedirect = false;
_
From: Dave Maharaj :: WidePixels.com [mailto:d...@widepixels.com]
Sent: May-15-09 11:54 AM
To: cake-php@googlegroups.com
Subject: redirect questi
I am trying to direct a user upon successful login. It was working but now
its just going directly to the default case.
Is there something missing?
function login()
{
if ($this->Auth->user()) {
if (!empty($this->data)) {
$san = new Sanitize();
Hi,
the current site I'm developing has a 3 column layout. The left column
has 2 top-ten lists, the middle has the main content and the right has
a few ads and a 'featured' box.
At the moment I'm using requestAction() and caching to get the data
for the left and right hand side columns, but I kn
oh thx i haven't found that post :)
On 15 Mag, 14:59, grigri wrote:
> Hi Ernesto
>
> This (calculated/dynamic fields) has been brought up several times
> here; this is a link to the most relevant thread I can find:
>
> http://groups.google.com/group/cake-php/browse_thread/thread/f823cc7f...
>
>
Hi Ernesto
This (calculated/dynamic fields) has been brought up several times
here; this is a link to the most relevant thread I can find:
http://groups.google.com/group/cake-php/browse_thread/thread/f823cc7f168cd619
Should help you out
hth
grigri
On May 15, 12:47 pm, Ernesto wrote:
> hello.
Hey, thanks! Matt rocks.
On May 14, 5:05 am, Nate wrote:
> Hey everyone,
>
> Matt Curry (of CakePHP Digest fame) has just published a *free* e-book
> on advanced development techniques with CakePHP. If you're already a
> seasoned Cake developer, this book will help you pick up many new
> tricks
hello.
i'm having some troubles :(
i have an Order model hasMany Item model.
Item should have a calculated field (Item.Cost/Item.Weight)
- i modified $queryData in beforeFind callback... but this callback
doesn't seems to work if the model isn't the primary one.
- i modified $results in after
"http://api.cakephp.org/view_source/model/#line-1820"; Fails by me as
stated
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.0.10) Gecko/
2009042316 Firefox/3.0.10
Oliver
On May 15, 12:27 pm, John Andersen wrote:
> Hi Burzum
>
> Can you open the following location in FF 3.0.10 (which I ha
hello
Creating excel sheet with dynamic data and send email with excel shett
attachment. Its runing fine on localhost but on server create excel
sheet and go mail whith attachment but my excelsheet is blank my data
is not write in excelsheet .whet is problem . pls hep me
here my code
mail sent
Hello,
I have a form which has a password field..
$form->password('userpassword',
array('id'=>'user_registration_password','label'=>'','class'=>'inputbox1',
'value'=>''));
The above field with name userpassword works fine.. but when I change
'userpassword' to just 'password' , the
Hi Burzum
Can you open the following location in FF 3.0.10 (which I have), as I
do have the problem that the code disappears after that line!
"http://api.cakephp.org/view_source/model/#line-1820";
Then return and tell me what you got!
John
On May 15, 12:18 pm, burzum wrote:
> I agree with
Hi Cake people,
I have spent much time in make this work but nothing.I am using auth
which is working ok and i want to update the last_login field in users
table.But i can't.Most of my attempts lead to create a new row in
table with an empty user contained the updated field.I have read all
of the
LOL IE support.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googl
- No virtual fields support
On 8 Mag, 00:29, Nate wrote:
> Well, maybe hate's a strong word. Let's say, what do you like the
> least? Kind of an odd question, I know, but since we've kick-started
> development of a new version, I'd like to know what the most
> frustrating things with the frame
I agree with AD7six, the tickets are bad, you don't even mention the
exact version number of the browsers. That's how i expect end users to
report a bug, not a developer. ;) I never had any problems with the
API documentation and i regularly update FF, my current version is
3.0.10, it works also i
I found my error!
I was using plugin architecture so the model's correct name is
"plugin_name(dot)model_name"!!!
Please read this thread about this problem:
http://groups.google.it/group/cake-php/browse_thread/thread/8c750cd28f43225b?hl=it
Thanks to all!
Bye!
On 12 Mag, 09:11, MPeg wrote:
>
I found my error!
I was using plugin architecture so the model's correct name is
"plugin_name(dot)model_name"!!!
Thanks to all!
Bye!
On 13 Mag, 21:57, deefens wrote:
> Dr. Loboto, you saved my day. Thank you so much, now its working
> properly
>
> @MPeg: check your model-filenames, in my situa
I didn't work with it yet but afaik 'prefix' => 'admin'
On May 15, 12:57 am, "Dave Maharaj :: WidePixels.com"
wrote:
> In the section regarding the add / edit functions in 1 he has the routes
> Router::connect('/:controller/add', array('action' => 'edit'));
>
> How would you configure this for t
Yes I tried that and it didn't work had the same problem as if I did
$this->Document->id,
would return the id only on saving an existing document not on saving
a new Document
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
I identify the service by url but only at the access point of service
but in the subsequent action I can't identify the service by url
unless
I keep the service_id in the url (for example in GET) but I would like
to avoid that otherwise I have to review all code
On 15 Mag, 03:40, "Dr. Loboto" w
On May 15, 8:56 am, AD7six wrote:
> On May 15, 5:58 am, Mr-Yellow wrote:
>
> > Anyone want to place bets on how long it is before the tickets are
> > deleted and ignored?
>
> How about we place bets on how long until:
>
> 1) You create them in the right place
> 2) You submit patches
Btw. work
67 matches
Mail list logo