Re: Loading Classes

2011-10-11 Thread Miles J
That really is weird. Would of been useful to zip up and send to the Cake devs :p On Oct 11, 11:15 am, Ed Propsner wrote: > oops ... was ready another thread ... I meant @Miles ;) > > > > > > > > On Tue, Oct 11, 2011 at 2:14 PM, Ed Propsner wrote: > > @Mark > > > > That doesn't make sense. Inclu

Re: Troubles with Cake 2.0 + SQLServer datasource

2011-10-11 Thread Ernesto
i forgot to say that this same app written with Cake 1.3.10, was working perfectly before migrating to 2.0. i'll check the old datasource :) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org an

Re: Troubles with Cake 2.0 + SQLServer datasource

2011-10-11 Thread Ernesto
Hi Mark thanks for the answer. i'll check if the PDO driver is installed. The SQL Server is a 2005 release -- 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 rel

Re: CakePHP 2: Where to place exception code?

2011-10-11 Thread Lucho Molina
Oh... and the file would be where? in the lib folder? -- 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

Re: CakePHP 2: Where to place exception code?

2011-10-11 Thread Lucho Molina
Thanks for your answers. @Mark As I said, I'd create an exceptions.php file with all the exceptions I'll use application wide. So should I just include() that file in the bootstrap? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP

Jquery menus

2011-10-11 Thread succer...@tiscali.it
Hi I want to make json menus in cakephp with dynamic dropdown content. In my case i have to choose in this order: country, town, zip. Of course in the town dropdown i want to choose only the town in a specific country and so on with the zipcode. Any example and link tutorial would be really apprec

Re: Translate behavior: Return nothing if translation isn't found

2011-10-11 Thread AD7six
On Oct 11, 8:25 pm, AD7six wrote: > On Oct 11, 4:43 am, oth wrote: > > > > > > > > > > > Hello, > > > Is there a way to implement this scenario: > > > Post is written in locale EN, if locale FR is selected, and there is > > no FR translation available for the Post, return nothing. > > Currently

Re: Translate behavior: Return nothing if translation isn't found

2011-10-11 Thread AD7six
On Oct 11, 4:43 am, oth wrote: > Hello, > > Is there a way to implement this scenario: > > Post is written in locale EN, if locale FR is selected, and there is > no FR translation available for the Post, return nothing. > Currently it returns the default fields found in the posts table. > > I'd

Re: Sessions working on Local dev but not on server

2011-10-11 Thread JTiki
How can i check? On Oct 11, 3:38 am, "flo.kl...@googlemail.com" wrote: > Have you checked the db or filesystem if the session data is stored? > You also have to have cookies enabled, othetwise the session cant be tracked. > > JTiki schrieb: > > I've recently been working on a project for a clien

Re: Loading Classes

2011-10-11 Thread Ed Propsner
oops ... was ready another thread ... I meant @Miles ;) On Tue, Oct 11, 2011 at 2:14 PM, Ed Propsner wrote: > @Mark > > > That doesn't make sense. Including a file *anywhere* in the > > application imports it into the scope, this is part of PHP, not > > CakePHP. > > I couldn't agree more. > > An

Re: Loading Classes

2011-10-11 Thread Ed Propsner
@Mark > That doesn't make sense. Including a file *anywhere* in the > application imports it into the scope, this is part of PHP, not > CakePHP. I couldn't agree more. An absolute path include resulted in the same thing, the class was available in the bootstrap only. Stranger yet, I discovered t

Re: Loading Classes

2011-10-11 Thread Miles J
That doesn't make sense. Including a file *anywhere* in the application imports it into the scope, this is part of PHP, not CakePHP. Try doing an absolute path include to the SDK from within your bootstrap.php. Also this: $this->facebook = new Facebook(); Should be done in the controllers beforeF

Re: Fatal error: Call to a member function here()

