language problem in database cake1.3

2012-12-10 Thread Chris
hi guys,... I'm having a problem with language in database... I'm in cake 1.3 I have in app_controller: App::import('Core', 'L10n'); App::import('Core', 'I18n'); I upload video from Youtube and have video "name" and "description" saved in database in Russina language,... but it gives me c

Re: Validating multiple models in one form

2012-12-10 Thread jodator
Why do you have $name = 'UserInfos' while your class is UserInfo (and also 'Users')? Try to make it by Cake conventions and it should validate all associeated models on saveAll(). I would drop those lines, as they are not needed. And try changing UsrInfos to UserInfo in form generation. Also:

Re: cakephp admin app

2012-12-10 Thread Jeremy Burns | Class Outfit
Prefix routing? http://book.cakephp.org/2.0/en/development/routing.html#prefix-routing Jeremy Burns Class Outfit http://www.classoutfit.com On 11 Dec 2012, at 00:05:47, Devario Johnson wrote: > So I searched a bit, and honestly I have kind of a headache right now, and > can't seem to find ex

Re: Cake PHP v 2.2.4 - Newbie, blog tutorial does not work?

2012-12-10 Thread Marcelo F Andrade
Em 11/12/2012 00:42, "Paul Marriott" escreveu: > > I have installed and run through the Blog tutorial and am getting the error > > http://localhost/cakephp-cakephp-b2812f2/posts/index > > "Error: PostsController could not be found" > > The file definitely exists, I have tried the tutorial twice no

Re: Cake PHP v 2.2.4 - Newbie, blog tutorial does not work?

2012-12-10 Thread Tim Denholm
Hi Paul, could you please include the contents of your PostsController.php file. Cheers On Tue, Dec 11, 2012 at 1:44 PM, Nathaniel Sumaya wrote: > If you are using IIS refer here . > Otherwise cookbook is > sufficient

Re: Cake PHP v 2.2.4 - Newbie, blog tutorial does not work?

2012-12-10 Thread Nathaniel Sumaya
If you are using IIS refer here . Otherwise cookbook is sufficient for your needs. On Tue, Dec 11, 2012 at 1:29 AM, Paul Marriott wrote: > I have installed and run through the Blog tutorial and am getting the error > > h

Validating multiple models in one form

2012-12-10 Thread Robert Hunt
Hi All, I hope someone can help clear this up for me. Basically I have two models producing fields in a form but when saving it only validates the parent model. I have attempted to use saveAssociated and I have tried validating the data on a per model basis with no success. Here is my code:

Cake PHP v 2.2.4 - Newbie, blog tutorial does not work?

2012-12-10 Thread Paul Marriott
I have installed and run through the Blog tutorial and am getting the error http://localhost/cakephp-cakephp-b2812f2/posts/index "Error: PostsController could not be found" The file definitely exists, I have tried the tutorial twice now so must have something wrong. However I cannot find a dow

executing tests from Netbeans IDE

2012-12-10 Thread Greg Skerman
Hi, Not strictly a cakephp issue, more of a netbeans one. I want to execute my application tests from within the IDE. Netbeans seems to dislike this (the unit test runner has to be an absolute path without args, so pointing it at cake.bat with the test shell in params doesn't work) it then goes o

cakephp admin app

2012-12-10 Thread Devario Johnson
So I searched a bit, and honestly I have kind of a headache right now, and can't seem to find exactly what Im looking for. So Im hoping someone can point me in the right direction via an article or something. I would like to have an admin section as a new cake app in the structure as follows

RE: Un-related models / functions

2012-12-10 Thread Advantage+
Ok I copied exactly as described in the book. My default layout has : element('footer_feature_product', array('cache' => '+1 hour'));?> The element is: requestAction(array('controller' => 'products' ,'action' => 'feature'));?> Html->image('footer_block_1.jpg', array('alt' => 'Featured Pro

Re: Problem with saveAll translations within one form - CakePHP multilingual website

2012-12-10 Thread maurozadu
I have the same problem, did you came up with a solution? Thank you! El lunes, 23 de enero de 2012 16:05:43 UTC-3, Anna P escribió: > > Hello. > > I'm making multilingual website and I want administrator to add and > edit subpage in all available languages within one form. > > The add function

Re: Please help, How to find nested posts...

2012-12-10 Thread Salines
I solved the problem of finding articles in a deep tree subordinate levels! In itself habtm tables store id of all parental level. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to t

Re: Using database session in the filemanager

2012-12-10 Thread mebibyte
I didn't try installing the filemanager as a Vendor. I will read about that in the cookbook. I know that u have to use php for accessing my database but I do need the session id for searching in the cake_sessions table. The $_SESSION remains empty. I found this article about the problem http://

concerns regarding arrays in urls

2012-12-10 Thread euromark
By accident and looking at the error logs I found something that concerns me. Currently sth like this is used by probably most of us: if (!empty($this->request->params['named']['sort'])) { $sort = strtolower($this->request->params['named']['sort']); // we expect a string in 99% of al

Re: Please help, How to find nested posts...

2012-12-10 Thread Salines
Thanks for the reply, this approach is ok, if you want to show child categories or articles. I am in a situation where I have a *n-level taxonomy*. Clicking on any category will have to find all child articles, skipping child categories. -- Like Us on FaceBook https://www.facebook.com/CakePHP

Re: Trouble with model associations and query.

2012-12-10 Thread MDay
I seem to have resolved this, but I don't think it's the most efficient query: public function getStudents(){ $userId = $this->Auth->user('id'); $endusers = $this->RoleUser->findAllByuser_id($userId, array('RoleUser.enduserid','RoleUser.user_id')); //Get the enduserid's for all the roles I h

Re: Conditional Model Query

2012-12-10 Thread MDay
Thanks for the response. You are correct - the enduserid field is in the RoleUser join table. On Sunday, December 9, 2012 5:54:26 PM UTC-5, cricket wrote: > > You shouldn't need to use loadModel() if the associations are set up > correctly. > > When you call $this->Auth->user() with no params

Re: Un-related models / functions

2012-12-10 Thread Piotr Beschel
read about Controller::requestAction(*string $url*, *array $options*) http://book.cakephp.org/2.0/en/controllers.html W dniu poniedziałek, 10 grudnia 2012 03:35:05 UTC+1 użytkownik advantage+ napisał: > > I have a footer which has a featured product and recent news. > > What is the best way to

CakePhp 2.x Newbie

2012-12-10 Thread Maximum
Hello everyone!!! I am a Php Junior developer. been recently employed tomaintained CakePhp Applications developed using 1.3.X version. I do the job very well. My problem is that now I am trying to learn to build cake applications from scratch using Cakephp 2.X. the actual problem is when havin