Re: CakeFest 2011 - The CakePHP Conference

2011-05-16 Thread DerekGardiner
Will there by some kind of streaming media or streaming tweets from the conference for those of us who can't physically make it there? On May 16, 3:44 am, Graham Weldon wrote: > Hey all, > > I'm thrilled to announce that CakeFest 2011 will be held on September > 1st through 4th in Manchester, UK!

Re: Generate Excel from cakephp

2011-05-16 Thread abhimanyu bv
while working this on mozilla, i am not able to get a ecxel sheet. the headers of that file are DateTue, 17 May 2011 06:35:19 GMTServer Apache/2.2.11 (Win32) PHP/5.3.0 X-Powered-By PHP/5.3.0P3PCP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM" PragmapublicExpires 0Cache-Controlmust-revalidate, pos

Re: Cake 1.2: Containable problem with model alias

2011-05-16 Thread dreamingmind
Anja, Spent a bit more time with containable. No answer but if it's any consolation but I can't get any proper result with a HABTM even without an alias. It could be I'm still misunderstanding some detail... The two away table just comes pouring in no matter what I've tried. Don On May 16, 1:31 

Re: Ajax helper Error

2011-05-16 Thread gremlin
var $helpers = array( ); // Notice it is plural - you have $helper On May 16, 7:10 am, Carachi wrote: > Hi, > I try to use the Ajax Helper to receive data for an html select and to > send the form to a page, but I have this problem, in the view compare: > Notice (8): Undefined variable: Ajax [APP

Re: Problem with the CakePHP Search Plugin

2011-05-16 Thread gremlin
You didn't follow the instructions correctly. You have to attach a behavior to the Post model. From the very beginning of the documentation you linked : public $actsAs = array('Search.Searchable'); On May 16, 10:19 am, Alonso wrote: > Hi, folks. > > I've trying to use the CakePHP Search Plugin(

Re: How to retrieve data

2011-05-16 Thread Dominik Gajewski
Thank you very much. You can't imagine how you helped me :) 2011/5/16 Jeremy Burns | Class Outfit : > Look at the Containable behaviour > (http://book.cakephp.org/view/1323/Containable), then you can do something > like this: > $result = $this->DepartmentBook->find( > 'all', > array('contain' = 'D

Re: How to retrieve data

2011-05-16 Thread Jeremy Burns | Class Outfit
Look at the Containable behaviour (http://book.cakephp.org/view/1323/Containable), then you can do something like this: $result = $this->DepartmentBook->find( 'all', array('contain' = 'DieseaseCourse.DirectoryDisease') ); Jeremy Burns Class Outfit jeremybu...@classoutfit.com ht

Re: How to retrieve data

2011-05-16 Thread Dominik Gajewski
I've studied this chapter but hasn't helped 2011/5/16 Tilen Majerle : > Check this! :) > http://book.cakephp.org/view/1017/Retrieving-Your-Data > -- > Lep pozdrav, Tilen Majerle > http://majerle.eu > > > 2011/5/16 Dominik Gajewski >> >> Hi >> I have proble to retrive data from my database >> >> I

Re: Administrator Menu with ACL

2011-05-16 Thread Carachi
Thank you majna. I just try to use it on cakephp 1.38 but it is very very slow, it do 19.000 query at time and the variable $menu is empty to the end of the process. In addition I don't undestand well how can I use it. Thank you On May 16, 6:17 pm, majna wrote: > https://github.com/markstory/

Re: How to retrieve data

2011-05-16 Thread Tilen Majerle
Check this! :) http://book.cakephp.org/view/1017/Retrieving-Your-Data -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/5/16 Dominik Gajewski > Hi > I have proble to retrive data from my database > > I have 3 models > > DepartmentBook, DiseaseCourse, DirectoryDisease > > and > > Departmen

How to retrieve data