2011-10-11 Thread mark_story
Any idea how you hit that? I've not seen that error before. -Mark On Oct 11, 1:33 am, benjam wrote: > I ran into a fatal error on my home page. > > Fatal error: Call to a member function here() on a non-object in C: > \Development\cake_files\cake_2.0.0-rc3\lib\Cake\Error > \ExceptionRenderer.ph

Re: CakePHP 2: Where to place exception code?

2011-10-11 Thread mark_story
You can either put them in the classes that are going to throw the exceptions, or just include a file filled with exception classes in your bootstrap.php. Whatever floats your boat. -Mark On Oct 10, 10:50 am, Lucho Molina wrote: > Hi – I'd like to create an exceptions.php file with all my appli

Re: Troubles with Cake 2.0 + SQLServer datasource

2011-10-11 Thread mark_story
Have you installed the sqlsrv PDO driver? Also you'll need a recent version of SQLServer. It was developed and tested against SQLServer 2008. -Mark On Oct 10, 11:14 am, Ernesto wrote: > Hi all. > i'm having some troubles with Cake 2.0 + SQLServer datasource > > i'm getting a "Sqlserver requires

Re: CakePHP 2: Where to place exception code?

2011-10-11 Thread Yves S. Garret
I think it depends on where you expect the issue to crop up. If the issue could be connecting to your database, then putting it in the controller would make sense. On Tue, Oct 11, 2011 at 12:25 PM, Lucho Molina wrote: > Nothing? > > On Oct 10, 9:50 am, Lucho Molina wrote: > > Hi – I'd like to c

Re: CakePHP 2: Where to place exception code?

2011-10-11 Thread Lucho Molina
Nothing? On Oct 10, 9:50 am, Lucho Molina wrote: > Hi – I'd like to create anexceptions.php file with all my > applicationexceptions, just like it is explained in the cook > book:http://book.cakephp.org/2.0/en/development/exceptions.html?highlight=... > > The cookbook doesn't say where to place

Re: $fields not honored inside hasMany relation

2011-10-11 Thread Matteo Landi
On Tue, Oct 11, 2011 at 6:15 AM, Angad Nadkarni wrote: > Hi Matteo, this is not a bug. Cake requires the post_id field  to > fetch the associated Post associated array > as well, hence even when you don't mention it, the "PRIMARY" and > "FOREIGN" key fields are always mentioned. I agree with you

Re: Problem when downloading a video file

2011-10-11 Thread thomaus
I found solution using Media Views. // No debug mode Configure::write('debug', 0); // No layout $this->autoLayout = false; // Media View $this->view = 'Media'; $params = array( 'id' => 'my_video.mp4', 'name'

Re: Pagination sorting question

2011-10-11 Thread heohni
Great!! Thanks!! -- 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...@google

Re: redirect and sessions not working

2011-10-11 Thread cakii
$this->find('first', array('conditions' => array('id'=>11), 'fields' => > array('ip1', 'ip2'))); > should work. > http://book.cakephp.org/2.0/en/models/retrieving-your-data.html?highlight=find%20first#find-first > > or > > $this->id = 11; > $this->read(array('ip1', 'ip2')); > > yes, both works

Re: Loading Classes

2011-10-11 Thread Ed Propsner
Thanks for the response Carlo, Loading the class in the bootstrap has the same effect as in the AppController ... the class is only available in the bootstrap and not the rest of the controllers or views. This seems strange to me and I'm starting to think I might be missing some other underlying p

Re: redirect and sessions not working

2011-10-11 Thread majna
On Tuesday, October 11, 2011 2:23:42 PM UTC+2, cakii wrote: > > hmm, in my project just nothing happens, if i put my code in > AppController::beforeFilter(), just an empty debug: > *app\Controller\AppController.php* (line *14*) > > for a clean app its enough to use latest download in another di

Re: redirect and sessions not working

2011-10-11 Thread cakii
hmm, in my project just nothing happens, if i put my code in AppController::beforeFilter(), just an empty debug: *app\Controller\AppController.php* (line *14*) for a clean app its enough to use latest download in another directory eg htdocs/test2, right ?! in the meantime i had another strang

