POSTing to CakePHP from iOS (CakePHP 1.3)

2012-03-01 Thread 8vius
I've set up my RESTful web services and I'm trying to POST to my add 
method, how would the URL be to do this? I haven't been successful with 
POST, GET works fine.

-- 
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: Data retrieval with parameters on multiple models

2011-10-05 Thread 8vius
I managed to do what I wanted but I ran into another problem. I was
able to do my join properly just using the joins option in the find
method, but to make it work I had to unbind the User model, because it
would give an SQL error because the join statement it generate was
wrongfully located in my query for it to work, so I unbound the model
and added the join clause myself. The problem is that I actually need
the user info and its no coming with the join statement.

On Oct 4, 5:02 pm, 8vius  wrote:
> I have several tables:
>
> -Notes
> -Users
> -Favorites (favorite notes)
> -Shares (shared notes)
>
> Users hasMany Notes, Shares and Favorites are join tables between
> Users and Notes.
>
> I want to perform a Note search where I can filter by shared,
> favorites and created by the user. Also I want to be able to search by
> a parameter provided that can match either the title of the Note or
> the User's username.
>
> I know that for the Favorites and Shared I could just look matching by
> id on those tables, but this won't return other related models of the
> Notes which I want so I have to do the search on the Notes model to
> get all the data I need.
>
> I'm not sure how to proceed with this, I thought maybe using joins but
> how can I specify an OR condition for the LIKEs as in  User.username
> LIKE $parameter OR Note.title LIKE $parameter? Because one condition
> is specified in the join and the other in the find conditions for the
> model.

-- 
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


Data retrieval with parameters on multiple models

2011-10-04 Thread 8vius
I have several tables:

-Notes
-Users
-Favorites (favorite notes)
-Shares (shared notes)

Users hasMany Notes, Shares and Favorites are join tables between
Users and Notes.

I want to perform a Note search where I can filter by shared,
favorites and created by the user. Also I want to be able to search by
a parameter provided that can match either the title of the Note or
the User's username.

I know that for the Favorites and Shared I could just look matching by
id on those tables, but this won't return other related models of the
Notes which I want so I have to do the search on the Notes model to
get all the data I need.

I'm not sure how to proceed with this, I thought maybe using joins but
how can I specify an OR condition for the LIKEs as in  User.username
LIKE $parameter OR Note.title LIKE $parameter? Because one condition
is specified in the join and the other in the find conditions for the
model.

-- 
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: Rendering an element with Jquery

2011-09-14 Thread 8vius
Thank you very much Thomas, got the response back properly with the
html code, still getting some errors so gotta see what's wrong with
that.