2011-05-16 Thread Dominik Gajewski
Hi I have proble to retrive data from my database I have 3 models DepartmentBook, DiseaseCourse, DirectoryDisease and DepartmentBook hasMany DiseaseCourse, DirectoryDisease hasOne DiseaseCourse I have to retrive data using DepartmentBook $this->DepartmentBook->find('all', array('conditions' =

Re: Cake 1.2: Containable problem with model alias

2011-05-16 Thread dreamingmind
Anja, Well that helped me! Your problem remains a mystery though. Don On May 16, 1:31 am, Anja Liebermann wrote: > Hi Don, > > thanks for your reply, but the brackt was set correctly, PostAuthor > belongsto LastPost, not to Group directly. > > What really worries me is that all the members are

Problem with the CakePHP Search Plugin

2011-05-16 Thread Alonso
Hi, folks. I've trying to use the CakePHP Search Plugin(http://cakedc.com/eng/ downloads/view/cakephp_search_plugin) along with the Blog tutorial(http://book.cakephp.org/view/1528/Blog) available in the Cookbook and even though I followed the instruction to the letter I keep getting this error mes

Auth Strange Behavior

2011-05-16 Thread Paulo H. V. Neves
Hello Guys, I am somewhat new to developing with CakePHP. My application is at a good point right now, but some strange behavior started happening. I have this form on a modal dialog, since it have file upload, I can't send it via ajax, so I submit to a iframe. Since I activated the Auth component

Re: Themes in CakePHP 2.0.0-dev

2011-05-16 Thread mark_story
Well the entire directory structure is no longer the same as you cited, so that might be one problem. Also if you are planning on playing with 2.0, I would use the git checkout, as the packaged release is a bit out of sync. -Mark On May 15, 6:54 am, Signified wrote: > Trying to set up a mobile

Re: Administrator Menu with ACL

2011-05-16 Thread majna
https://github.com/markstory/cakephp_menu_component On May 16, 11:57 am, Carachi wrote: > Hello, > I want to ask if someone know a package to create a dynamic > administrator menu based on ACL settings. > So if a user login as administrator, he can see all function in his > menu; if he isn't the

Administrator Menu with ACL

2011-05-16 Thread Carachi
Hello, I want to ask if someone know a package to create a dynamic administrator menu based on ACL settings. So if a user login as administrator, he can see all function in his menu; if he isn't the administrator, he can see only the allow function for his group. Thank you very much Bye -- Our n

Re: AJAX form creation with CakePHP

2011-05-16 Thread dreamingmind
Rob, My code diverged from crisuwork's in a couple of areas. One difference (which I think you will share); I had to add several fields rather than one. This is a small detail but it adds a fair amount of code though the general pattern he describes is the same I followed. It sums up the process b

Ajax helper Error

2011-05-16 Thread Carachi
Hi, I try to use the Ajax Helper to receive data for an html select and to send the form to a page, but I have this problem, in the view compare: Notice (8): Undefined variable: Ajax [APP/views/control/index.ctp, line 34] or Notice (8): Undefined property: View::$Ajax [APP/views/control/ index.ctp,

Re: Help with virtualFields

2011-05-16 Thread Mike Wisniewski
Thanks for the response. It kind of worked. I went into IRC and Dakota had helped me with it. Here is how it was fixed, if others are having the same issue... virtualFields; //Save the existing virtualFields array $this->virtualFields = array( 'divandgroup' => 'CONCAT(Division.divi

Re: Function 'log in as' user

2011-05-16 Thread designv...@gmail.com
haha! brilliant! So much easier. On May 16, 10:26 am, Jeremy Burns | Class Outfit wrote: > It's very easy to spoof a user: > > $user = $this->User->findByUsername($username); > > if ($user): >         if ($this->Auth->login($user)): >                 $this->redirect(array('action' => 'view', 'ad

Re: Security::cipher not compatible cross operating systems

2011-05-16 Thread Simon Males
Many thanks for the blog post Miles! I too disabled the php.ini settings of suhosin's mt_srand and srand with no luck and felt I was going in the wrong direction. In my case I made my own library and called it in place of Security::cipher(). On Fri, May 13, 2011 at 3:19 AM, Miles J wrote: > Do

Re: Slash in URL Parameter

2011-05-16 Thread ojonam
Hi, is there any documentation regarding this behavior in cake? Any other suggestions? Thanks, ojonam -- 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 relat

Re: CakeFest 2011 - The CakePHP Conference

2011-05-16 Thread designv...@gmail.com
Yeah I realised that it was in $ and thus removed my half awake, un- caffinated, comments! So, yep, for UK people its fine! On May 16, 12:39 pm, mi...@brightstorm.co.uk wrote: > > $950.00 for all 4 days? > > > Holy crap. I assume that is as the price includes a hotel room? What > > about people

changing cache path with Cache::set

2011-05-16 Thread Lorenzo Bettini
Hi I'd like to change the path of cache files (actually view cache files) temporarily with Cache::set. However, nothing seems to change, and by debugging my invocation of Cache::set in the app_controller, e.g., Cache::set(array('path' => CACHE.'my path'.DS)); I see that the debugger's meth

Re: CakeFest 2011 - The CakePHP Conference

2011-05-16 Thread mikek
> $950.00 for all 4 days? > > Holy crap. I assume that is as the price includes a hotel room? What > about people that live 5 minutes away from Venue? > > Is there any education discount, or just an entrance only price? that is the entrance only price. fortunately works out pretty good for uk atte

Re: CakeFest 2011 - The CakePHP Conference

2011-05-16 Thread Jeremy Burns | Class Outfit
Will probably attend. Are the prices on the site the full or early bird prices? When will the schedule be published? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 16 May 2011, at 09:58, designv...@gmail.com wrote: > $950.00 for all 4 days? > > Holy crap.

Re: uploading an image file

2011-05-16 Thread thom
On Fri, May 13, 2011 at 11:34 PM, Chris wrote: > What you'll probably need is this tutorial. > http://tv.cakephp.org/video/jasonwydro/2011/01/29/cakephp_1_3_-_meio_image_upload_resize_gallery_tutorial > > Very easy to follow and get to work. I've used it in several projects. Agree with this. I've

Re: Function 'log in as' user

2011-05-16 Thread Jeremy Burns | Class Outfit
It's very easy to spoof a user: $user = $this->User->findByUsername($username); if ($user): if ($this->Auth->login($user)): $this->redirect(array('action' => 'view', 'admin' => false)); endif; endif; Jeremy Burns Class Outfit jeremybu...@c

Re: Function 'log in as' user

2011-05-16 Thread designv...@gmail.com
If you are using roles then you could just have an option to pick a different role when you login and save that into the session instead of the one stored with your default admin record. On May 16, 10:19 am, heohni wrote: > Hi, > > I would like tow rite a function which allows me as admin to lo

Function 'log in as' user

2011-05-16 Thread heohni
Hi, I would like tow rite a function which allows me as admin to login as user using their username and their password. Is something like this possible? I have seen such a function is some CMS and I find it very useful as admin to check out the users view, without the knowing their passwords. Any

Re: uploading an image file

2011-05-16 Thread chris
I used this tutorial as the basis for uploading files in my application. This line should replace the 2 lines in the view that are causing the issue. echo $form- >input('File.image',array('type'=>'file','class'=>'required','size'=>'50')); I'm using the size parameter in mine just to increase the

Re: CakeFest 2011 - The CakePHP Conference

2011-05-16 Thread designv...@gmail.com
$950.00 for all 4 days? Holy crap. I assume that is as the price includes a hotel room? What about people that live 5 minutes away from Venue? Is there any education discount, or just an entrance only price? t. On May 16, 2:44 am, Graham Weldon wrote: > Hey all, > > I'm thrilled to announce

Re: CakeFest 2011 - The CakePHP Conference

2011-05-16 Thread designv...@gmail.com
BEST NEWS...EVER!! Thrilled!! On May 16, 2:44 am, Graham Weldon wrote: > Hey all, > > I'm thrilled to announce that CakeFest 2011 will be held on September > 1st through 4th in Manchester, UK! > > We've got a dual-stream planned for both the Conference and the > Workshops, and we've got some i

Re: Cake 1.2: Containable problem with model alias

2011-05-16 Thread Anja Liebermann
Hi Don, thanks for your reply, but the brackt was set correctly, PostAuthor belongsto LastPost, not to Group directly. What really worries me is that all the members are fetched. They belong via HABTM to the Group, but if I don't mention them in my containment statement they shouln't be fetc

ODBC and Cake1.3

2011-05-16 Thread vegetus
Hi, I'm having a problem connecting to a DB using ODBC in cake1.3, similar to what has been posted here by another user: http://groups.google.com/group/cake-php/browse_thread/thread/80748c2737f6f4b1/efbaf88dfe28b3da?hl=en#efbaf88dfe28b3da When I browse to a page inside my cake that is supposed to