Re: Help with multilevel inheritance

2011-10-11 Thread Karan
Thanks for replying, Table Structure is (id,environment_id,name) Environment Structure is (id,depot_id,name) Column Structure is (id,table_id,name,domain_id,mapping_col_no) please ignore depot_id, domain_id and mapping_col_no as they are part of my entire project. I need the chained drop downs onl

Re: redirect and sessions not working

2011-10-11 Thread majna
On Tuesday, October 11, 2011 11:10:55 AM UTC+2, cakii wrote: > > i, > > i have a few problems i can't solve .. > > im using cake 2.0.0-RC3 and PHP Version 5.3.1 > cake default layout , debug 2 > > in my controller i only have one simple line: (the corresponding view > is completly empty) >

Re: Form dropdown multiple selected array not working

2011-10-11 Thread euromark
why not 'options' => $categories ? since $categories probably is an array and contains the keys On 10 Okt., 21:38, MetZ wrote: > Hi all. > > I am having trouble setting the selected to the options when selected > is an array. > > (This is a edit content view) > Dropdown display all categories (

Re: Help with multilevel inheritance

2011-10-11 Thread crisuwork
You can also build your own models in model file, using $this- >YourModel->query("Here comes the oracle SQL")..if HABTM does not work using the same table structure. Is just an idea. :) On 11 Okt., 07:16, Zaky Katalan-Ezra wrote: > Supply tables structure. > Environments etc. > > > > > > > > On

Re: Help with multilevel inheritance

2011-10-11 Thread Zaky Katalan-Ezra
Supply tables structure. Environments etc. On Tue, Oct 11, 2011 at 11:19 AM, Karan wrote: > Hello Guys, > I am a total beginner with cakephp. > I have managed to establish a proper functioning CRUD app with oracle > at the backend. > > I have the current structure in place, > Environments has ma

Re: How do you track your issues / bugs ?

2011-10-11 Thread Zaky Katalan-Ezra
I am using Unfuddle with great success. I also like Trac On Tue, Oct 11, 2011 at 11:52 AM, euromark wrote: > exactly, jeremy :) > same with me > > On 11 Okt., 07:20, Jeremy Burns | Class Outfit > wrote: > > I've been using Mantis for about three

Re: How do you track your issues / bugs ?

2011-10-11 Thread Jeremy Burns | Class Outfit
Having said that of course, if the OP is writing something to monetise it then good for him. Jeremy Burns Class Outfit http://www.classoutfit.com On 11 Oct 2011, at 10:52, euromark wrote: > exactly, jeremy :) > same with me > > On 11 Okt., 07:20, Jeremy Burns | Class Outfit > wrote: >> I've

Re: jquery autoComplete in cakephp 1.3

