AppError have controller reference: $this->controller - it is not
surely some of your controllers but an AppController at least. You can
call beforeFilter() on it. Same for beforeRender(). I solve this
problem such way.
On Aug 9, 10:45 am, David wrote:
> I had been wondering why my error page ca
Thanks for all replies. Here is what finally worked (if it might be
useful for you):
I overwrote the cakeError in app_model.php
// if this trigger - SILENT_MODEL_ERRORS is on, 'missing db table'
error wont produce and stop your stuff
function cakeError($error, $params)
{
Please follow below this code:
function admin_edit($id = null)
{
if(empty($this->data))
{
$where = array('Product.id'=>$id);
$this->data = $this->Product->find($where);
}
if(!empty($this->data))
{
if($this->data->save($this->data))
{
$this->redirect(a
thanks you, euromark (munich) and JamesF
My form was
create('Product', array('action'=>'admin_edit'));?>
That's why causing wired error. After I changed to
create('ProProduct', array('action'=>'edit'));?>
everything went to fine :)
*
*
*
*
*
*
*
*
On Sat, Aug 8, 2009 at 6:53 PM, euromark (munic
You have mistake class name your class name below :
On Sun, Aug 9, 2009 at 3:19 AM, free wrote:
>
> It happens when I write a very simple page script.
> I just create the a model, controller and view just as the Cake
> tutorial say,
>
> related codes:
>
> - app/models/user.php
> cl
You have a in your view? No the layout? Does the HTML source look right?
Anyway, your onHover function won't work because you're not passing
the full path to the image. Remember that HtmlHelper expectes a
relative path from webroot/img. However, you're only passing the
filename, instead of '/img
I have to move a site from my server to another, which is a
shared-hosting acct. with cPanel. Currently, the setup is as follows
(in /var/www/vhosts/SITE):
app/
webroot
cake -> cake_1.2.3.8166
... where cake is a soft link to the libs. Normally, the libs point to
/var/lib/php/cake but, fot t
Hi everyone,
I was wondering if anyone has been able to successfully get cakephp
sessions to work outside of the framework? I had seen that article in
the bakery, but that didn't turn out to be very helpful.
Any guidance would be much appreciated... Right now I am trying to
access session vars wi
I assume you want only the relevant parts.
In my view I have:
Animal Tlatoque
link('evoicesindex'); ?>
css('evoices'); ?>
link($html->image('Library3Sized.gif', array
('alt'=>'Library', 'onmouseover'=>'onHover(this)',
'onmouseout'=>'onUnHover(this)')), arr
Something so simple...
Was missing exit; in the controller.
Looks like it was trying to pull up the address of the id after it was
deleted, hence the not found error
Thanks,
Dave
-Original Message-
From: brian [mailto:bally.z...@gmail.com]
Sent: August-09-09 7:12 PM
To: cake-php@googl
The bookmark does get deleted in any debug setting 0 1 2.
No debug(); in the controller or model.
All the other js works on the Bookmark page...just the delete seems to have
a hick up somewhere.
Dave
-Original Message-
From: brian [mailto:bally.z...@gmail.com]
Sent: August-09-09 7:12
does anybody know if there is a cake function for the WHERE NOT EXISTS
functionality?
i have "users" who have many "roles" in the join table "role_users" -
and i want to display the ones not having any roles yet
id user_id role_id
1 2 3
2 3 3
etc
(user 1 not in the list yet, so does not have
Is the Bookmark deleted? Do you have any code referencing Debugger? In
beforeFilter or index action, perhaps?
On Sun, Aug 9, 2009 at 5:27 PM, Dave Maharaj ::
WidePixels.com wrote:
> I have this in the controller:
>
> function delete($id = null) {
> if ($this->RequestHandler->isAjax()) {
try to write:
class User extends AppModel
On 8/9/09, free wrote:
>
> It happens when I write a very simple page script.
> I just create the a model, controller and view just as the Cake
> tutorial say,
>
> related codes:
>
> - app/models/user.php
> class UserModel extends AppModel{
>
I have this in the controller:
function delete($id = null) {
if ($this->RequestHandler->isAjax()) {
if ($this->Bookmark->validBookmark($id,
$this->Auth->user('id')) == true) {
$this->Bookmark->del($id);
} else {
$this->redi
Hello Sarah,
Can you please paste the code here so that we can help you right a
way.
On Sun, Aug 9, 2009 at 9:38 PM, brian wrote:
>
> It could be a lot of things. Can you post your code?
>
> On Sat, Aug 8, 2009 at 9:32 PM, Sarah wrote:
> >
> > I'm having trouble getting my javascrip
Hello Sarah,
Can you please paste your code here so that we can help you right a way.
With out telling the pros & cons for that...
On Sun, Aug 9, 2009 at 9:38 PM, brian wrote:
>
> It could be a lot of things. Can you post your code?
>
> On Sat, Aug 8, 2009 at 9:32 PM
Hi, I have two form->select and i want that after option of one be
choice, values of other select change.
For example,
select 1:
option: A
option: B
if I choose option A, select 2 will show C and D
if I choose option B, select 2 will show E and F
what should I do?
--~--~-~--~~---
If you note, your classname is UserModel, and not User, because this
cake can't find it. Your model's name must be User.
On 9 ago, 06:19, free wrote:
> It happens when I write a very simple page script.
> I just create the a model, controller and view just as the Cake
> tutorial say,
>
> related
I just wrote this whole long explanation, does it take time to be
approved or something
On Aug 7, 10:44 am, OmarC wrote:
> Thanks for the reply Vijay.
>
> The problem is, when the form with the large file is submitted, the
> code in the controller is not executed. This only happens when the
> fi
I have recently battled with the same problem as you OmarC I can
explain whats happening to you but unfortunately there is no real
solution.
The two major php.ini settings which can be explained for uploads are
as follows:
post_max_size - sets max size of post data allowed. (We will work on
8M de
i am embedding a custom forum in cake.
it has the following code
HTML Code:
Name
Successful message
A small description of the field
as we knw we use some thing like this to producce the inp
i am embedding a custom forum in cake.
it has the following code
HTML Code:
Name
Successful message
A small description of the field
as we knw we use some thing like this to prod
It happens when I write a very simple page script.
I just create the a model, controller and view just as the Cake
tutorial say,
related codes:
- app/models/user.php
app/controllers/users_controller.php -
app/views/users/register.ctp ---
Just a test page
That didn't do it for me...
On Aug 8, 6:26 am, brian wrote:
> Open database.php and remove the last "?>". There have been others
> who've reported the same trouble and it turned out to be whitespace
> after the closing tag. PHP doesn't require it so it's safer to remove
> it.
>
> On Sat, Aug 8,
It works ok if debug = 0
But how can I make it work if debug > 0?
On Aug 8, 3:30 am, Dibyendu Mitra Roy wrote:
> You need to check 3 more things:
>
> - mod_rewrite is enabled in httpd.conf
> - You are using correct database info
> - If the above 2 does not solve then toggle the debug level from
Drupal is a highly extensible CMS with a fairly powerful API, and the
progress from Zengine made it easy to theme as well
Jake (for Joomla) and Drake (for Drupal) are plugins that allow a Cake
application to be called from certain URIs within the CMS, but this
has a much greater overhead and ther
As i understand it... drupal isn't so much of a framework and more of
a cms. Of course it probably does have an api. I have worked with
drupal once. I got frustrated and moved on. It is really hard to
create a theme in it, if you ask me.
Cake is a framework much like ruby on rails.
If you don't
Probably, your script is sending image headers to the browser. You'll
have to post some code, though, before anyone can say for sure.
On Sun, Aug 9, 2009 at 12:27 AM, arif hossen wrote:
> Dear All,
>
> Please help me.
>
> I Create a graph by cakephp.My problem is when graph create then a message
Does anyone have CakePHP experience and Drupal custom module
experience?
If so, what is your opinion of the Drupal API for writing custom
modules?
I have a friend that is about to do a re-design for his Drupal app and
is considering changing frameworks. They would have to design 3-4
custom modul
It could be a lot of things. Can you post your code?
On Sat, Aug 8, 2009 at 9:32 PM, Sarah wrote:
>
> I'm having trouble getting my javascript to work.
>
> The api recommends using link and putting the scripts and contents
> into the webroot/js folder. I tried this, but it isn't working.
>
> I'm
There could be problem with image generation
On Sun, Aug 9, 2009 at 9:57 AM, arif hossen wrote:
> Dear All,
>
> Please help me.
>
> I Create a graph by cakephp.My problem is when graph create then a message
> appears say:
> The image "http://localhost/auctionsite/postauctions/analysispdf/24".Coul
Instread of writing var $useTable = false; you can write it var $useTable =
array();
On Sun, Aug 9, 2009 at 10:38 AM, arif hossen wrote:
> Please send your controller code: otherwise check properly anywhere you
> have used this model for query.
>
> On Sun, Aug 2, 2009 at 4:56 AM, Dr. Loboto wrot
Hello!
It took me a while, but I was finally able to understand and implement
a good system for the Auth component. This tutorial helped to explain
what I was reading in book.cakephp.org:
http://www.jbcrawford.net/archives/45
In the near future I will possibly be upgrading what I have done to
A
Il giorno 06/ago/09, alle ore 22:12, pomares ha scritto:
> I use Coda. No code autocompletion specific to CakePHP as far as I
> know on any IDE. If there is, I would love to find out about it.
Look at this:
http://code621.com/content/6/a-collection-of-coda-clips-for-cakephp
Ciao
Paolo
--
Pao
I am a newbie to CakePHP also. I've found the book mentioned above
good also, up to a point. The book gives me ideas and concepts and
mostly concise examples with lots of explanation. From that, I
(usually) am able to understand what I had read previously on the
book.CakePHP.org site.
What is dif
36 matches
Mail list logo