Where to DL RC2?

2009-03-30 Thread rocket
I can't find the link to download Cake 1.2 RC2. I'm trying to run a site that was built on RC2 that doesn't work with the current release. Can anyone direct me? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Adding/Deleting HABTM on existing records

2009-03-30 Thread Sidney
Hi, I have searched this forum and read the manuals, and finally got my code working, BUT am I doing this right or have I just found a cludge by dumb luck? I have 2 tables Questions and Games joined correctly thru games_questions table. Users can attach or detach Questions from a Game (drag 'n dr

Re: Useing different database for the different actions

2009-03-30 Thread Pippo
Great, Thanks! I guess was searching for the wrong terms. On 30 Mrz., 20:57, Alfredo Quiroga-Villamil wrote: > Yep, even better. > > Tx Martin. > > On Mon, Mar 30, 2009 at 2:54 PM, Martin Westin > > wrote: > > > I think this is what you are looking for > > >http://bakery.cakephp.org/articles/vi

Re: Why is validation called twice?

2009-03-30 Thread mscdex
On Mar 30, 10:33 pm, Miles J wrote: > How am I to fix this problem? One workaround may be just setting some sort of flag on the model or elsewhere to determine you have already checked the recaptcha validation. --~--~-~--~~~---~--~~ You received this message becau

Re: Security white paging (blackholes) on certain pages

2009-03-30 Thread Miles J
I found this, Im assuming it will bypass these fields so it wont blackhole. $this->Security->disabledFields = array('field1', 'field2'); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to thi

Why is validation called twice?

2009-03-30 Thread Miles J
Ive noticed this numerous times when creating my own methods for model validation. When I do a debug() within the method, it outputs the data twice, which means the validation is happening twice. Now this hasnt been a problem until now. Im trying to get recaptcha working correctly using model vali

Re: Hosting Migration Problem - The requested address was not found on this server

2009-03-30 Thread Jon Bennett
Hi James, > I've added the Rewrite Base line but I'm still seeing a 500 error > page, this is what my htaccess file currently reads: > > >        RewriteEngine on >        RewriteBase /~palacevi/cakephp/ >        RewriteRule    ^webstats/(.*)    webstats/$1 [L] >        RewriteRule    ^$ app/web

Re: Notice (8): Undefined index: id?

2009-03-30 Thread mscdex
On Mar 30, 6:11 pm, Marcelo Andrade wrote: > On Mon, Mar 30, 2009 at 6:44 PM, Aurelius wrote: > > > What does that mean, and where is the problem? > > Notice (8): Undefined index: id [CORE/cake/libs/model/model.php, line > > 1281...on line 77 > > > That's line 77: > > if ($this->User->save ( $th

Re: Couldn't use method named 'object'

2009-03-30 Thread joshua
I got what you said. Thanks! On Mon, Mar 30, 2009 at 11:54 PM, brian wrote: > > On Mon, Mar 30, 2009 at 10:54 AM, joshua wrote: > > You have totally answered my questions. Thanks! But I still have a > question > > for the ticket 4026 which has already been closed. > > It was suggested we use bo

Re: CakePHP on Hiawatha web server

2009-03-30 Thread solie
Again, I have to set var $base into var $base = "/APP_NAME/index.php", so that scaffolding points to correct URL (add/view/edit/delete) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this

Re: Hosting Migration Problem - The requested address was not found on this server

2009-03-30 Thread jmdesign
Okay it's actually reading a 404 Error now (it's late...)! James --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from thi

Re: Hosting Migration Problem - The requested address was not found on this server

2009-03-30 Thread Samuel DeVore
At this point I don't have any new ideas, I will keep pondering... Sam D On Mon, Mar 30, 2009 at 3:17 PM, jmdesign wrote: > > Error log reads the following erron on the htaccess file: > > "Invalid command 'php_value', perhaps misspelled or defined by a > module not included in the server confi

Re: CakePHP on Hiawatha web server

2009-03-30 Thread solie
well, after creating model and controller, I must change the var $webroot into fixed path, ie var $webroot = '/APP_NAME/app/webroot/', change APP_NAME with your main APP (cake) folder, because all controller is callled with index.php/controller_name, so webroot has to be in the fixed location. --~

Re: Hosting Migration Problem - The requested address was not found on this server

2009-03-30 Thread jmdesign
Error log reads the following erron on the htaccess file: "Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration" I've removed the php_value line from the htaccess file, there's no error in the logs now but the 500 error is still showing!

Re: Notice (8): Undefined index: id?

2009-03-30 Thread Marcelo Andrade
On Mon, Mar 30, 2009 at 6:44 PM, Aurelius wrote: > > What does that mean, and where is the problem? > Notice (8): Undefined index: id [CORE/cake/libs/model/model.php, line > 1281...on line 77 > > That's line 77: > if ($this->User->save ( $this->data, true , array ( 'firstname', > 'lastname', '...

Re: Setting Layout for Scaffolding?

2009-03-30 Thread Amit
Here's a good walkthrough: http://teknoid.wordpress.com/2009/01/31/take-control-over-your-bake-and-scaffold-html-templates/ On Mar 30, 5:05 pm, Amit wrote: > I think you're referring to cake/libs/views/scaffold/(add|edit| > view.ctp). These will let you alter the way scaffolding looks > > On Mar

Re: Setting Layout for Scaffolding?

2009-03-30 Thread Amit
I think you're referring to cake/libs/views/scaffold/(add|edit| view.ctp). These will let you alter the way scaffolding looks On Mar 30, 2:42 am, bbf wrote: > I've searched the groups and Google and can't find an answer for this. > > How do I set a different layout for the scaffolding? > > Thank

CakePHP on Hiawatha web server

2009-03-30 Thread solie
Recently I just moved from apache/lighttpd to hiawatha, but unfortunately dealing with mod_rewrite is very time consuming. So, my problem with cakePHP (and other MVC with mod_rewrite) is unable to access webroot folder. The main site is just showing the plain HTML, no CSS, favicon and so on. So,

Notice (8): Undefined index: id?

2009-03-30 Thread Aurelius
What does that mean, and where is the problem? Notice (8): Undefined index: id [CORE/cake/libs/model/model.php, line 1281...on line 77 That's line 77: if ($this->User->save ( $this->data, true , array ( 'firstname', 'lastname', '' ))) { ... } What's wrong? thx Aurelius --~--~-~--~--

BUG? srand() is seeded with a constant in Security::cipher()

2009-03-30 Thread Stack
Later calls to shuffle() or other functions which do not use the mt_srand() seed then return the same predictable results time and time again. Shouldn't the seed be set to a new seed at the end of the function before the return? This behavior is in the latest version of CakePHP and has been in fo

Re: Hosting Migration Problem - The requested address was not found on this server

2009-03-30 Thread Samuel DeVore
what is in the error logs for those hits that 500? My shared host gives me access to those you might check them Sam D On Mon, Mar 30, 2009 at 1:26 PM, jmdesign wrote: > > Hi Sam, > > It's definately a Linux shared host. > > I've added the Rewrite Base line but I'm still seeing a 500 error > p

Re: Hosting Migration Problem - The requested address was not found on this server

2009-03-30 Thread jmdesign
Hi Sam, It's definately a Linux shared host. I've added the Rewrite Base line but I'm still seeing a 500 error page, this is what my htaccess file currently reads: RewriteEngine on RewriteBase /~palacevi/cakephp/ RewriteRule^webstats/(.*)webstats/$1 [L]

Re: Setting Layout for Scaffolding?

2009-03-30 Thread bbf
That would change the layout for the whole site. I want my site to use one layout (e.g. the pretty layout), but the scaffolding to use a different layout (e.g. the plain layout). On Mar 30, 5:04 am, John Andersen wrote: > As far as I can understand from the documentation, you just replace > th

Re: Cake PHP 1.2 - Need Help For Posting Mulitple Checkboxes

2009-03-30 Thread Miles J
If you want to separate them, look at this. http://book.cakephp.org/view/189/Automagic-Form-Elements#options-before-options-between-options-separator-a-191 But literally the best way to do these types of checkboxes are manually, that's what I do. --~--~-~--~~~---~--~-

Re: How destroy sessions after close browser windows

2009-03-30 Thread Miles J
Just set the security to high in your config. That will end it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

Re: How to silently redirects to login page ?

2009-03-30 Thread iFeghali
Hi Martin, Yes I am talking exactly about that message. Changing it the way you suggest would make it very weird to users already logged in that are trying to access resources they are not allowed to. Also, I would like to have no message at all... just the login form. Thank you. On 30 mar, 15:

Re: How to silently redirects to login page ?

2009-03-30 Thread iFeghali
Hello John, Thanks for the answer but I don't see how it could help me. Can you please clarify ? On 30 mar, 15:13, John Andersen wrote: > Use thishttp://book.cakephp.org/view/385/logoutas the redirect! --~--~-~--~~~---~--~~ You received this message because you a

Re: Useing different database for the different actions

2009-03-30 Thread Alfredo Quiroga-Villamil
Yep, even better. Tx Martin. On Mon, Mar 30, 2009 at 2:54 PM, Martin Westin wrote: > > I think this is what you are looking for > > http://bakery.cakephp.org/articles/view/load-balancing-and-mysql-master-and-slaves-2 > > > > > On Mar 30, 6:28 pm, Alfredo Quiroga-Villamil > wrote: >> Pippo: >>

Re: Useing different database for the different actions

2009-03-30 Thread Martin Westin
I think this is what you are looking for http://bakery.cakephp.org/articles/view/load-balancing-and-mysql-master-and-slaves-2 On Mar 30, 6:28 pm, Alfredo Quiroga-Villamil wrote: > Pippo: > > I've never done this or even thought about how to do it; so there > might be a better way to accompli

Re: How destroy sessions after close browser windows

2009-03-30 Thread Martin Westin
Unloading is not the same as closing the window. I don't know if jQuery has some magic of it's own but unless you use all ajax, frames or an iframe and attach the script to the top html document, the unload will fire every time the window reloads (each link clicked). There is no event for the win

Re: CakePHP Multilevel Users

2009-03-30 Thread nurvzy
I do something similar. But I DO use the Auth component. ACL is a bit too much for my needs so I didn't go with it. All I have is a status column in my user table that is an enum ('user','manager','admin'). I then use beforeFilters and isAuthorized in app_controller to check for admin or manag

Re: Cake PHP 1.2 - Need Help For Posting Mulitple Checkboxes

2009-03-30 Thread Martin Westin
I maintain one hack in my core (used to be a few more during 1.2 pre- release) and it is enough to worry about forgetting even though it is only two lines. Pulling the core with Git has helped tremendously, though. All fast-forwards so far. If you need to make a "hack" in the core you will save

Re: Querying / filtering an array done by find('threaded')

2009-03-30 Thread toka...@gmail.com
I have tried also $this->Section->children($id), that seems to be ok, but it doesnt generate such nice nested structure like find ('threaded'). Is there any change to filter threaded array similar way like getting childs from the tree? Tnkx Tomas --~--~-~--~~~---~--~--

Re: Ajax gone after redirect

2009-03-30 Thread Martin Westin
I go by the rule-of-thumb to use ajax when the application really is an application and not in any way similar to a website. Anytime I want to use the word page to describe something or "go to" to describe an action I know ajax is a bad choice. Ajax is so cool when you manage to find a good use fo

Re: How to silently redirects to login page ?

2009-03-30 Thread Martin Westin
That would be the authError message you are seeing. You can set it (from AppController::beforeFilter for example) like this: $this->Auth->authError = 'Hi, and welcome. Please login before proceeding.'; I have a habit of setting it to something more friendly than the default. The direct way to

Re: How to silently redirects to login page ?

2009-03-30 Thread John Andersen
Use this http://book.cakephp.org/view/385/logout as the redirect! Enjoy, John On Mar 30, 8:26 pm, iFeghali wrote: > Hello, > > I have followed [1] to get a simple login form working. Currently when > a visitor tries to reach '/' one is redirected to the login form, > which is desirable, but a

Re: Save null or empty datetime fields

2009-03-30 Thread geste
Edwin, I have a similar interest. I have started a new application with 40+ tables and I am trying to get as much mileage as possible from "baked" models, views and controllers. In several tables I have DATE fields that allow NULL dates. For example, in the equipment_items table, the disposal_

Re: looking for a method to record 'page views'

2009-03-30 Thread JamesF
i did see that article but i think im goign to go with a different approach... i'm making a table called visits with four fields id ->auto increment listing_id ->related listing id timestamp ->now() ip_address ->users ip basically whenever a listing is view i will execute an insert on the datab

Re: $form->value | How does it work?

2009-03-30 Thread mscdex
On Mar 30, 12:28 pm, brotherkeen wrote: > Where does $form->value come from?  There doesn't seem to be anything > about it in Cake documentation. > > All I know is that this works for selected checkboxes... > > echo $form->input('Tag',array( >                 'label' => 'Tags', >                

How to silently redirects to login page ?

2009-03-30 Thread iFeghali
Hello, I have followed [1] to get a simple login form working. Currently when a visitor tries to reach '/' one is redirected to the login form, which is desirable, but an error message is displayed "You are not authorized to access that location.", which is not desirable. Any clue how do I preven

Re: Cannot connect to database

2009-03-30 Thread dr. Hannibal Lecter
If you're 100% sure this is a firewall issue, that it is NOT a CakePHP related question. You should go to the firewall related forums. As a tip, you should definitely stop using the built-in windows firewall and try something functional. Comodo is one of the best and it's free (http://personalfir

media view and files on the fly

2009-03-30 Thread Mark (Germany)
i tried to use the media view for files generated on the fly (some exported text inside a export.txt or whatever) but it seems like the media view can only handle downloads of "existing" files on the server trying to rewrite it did not turn out very well so, did anyone manage to create a txt file

Re: Useing different database for the different actions

2009-03-30 Thread Alfredo Quiroga-Villamil
Pippo: I've never done this or even thought about how to do it; so there might be a better way to accomplish what you want. Perhaps what I am about to tell you might not be a valid solution; but one thing that comes to mind is the following: Assuming that what you want is to read from one DB and

$form->value | How does it work?

2009-03-30 Thread brotherkeen
Where does $form->value come from? There doesn't seem to be anything about it in Cake documentation. All I know is that this works for selected checkboxes... echo $form->input('Tag',array( 'label' => 'Tags', 'type' => 'select', 'multiple' => 'chec

Re: looking for a method to record 'page views'

2009-03-30 Thread brian
Have a look at this HitCountBehavior http://dsi.vozibrale.com/articles/view/simple-hitcount-behavior-for-cakephp I haven't used this, though it's been on my list of things to investigate. On Mon, Mar 30, 2009 at 11:14 AM, JamesF wrote: > > Hi all, > > I am looking for a simple way of keeping tr

Useing different database for the different actions

2009-03-30 Thread Pippo
Hi We would like to use scalr.net and amazon webservices in order to be able to scale if we have more and more users. We would like to use one master Database and some slave Databases. The synchronization in between of the different databases will go only in one way, from the master to the slave

Useing different database for the different actions

2009-03-30 Thread Pippo
Hi We would like to use scalr.net and amazon webservices in order to be able to scale if we have more and more users. We would like to use one master Database and some slave Databases. The synchronization in between of the different databases will go only in one way, from the master to the slave

Re: Cake PHP 1.2 - Need Help For Posting Mulitple Checkboxes

2009-03-30 Thread brian
On Mon, Mar 30, 2009 at 8:17 AM, Martin Westin wrote: > > > That sounds like a lot of work just to avoid using html. If you are > concerned about CakePHP coding standards (do they exist?) you should > definitely not be thinking about hacking the core files. Creating > "manual" form elements must

Re: Hosting Migration Problem - The requested address was not found on this server

2009-03-30 Thread Samuel DeVore
you might need to add a RewriteBase / also you should confirm that the shared host is linux flavor and not windows IIS (this has bitten a client of mine) Sam D On Mon, Mar 30, 2009 at 8:51 AM, jmdesign wrote: > > Hi Martin, > > Thanks for the advice, i've now copied across the missing htacc

Re: Couldn't use method named 'object'

2009-03-30 Thread brian
On Mon, Mar 30, 2009 at 10:54 AM, joshua wrote: > You have totally answered my questions. Thanks! But I still have a question > for the ticket 4026 which has already been closed. > It was suggested we use boolean. If so, how can use several values in a > boolean field? I don't think this bug has

Re: Hosting Migration Problem - The requested address was not found on this server

2009-03-30 Thread jmdesign
Actually I meant it's now showing a 500 Internal Server Error not a 404. I'm pretty certain it's a problem with the URL's/site configuration and not the actual website files that make up the site as they're running fine on the current site. Thanks, James --~--~-~--~~~---

Re: Hosting Migration Problem - The requested address was not found on this server

2009-03-30 Thread jmdesign
Hi Martin, Thanks for the advice, i've now copied across the missing htaccess files although the site now won't display at all! It just gives me a 404 error. The old host was a virtual dedicated server whereas the new one is a shared hosting account so I guess the htaccess file needs tweaking as

looking for a method to record 'page views'

2009-03-30 Thread JamesF
Hi all, I am looking for a simple way of keeping track of page views. The application is a rental properties website and I would like advertisers who list their properties to know how many times they have been viewed. Anyone have a tried and true method for this ? --~--~-~--~~---

Re: LI instead of DIV as global preference in forms

2009-03-30 Thread logout
Well, the only thing I can think of is to extend the FormHelper and redefine the input function to add the 'div'=>array('tag'=>'li') option to the rest of your options every time you use it. On Mar 30, 1:07 pm, mintao wrote: > Hi, > > in every form-view I change the default "div" to an "li" like

Re: Couldn't use method named 'object'

2009-03-30 Thread joshua
You have totally answered my questions. Thanks! But I still have a question for the ticket 4026 which has already been closed. It was suggested we use boolean. If so, how can use several values in a boolean field? I don't think this bug has been solved. On M

Querying / filtering an array done by find('threaded')

2009-03-30 Thread Tokasa
Hi, I got a little problem how to get only specific branch of categories in my threaded array. Imagine self-joined table with categories joined by parent ID. e.g. e-shop sections like Bikes, Electronics, Vines, ... etc.. Each of them have its own categories, who have its own categories, etc...

LI instead of DIV as global preference in forms

2009-03-30 Thread mintao
Hi, in every form-view I change the default "div" to an "li" like that: e($form->input('username', array('label'=>__('Username', true), 'div'=>array('tag'=>'li'; Could anyone please tell me, how to change this globally? Thank you very much Florian Fackler --~--~-~--~~-

Cannot connect to database

2009-03-30 Thread Pittore
I am using Windows XP with a wamp installation...starting to get somewhere but when I attempt to run "CakeTooDoo" from CAKEPHP Application Development by Bari and Syam, I get "cannot connect to database." I have been doing some diagnostics and found out my firewall is blocking port 3306 which is

Re: How does parameter work in Jake

2009-03-30 Thread Brendon Kozlowski
Robin, for something as specific as Jake (that is not necessarily an oft-asked topic about CakePHP), you might have better luck requesting help specific to Jake itself: http://dev.sypad.com/projects/jake/support/ On Mar 29, 1:23 pm, Robin wrote: > Any help here? Thanks a lot! > > On Mar 26, 3:12

Re: Couldn't use method named 'object'

2009-03-30 Thread Ralph Marchildon
Re: Object class name It's a class that's already defined and in use by the CakePHP framework itself. Don't duplicate any of the class names listed here - > http://api.cakephp.org/classes Sucks not having namespaces, yes I know they're slotted for the next PHP release. Re: tinyint(1) See https:/

Re: Ajax gone after redirect

2009-03-30 Thread Stu
Hahaha, I hear you. I have learned thru the hard way that Ajax is to be used in moderation. Switched from a 100% Ajax navigated site, to about a 5%. I wouldn't say it was a waste of time. My Ajax knowledge grew and I learned a valuable lesson. --~--~-~--~~~---~--~

Re: Why is it so hard to find answers on cakephp trouble?

2009-03-30 Thread thalund
Hi there Thanks again for all the reactions to my worries. The small issue that was the source of frustration is now clarified (in another thread). And I understand that if I don't find the answer on this group there's a lot of nice people willing to help :-) Just to clarify: I don't expect cak

Re: How destroy sessions after close browser windows

2009-03-30 Thread Eber Freitas Dias
You can use Javascript. jQuery, for instance, has a helper event handler that let's you bind functions to the "unload" event. Check it out: http://docs.jquery.com/Events/unload#fn You can make it with raw JS or other libraries... I think jQuery is easier. So you can make a asynchronous call to a

Re: Webroot problem when accessing cake app through service provider's SSL

2009-03-30 Thread Martin Westin
Just guessing but try this: http://book.cakephp.org/view/37/Apache-and-mod_rewrite-and-htaccess The last part about setups that have already been "rewritten". Your provider might be using mod_rewrite for it's ssl urls and then Cake's rewriting will not work as expected. /Martin On Mar 29, 8:

Re: Cake PHP 1.2 - Need Help For Posting Mulitple Checkboxes

2009-03-30 Thread Martin Westin
That sounds like a lot of work just to avoid using html. If you are concerned about CakePHP coding standards (do they exist?) you should definitely not be thinking about hacking the core files. Creating "manual" form elements must be way better than editing files in the core. Even using differen

Re: Security white paging (blackholes) on certain pages

2009-03-30 Thread the_woodsman
When using JS to dynamically change the form, you're basically doing exactly what the form helper is intended to prevent - it tries to ensure that no form fields are tampered with, and a hidden form field is exactly such an example! I'd have thought that making it a non hidden field, ie a text fi

Re: Paginate Find All Results

2009-03-30 Thread timtrice
Ended up getting this working by assigning $this->paginate['conditions'] = 'MATCH( name, keywords, description, encoded ) AGAINST ( \'adwords\' )'; $this->paginate['fields'] = '*, MATCH( name, keywords, description, encoded ) AGAINST( \'adwords\' ) AS score '; I had tried to do array_merge and p

Re: How destroy sessions after close browser windows

2009-03-30 Thread John Andersen
Ok, then I understand :) That is a scenario you can't catch, as you don't get any information that the user has closed the window. Used timed sessions, so that if the user is inactive for more than X minutes, the session becomes invalid and the user must log in again! Use session renew when a us

Re: Cake PHP 1.2 - Need Help For Posting Mulitple Checkboxes

2009-03-30 Thread keyurvaghani
Hello Miles, I have one more alternate way to prevent hidden control without doing any kind of directly changes into libarary helper file (form.php). that is ... we can make out own custom helper with similar kind of function with applied condition for not generating hidden while displaying m

Re: Cake PHP 1.2 - Need Help For Posting Mulitple Checkboxes

2009-03-30 Thread keyurvaghani
Hi Miles, Thanks for your needful help. But currently i am developing company product through pure cakephp 1.2 standards and i have to follow its conventions during whole development cycle. currently i have created multiple check boxes using $form->select() with 'multiple'=>'checkbox' opt

Re: How destroy sessions after close browser windows

2009-03-30 Thread Petr Vytlačil
Hi, I this know but I dont know how destroy session when user close windows. THX On 30 Bře, 11:10, John Andersen wrote: > Use session destroy as stated in the CakePHP documentation > athttp://book.cakephp.org/view/404/destroy > Enjoy, >    John > > On Mar 30, 11:49 am, Petr Vytlačil wrote: > >

Re: How destroy sessions after close browser windows

2009-03-30 Thread John Andersen
Use session destroy as stated in the CakePHP documentation at http://book.cakephp.org/view/404/destroy Enjoy, John On Mar 30, 11:49 am, Petr Vytlačil wrote: > Hi i need destry sessions after close browser windows. I need logout > user from admin section when he close browser windows. If now c

Re: Setting Layout for Scaffolding?

2009-03-30 Thread John Andersen
As far as I can understand from the documentation, you just replace the default layout with your own. The default layout can be found in the "app/views/layout" folder. Enjoy, John On Mar 30, 10:42 am, bbf wrote: > I've searched the groups and Google and can't find an answer for this. > > Ho

Re: Paginate Find All Results

2009-03-30 Thread Flipflops
p.s. meant to say I've used this approcah in a number of situations and it works well for me. On Mar 30, 9:10 am, Flipflops wrote: > Hi > > Have you come across this > articlehttp://cakebaker.42dh.com/2007/10/17/pagination-of-data-from-a-habtm-... > ? > > I think the approach outlined in it mig

How destroy sessions after close browser windows

2009-03-30 Thread Petr Vytlačil
Hi i need destry sessions after close browser windows. I need logout user from admin section when he close browser windows. If now close browser windows and startup browser, he can go to admin section. I use CakePHP 1.2. THX --~--~-~--~~~---~--~~ You received this

Re: New Install - Where is the Dispatch

2009-03-30 Thread Martin Westin
> Fatal error: Class 'Dispatcher' not found in /var/www/vhosts/ > shakethembones.com/httpdocs/index.php on line 87 I could be wrong but that line is for a CakePHP 1.2 application (for 1.1 I have it at line 81) > http://book.cakephp.org/view/308/Installing-CakePHPunder `Advanced > Setup: Altern

Re: Hosting Migration Problem - The requested address was not found on this server

2009-03-30 Thread Martin Westin
Is the problem with actual html files of with CakePHP urls? Cake uses mod_rewrite to manage pretty (meaningful) urls. Problems like this (certainly if the urls are for Cake) usually have one of two sources. A configuration problem in Apache. Your site should be allowed to set these rewrites but

Re: Paginate Find All Results

2009-03-30 Thread Flipflops
Hi Have you come across this article http://cakebaker.42dh.com/2007/10/17/pagination-of-data-from-a-habtm-relationship/ ? I think the approach outlined in it might be worth looking at, in essence just build all your relationships inside paginate, as if it were just a bit of SQL... On Mar 30,

Re: Security white paging (blackholes) on certain pages

2009-03-30 Thread Lamiunto
Are you using $form->end() ? Also, if you want to populate your fields with Javascript, look for form ID's that represent the model and field you're trying to find, so if you're trying to edit the hidden "username" field in for the User model, the field ID would be UserUsername, you could just use

Setting Layout for Scaffolding?

2009-03-30 Thread bbf
I've searched the groups and Google and can't find an answer for this. How do I set a different layout for the scaffolding? Thanks for your help! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To

Re: Cake PHP 1.2 - Need Help For Posting Mulitple Checkboxes

2009-03-30 Thread Miles J
The only alternative is doing it manually. You are unable to do it with the form helper. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.c