2011-10-11 Thread Eric Blanpied
I've found it quite easy with jquery UI. Something like this ought to work in your .ctp file. Where #UserName is your field's id, and $usernames is the list of choices. If you want your autocomplete to do server-side lookup, check the jquery UI docs. $(document).ready(function() {

Help with multilevel inheritance

2011-10-11 Thread Karan
Hello Guys, I am a total beginner with cakephp. I have managed to establish a proper functioning CRUD app with oracle at the backend. I have the current structure in place, Environments has many tables tables has many columns Tables belonging to different Environments can have the same names. Whe

redirect and sessions not working

2011-10-11 Thread cakii
i, i have a few problems i can't solve .. im using cake 2.0.0-RC3 and PHP Version 5.3.1 cake default layout , debug 2 in my controller i only have one simple line: (the corresponding view is completly empty) $this->redirect('http://http://www.cakephpforum.net/'); but nothing happens, just a w

Form dropdown multiple selected array not working

2011-10-11 Thread MetZ
Hi all. I am having trouble setting the selected to the options when selected is an array. (This is a edit content view) Dropdown display all categories (using generatetreelist to list my categories) echo $form->input('Content.category_id',array('selected'=>array($this- >data['Content'] ['catego

Re: jquery autoComplete in cakephp 1.3

2011-10-11 Thread hoss7
please :) -- 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.

Re: How do you track your issues / bugs ?

2011-10-11 Thread euromark
exactly, jeremy :) same with me On 11 Okt., 07:20, Jeremy Burns | Class Outfit wrote: > I've been using Mantis for about three years. I love it, my clients love it, > it's free, I can brand it and my work gets done much faster. > > Jeremy Burns > Class Outfit > > http://www.classoutfit.com > > O

Re: Approve data changes

2011-10-11 Thread euromark
i think there is a "revision behavior" that does sth like that out here the new version of http://bakery.cakephp.org/articles/alkemann/2008/12/18/revision-behavior-revision-control-made-easy somewhere at github On 11 Okt., 09:28, Matteo Landi wrote: > I suggest you to store different versions o

Re: jquery autoComplete in cakephp 1.3

2011-10-11 Thread flo.kl...@googlemail.com
No matter how limited your english might be, a simple 'please' is not too hard to add. For the jQuery part you should look at the various tutorials on the web, since this is a cake group. The cake part is to add the jquery script to the .ctp file of the desired view. -flosky hoss7 schrieb:

Re: Which is the better IDE for cakePHP?

2011-10-11 Thread Ryan Snowden
I also code with my mind. Download CakePHP 4.3 and you can do it. On 1 October 2011 20:40, Marco wrote: > I use a secret IDE project, you don't need to write any code > > On Sep 30, 8:42 am, Sathia S wrote: > > > Apatana > > > > > sorry I mispelled it . it is Aptana . I prefer this. it is nice

Ajax=>link(),Prototype.js conflict with Jquery

2011-10-11 Thread Cruisine
hi guys,i'm gonna ask u about ajax conflict.. i'm using $ajax->link() on my menu for linking lots of page on my application...each link will load the page by updating a certain 'div' the problem was occured when i tried to put jquery dialog and jquery load.the link stop working (after click

Re: Sessions working on Local dev but not on server

2011-10-11 Thread flo.kl...@googlemail.com
Have you checked the db or filesystem if the session data is stored? You also have to have cookies enabled, othetwise the session cant be tracked. JTiki schrieb: I've recently been working on a project for a client. Its a simple E- Commerce site and I decided to use Sessions for the cart. I g

jquery autoComplete in cakephp 1.3

2011-10-11 Thread hoss7
tell me best way for create autoComplete with jquery in cakephp 1.3 -- 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 th

Re: Approve data changes

2011-10-11 Thread Matteo Landi
I suggest you to store different versions of user information using a ``revision`` column; this way you could show the user the last _accepted_ version, while the admin is able to accept the last _modified_ one. Cheers, Matteo On Tue, Oct 11, 2011 at 7:25 AM, nOLL wrote: > Hi, > > There is situ

Re: General question about default.ctp and its controller

2011-10-11 Thread heohni
Thanks!!! It works perfect!! -- 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+unsubs

Re: checking if Save() method was successful...

2011-10-11 Thread WebbedIT
Eh? Am I being daft here, doesn't save() return true or false if the save succeeds or fails regardless of the failure reason? I have never had a save fail and my success logic run! I only ever use: if($this->ModelName->saveAll($this->data)) { // success logic } else { // fail logic } Confus

Re: please help me

2011-10-11 Thread huoxito
.. worked great till I found out I need to figure out a way to make Acl behavior recognizes User model itself when saving a new record to Aros table. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp

Re: flash message when validate in model doesn't work

2011-10-11 Thread WebbedIT
Why are you validating within a model? On Oct 10, 3:26 pm, taqman filler wrote: > I need to fix it > > 2011/10/10 euromark : > > > > > > > > > so what exactly do you want from us?^^ > > > On 10 Okt., 14:53, taqman filler wrote: > >> but flash message in auth or other action is work > > >> thanky