On Sep 14, 12:14 pm, Thomas Ploch  wrote:
> erm, the same as you would set it to any other view:
>
> 
>      function action() {
>          [...]
>          // inside your action
>          $myArray = array('tweet' => 'feep feep feep');
>          // or $myArray = json_decode($yourJsonObject, true);
>
>          // Set the variable just like any other var
>          $this->set(compact('myArray'));
>
> // This will render the element in '/views/elements/element.ctp' with
> the data in $myArray
>          // So you can access $myArray in the element just like a normal
> view var
>          $this->render('/elements/element');
>      }
>
> Am 14.09.2011 18:06, schrieb 8vius:
>
>
>
>
>
>
>
> > And how can I pass an array into the view? I do it in other parts of
> > my code just doing $this->render('element', $data) but it's giving me
> > an error here
>
> > On Sep 14, 11:59 am, Thomas Ploch  wrote:
> >> The RequestHandler Component is not doing any requests, it just verifies
> >> that the current request indeed is an AJAX request, so you can check in
> >> an action and i.e. render an element with an AJAX layout instead of
> >> rendering the whole view. You can of course generate the HTML with
> >> javascript using the returned JSON object 
> >> (http://api.jquery.com/jQuery.template). But in my oppinion it is way
> >> easier to do the data handling in the action, and just render the
> >> element's HTML with $this->render() and use that in the success callback
> >> of the jQuery $.post method, appending the rendered HTML into a DOM node.
>
> >> Am 14.09.2011 17:51, schrieb 8vius:
>
> >>> hmmm I don't use the request handler to do my ajax requests, I just
> >>> echo out the response, would that work ? doing echo $this->render()?
>
> >>> On Sep 14, 11:36 am, Thomas Ploch    wrote:
> >>>> As an addition, check outhttp://book.cakephp.org/view/980/render
>
> >>>> Am 14.09.2011 17:14, schrieb 8vius:
>
> >>>>> Can you be a little more explicit? I have my ajax action set up that
> >>>>> will return a json encoded array. How can I get the html for the
> >>>>> element from my controller? Maybe some example code? I'm a bit of a
> >>>>> noob with this in general. Thank you.
>
> >>>>> On Sep 14, 11:05 am, Thomas Ploch      wrote:
> >>>>>> The easiest way would be an AJAX action that renders the element with
> >>>>>> the given POST data. The you can just use the rendered HTML and inject
> >>>>>> it into the DOM.
>
> >>>>>> Kind regards
> >>>>>> Thomas
>
> >>>>>> Am 14.09.2011 16:55, schrieb 8vius:
>
> >>>>>>> Hey all, got a little problem here. I wanna do something similar to
> >>>>>>> what twitter does when you post a new tweet, that it automatically
> >>>>>>> adds itself to the stream. I have made an element for this, the
> >>>>>>> element receives my model data and sets it up properly but I'm not
> >>>>>>> sure how to pass in the data from Jquery (I receive a JSON object). So
> >>>>>>> what are my options here? How can I accomplish 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: Rendering an element with Jquery

2011-09-14 Thread 8vius
Also, I'm testing your solution, and it is outputting the element html
data but for some reason it's outputting a bunch of other data from
the controller, like:

$___dataForView =   array()
$loadHelpers=   true
$cached =   false
$session=   SessionHelper
SessionHelper::$helpers = array
SessionHelper::$__active = true
SessionHelper::$valid = false
SessionHelper::$error = false
SessionHelper::$_userAgent = "082aaf941d57844d51008967f7e4ca5a"

and it's a lot of that

On Sep 14, 12:07 pm, 8vius  wrote:
> I meant $this->element('element', $data);
>
> On Sep 14, 12:06 pm, 8vius  wrote:
>
>
>
>
>
>
>
> > And how can I pass an array into the view? I do it in other parts of
> > my code just doing $this->render('element', $data) but it's giving me
> > an error here
>
> > On Sep 14, 11:59 am, Thomas Ploch  wrote:
>
> > > The RequestHandler Component is not doing any requests, it just verifies
> > > that the current request indeed is an AJAX request, so you can check in
> > > an action and i.e. render an element with an AJAX layout instead of
> > > rendering the whole view. You can of course generate the HTML with
> > > javascript using the returned JSON object 
> > > (http://api.jquery.com/jQuery.template). But in my oppinion it is way
> > > easier to do the data handling in the action, and just render the
> > > element's HTML with $this->render() and use that in the success callback
> > > of the jQuery $.post method, appending the rendered HTML into a DOM node.
>
> > > Am 14.09.2011 17:51, schrieb 8vius:
>
> > > > hmmm I don't use the request handler to do my ajax requests, I just
> > > > echo out the response, would that work ? doing echo $this->render()?
>
> > > > On Sep 14, 11:36 am, Thomas Ploch  wrote:
> > > >> As an addition, check outhttp://book.cakephp.org/view/980/render
>
> > > >> Am 14.09.2011 17:14, schrieb 8vius:
>
> > > >>> Can you be a little more explicit? I have my ajax action set up that
> > > >>> will return a json encoded array. How can I get the html for the
> > > >>> element from my controller? Maybe some example code? I'm a bit of a
> > > >>> noob with this in general. Thank you.
>
> > > >>> On Sep 14, 11:05 am, Thomas Ploch    wrote:
> > > >>>> The easiest way would be an AJAX action that renders the element with
> > > >>>> the given POST data. The you can just use the rendered HTML and 
> > > >>>> inject
> > > >>>> it into the DOM.
>
> > > >>>> Kind regards
> > > >>>> Thomas
>
> > > >>>> Am 14.09.2011 16:55, schrieb 8vius:
>
> > > >>>>> Hey all, got a little problem here. I wanna do something similar to
> > > >>>>> what twitter does when you post a new tweet, that it automatically
> > > >>>>> adds itself to the stream. I have made an element for this, the
> > > >>>>> element receives my model data and sets it up properly but I'm not
> > > >>>>> sure how to pass in the data from Jquery (I receive a JSON object). 
> > > >>>>> So
> > > >>>>> what are my options here? How can I accomplish 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: Rendering an element with Jquery

2011-09-14 Thread 8vius
I meant $this->element('element', $data);

On Sep 14, 12:06 pm, 8vius  wrote:
> And how can I pass an array into the view? I do it in other parts of
> my code just doing $this->render('element', $data) but it's giving me
> an error here
>
> On Sep 14, 11:59 am, Thomas Ploch  wrote:
>
>
>
>
>
>
>
> > The RequestHandler Component is not doing any requests, it just verifies
> > that the current request indeed is an AJAX request, so you can check in
> > an action and i.e. render an element with an AJAX layout instead of
> > rendering the whole view. You can of course generate the HTML with
> > javascript using the returned JSON object 
> > (http://api.jquery.com/jQuery.template). But in my oppinion it is way
> > easier to do the data handling in the action, and just render the
> > element's HTML with $this->render() and use that in the success callback
> > of the jQuery $.post method, appending the rendered HTML into a DOM node.
>
> > Am 14.09.2011 17:51, schrieb 8vius:
>
> > > hmmm I don't use the request handler to do my ajax requests, I just
> > > echo out the response, would that work ? doing echo $this->render()?
>
> > > On Sep 14, 11:36 am, Thomas Ploch  wrote:
> > >> As an addition, check outhttp://book.cakephp.org/view/980/render
>
> > >> Am 14.09.2011 17:14, schrieb 8vius:
>
> > >>> Can you be a little more explicit? I have my ajax action set up that
> > >>> will return a json encoded array. How can I get the html for the
> > >>> element from my controller? Maybe some example code? I'm a bit of a
> > >>> noob with this in general. Thank you.
>
> > >>> On Sep 14, 11:05 am, Thomas Ploch    wrote:
> > >>>> The easiest way would be an AJAX action that renders the element with
> > >>>> the given POST data. The you can just use the rendered HTML and inject
> > >>>> it into the DOM.
>
> > >>>> Kind regards
> > >>>> Thomas
>
> > >>>> Am 14.09.2011 16:55, schrieb 8vius:
>
> > >>>>> Hey all, got a little problem here. I wanna do something similar to
> > >>>>> what twitter does when you post a new tweet, that it automatically
> > >>>>> adds itself to the stream. I have made an element for this, the
> > >>>>> element receives my model data and sets it up properly but I'm not
> > >>>>> sure how to pass in the data from Jquery (I receive a JSON object). So
> > >>>>> what are my options here? How can I accomplish 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: Rendering an element with Jquery

2011-09-14 Thread 8vius
And how can I pass an array into the view? I do it in other parts of
my code just doing $this->render('element', $data) but it's giving me
an error here

On Sep 14, 11:59 am, Thomas Ploch  wrote:
> The RequestHandler Component is not doing any requests, it just verifies
> that the current request indeed is an AJAX request, so you can check in
> an action and i.e. render an element with an AJAX layout instead of
> rendering the whole view. You can of course generate the HTML with
> javascript using the returned JSON object 
> (http://api.jquery.com/jQuery.template). But in my oppinion it is way
> easier to do the data handling in the action, and just render the
> element's HTML with $this->render() and use that in the success callback
> of the jQuery $.post method, appending the rendered HTML into a DOM node.
>
> Am 14.09.2011 17:51, schrieb 8vius:
>
>
>
>
>
>
>
> > hmmm I don't use the request handler to do my ajax requests, I just
> > echo out the response, would that work ? doing echo $this->render()?
>
> > On Sep 14, 11:36 am, Thomas Ploch  wrote:
> >> As an addition, check outhttp://book.cakephp.org/view/980/render
>
> >> Am 14.09.2011 17:14, schrieb 8vius:
>
> >>> Can you be a little more explicit? I have my ajax action set up that
> >>> will return a json encoded array. How can I get the html for the
> >>> element from my controller? Maybe some example code? I'm a bit of a
> >>> noob with this in general. Thank you.
>
> >>> On Sep 14, 11:05 am, Thomas Ploch    wrote:
> >>>> The easiest way would be an AJAX action that renders the element with
> >>>> the given POST data. The you can just use the rendered HTML and inject
> >>>> it into the DOM.
>
> >>>> Kind regards
> >>>> Thomas
>
> >>>> Am 14.09.2011 16:55, schrieb 8vius:
>
> >>>>> Hey all, got a little problem here. I wanna do something similar to
> >>>>> what twitter does when you post a new tweet, that it automatically
> >>>>> adds itself to the stream. I have made an element for this, the
> >>>>> element receives my model data and sets it up properly but I'm not
> >>>>> sure how to pass in the data from Jquery (I receive a JSON object). So
> >>>>> what are my options here? How can I accomplish 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: Rendering an element with Jquery

2011-09-14 Thread 8vius
hmmm I don't use the request handler to do my ajax requests, I just
echo out the response, would that work ? doing echo $this->render()?

On Sep 14, 11:36 am, Thomas Ploch  wrote:
> As an addition, check outhttp://book.cakephp.org/view/980/render
>
> Am 14.09.2011 17:14, schrieb 8vius:
>
>
>
>
>
>
>
> > Can you be a little more explicit? I have my ajax action set up that
> > will return a json encoded array. How can I get the html for the
> > element from my controller? Maybe some example code? I'm a bit of a
> > noob with this in general. Thank you.
>
> > On Sep 14, 11:05 am, Thomas Ploch  wrote:
> >> The easiest way would be an AJAX action that renders the element with
> >> the given POST data. The you can just use the rendered HTML and inject
> >> it into the DOM.
>
> >> Kind regards
> >> Thomas
>
> >> Am 14.09.2011 16:55, schrieb 8vius:
>
> >>> Hey all, got a little problem here. I wanna do something similar to
> >>> what twitter does when you post a new tweet, that it automatically
> >>> adds itself to the stream. I have made an element for this, the
> >>> element receives my model data and sets it up properly but I'm not
> >>> sure how to pass in the data from Jquery (I receive a JSON object). So
> >>> what are my options here? How can I accomplish 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: Rendering an element with Jquery

2011-09-14 Thread 8vius
Can you be a little more explicit? I have my ajax action set up that
will return a json encoded array. How can I get the html for the
element from my controller? Maybe some example code? I'm a bit of a
noob with this in general. Thank you.

On Sep 14, 11:05 am, Thomas Ploch  wrote:
> The easiest way would be an AJAX action that renders the element with
> the given POST data. The you can just use the rendered HTML and inject
> it into the DOM.
>
> Kind regards
> Thomas
>
> Am 14.09.2011 16:55, schrieb 8vius:
>
>
>
>
>
>
>
> > Hey all, got a little problem here. I wanna do something similar to
> > what twitter does when you post a new tweet, that it automatically
> > adds itself to the stream. I have made an element for this, the
> > element receives my model data and sets it up properly but I'm not
> > sure how to pass in the data from Jquery (I receive a JSON object). So
> > what are my options here? How can I accomplish 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


Rendering an element with Jquery

2011-09-14 Thread 8vius
Hey all, got a little problem here. I wanna do something similar to
what twitter does when you post a new tweet, that it automatically
adds itself to the stream. I have made an element for this, the
element receives my model data and sets it up properly but I'm not
sure how to pass in the data from Jquery (I receive a JSON object). So
what are my options here? How can I accomplish 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: Multiple file upload

2011-09-06 Thread 8vius
I would like the details of this, it's good to have another approach
in case

On Aug 26, 7:13 am, David Cole  wrote:
> I would recommend using SWFUpload and setting up an attachment
> controller and behavior. This way you can have swfupload send the
> files to a function in your controller. Then use the behavior to
> create HABTM associations on the fly to your other models. It's what
> I've done and it works great. If you need more details let me know, I
> can send you the code.
>
> On Aug 23, 9:37 pm,8vius wrote:
>
>
>
>
>
>
>
> > I'm really struggling to find a solution for what I want to do. I want
> > to be able to upload several image files simultaneously but I don't
> > want to have several file boxes but just one where the user can select
> > several files to upload, what is the best plugin and solution on the
> > frontend side to do 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


Saving a session variable deletes another variable

2011-08-26 Thread 8vius
I'll just link to the question I made on SO

http://stackoverflow.com/questions/7208354/cakephp-saving-one-session-variable-deletes-another

-- 
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: Multiple file upload

2011-08-23 Thread 8vius
Thanks Sam, this seems to be simple enough and that it will do the
trick, now how would I go about getting all the files I just uploaded
because the thing is these are not files that are independent they
will be linked to another model, for instance News hasMany Image

On Aug 23, 10:47 pm, Sam Sherlock  wrote:
> http://pixelcone.com/tutorial/ajax-file-upload-using-jquery-and-cakep...
>
>  - S
>
> On 24 August 2011 03:37, 8vius  wrote:
>
>
>
>
>
>
>
> > I'm really struggling to find a solution for what I want to do. I want
> > to be able to upload several image files simultaneously but I don't
> > want to have several file boxes but just one where the user can select
> > several files to upload, what is the best plugin and solution on the
> > frontend side to do this?
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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
> > athttp://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


Multiple file upload

2011-08-23 Thread 8vius
I'm really struggling to find a solution for what I want to do. I want
to be able to upload several image files simultaneously but I don't
want to have several file boxes but just one where the user can select
several files to upload, what is the best plugin and solution on the
frontend side to do 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


Media Plugin Tutorial

2011-08-23 Thread 8vius
Anyone know where I can find a tutorial for David Persson's Media
Plugin Tutorial? Documentations seems scarce and questions here are
all relating to issues with the plugin, there doesn't seem to be a
starting point.

-- 
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


Error: The action home is not defined in controller PagesController

2011-07-27 Thread 8vius
I don't understand why I'm getting this message, this is my
controller:

redirect('/');
}
$page = $subpage = $title_for_layout = null;

if (!empty($path[0])) {
$page = $path[0];
}
if (!empty($path[1])) {
$subpage = $path[1];
}
if (!empty($path[$count - 1])) {
$title_for_layout = Inflector::humanize($path[$count -
1]);
}
$this->set(compact('page', 'subpage', 'title_for_layout'));
$this->render(implode('/', $path));
}

function home() {
$this->layout = 'main';
}

function news() {

}

function events() {

}
}
?>

and here's my routes file:


 'users', 'action'
=> 'login'));
Router::connect('/admin/logout', array('controller' => 'users',
'action' => 'logout'));
Router::connect('/', array('controller' => 'pages', 'action' =>
'home'));

-- 
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: Error: Database table acos for model Aco was not found.

2011-05-30 Thread 8vius
ShadowCross your solution worked, I seem to have forgotten those
permissions to the DB user and now it all works. Thank you

On May 30, 7:01 pm, ShadowCross  wrote:
> One of the troubleshooting steps I take whenever I have this error on
> a project is to log onto the database using the same connection info
> as in my database.php file.  The screen shot of MySQLWorkbench
> indicates a connection using 'root', which can see all the tables in
> all the databases; the screen shot of the PHPMyAdmin session seems to
> also be from the 'root' user perspective.  It might be as simple as
> granting user fonyk_db insert/update/delete privileges to the acos
> table in the fonyk_db schema.
>
> On May 26, 9:11 pm, 8vius  wrote:
>
>
>
>
>
>
>
> > Hey all, I'm new to CakePHP and I'm using it at work. I have a Mac
> > running Mac OS X Leopard at work as well as at home and a PC at work
> > as well.
>
> > I have the project I'm currently working on set up on all 3, it works
> > fine at my work computers but on my home Mac I get the error in the
> > title. The project is on SVN so I just checked it out ran the SQL
> > script for my DB schema and set up the same user I have in my work DB
> > and it will not work still.
>
> > I also cleared out the cache folders as suggested in other posts with
> > a similar problem and it still won't work.
>
> > Obviously I have checked the database table and it is present in my
> > DB. Anyone have any other clues as to what might be happening?
>
> > SCREENSHOTS:
>
> > Error Screen:http://yfrog.com/hsefg1p
>
> > CakePHP database.php:http://yfrog.com/h3l1t4p
>
> > DB tables:http://yfrog.com/h0v3ajp
>
> > DB privileges:http://yfrog.com/h0eu71p

-- 
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


Error: Database table acos for model Aco was not found.

2011-05-27 Thread 8vius
Hey all, I'm new to CakePHP and I'm using it at work. I have a Mac
running Mac OS X Leopard at work as well as at home and a PC at work
as well.

I have the project I'm currently working on set up on all 3, it works
fine at my work computers but on my home Mac I get the error in the
title. The project is on SVN so I just checked it out ran the SQL
script for my DB schema and set up the same user I have in my work DB
and it will not work still.

I also cleared out the cache folders as suggested in other posts with
a similar problem and it still won't work.

Obviously I have checked the database table and it is present in my
DB. Anyone have any other clues as to what might be happening?

SCREENSHOTS:

Error Screen: http://yfrog.com/hsefg1p

CakePHP database.php: http://yfrog.com/h3l1t4p

DB tables: http://yfrog.com/h0v3ajp

DB privileges: http://yfrog.com/h0eu71p

-- 
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